﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
2533	plot error in OMShell	esquire70	somebody	"When using OMShell, I get the following error:

Error: Class plot not found in scope <global scope> (looking for a function or record).

This occurs after issuing the following commands:

loadFile(""HelloWorld.mo"")
simulate(HelloWorld, stopTime=4)
plot(x, xrange={0.0, 2.0})

However, plot(x) works fine. I could re-run the simulation with stopTime=2, but this takes a while for complicated models.

Here are the contents of HelloWorld.mo

class HelloWorld
    Real x(start = 1);
    parameter Real a = 1;
equation
    der(x) = - a * x;
end HelloWorld; 

The output of the simulate(HelloWorld, stopTime=4) is

record SimulationResult
    resultFile = ""/home/esquires3/shr/C5/modelica/book/temp/HelloWorld_res.mat"",
    simulationOptions = ""startTime = 0.0, stopTime = 4.0, numberOfIntervals = 500, tolerance = 0.000001, method = 'dassl', fileNamePrefix = 'HelloWorld', options = '', outputFormat = 'mat', variableFilter = '.*', measureTime = false, cflags = '', simflags = ''"",
    messages = """",
    timeFrontend = 0.013494170000000002,
    timeBackend = 0.004706184,
    timeSimCode = 0.002829409,
    timeTemplates = 0.028408355000000003,
    timeCompile = 0.607433238,
    timeSimulation = 0.205029652,
    timeTotal = 0.863685592
end SimulationResult;
Warning: The initial conditions are not fully specified. Use +d=initialization for more information.
"	defect	closed	high	1.12.0	Interactive Environment	trunk	invalid	plot	
