Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002611/0.002611, allocations: 113.7 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.003305/0.003306, allocations: 212.9 kB / 19.4 MB, free: 3.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.866/2.866, allocations: 227.4 MB / 247.6 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001813/0.001813, allocations: 59.89 kB / 359.4 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.627/0.6288, allocations: 50.54 MB / 409.9 MB, free: 1.609 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.005603/0.6345, allocations: 1.497 MB / 411.4 MB, free: 112 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001475/0.6361, allocations: 279.2 kB / 411.7 MB, free: 15.84 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002993/0.6364, allocations: 4 kB / 411.7 MB, free: 15.83 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000316/0.6368, allocations: 19.73 kB / 411.7 MB, free: 15.81 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001705/0.637, allocations: 19.81 kB / 411.7 MB, free: 15.79 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009521/0.638, allocations: 107.8 kB / 411.8 MB, free: 15.69 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007717/0.6388, allocations: 259.6 kB / 412.1 MB, free: 15.43 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007085/0.6395, allocations: 170.2 kB / 412.2 MB, free: 15.26 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002254/0.6398, allocations: 87.75 kB / 412.3 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002457/0.64, allocations: 87.61 kB / 412.4 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.231e-05/0.6401, allocations: 27.94 kB / 412.4 MB, free: 15.06 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001192/0.6403, allocations: 31.98 kB / 412.5 MB, free: 15.03 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000112/0.6404, allocations: 51.89 kB / 412.5 MB, free: 14.98 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001936/0.6406, allocations: 99.52 kB / 412.6 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005382/0.6411, allocations: 243.1 kB / 412.9 MB, free: 14.64 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.127e-05/0.6412, allocations: 0 / 412.9 MB, free: 14.64 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.016e-06/0.6412, allocations: 0 / 412.9 MB, free: 14.64 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.642e-05/0.6412, allocations: 0 / 412.9 MB, free: 14.64 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.001274/0.6425, allocations: 479.7 kB / 413.3 MB, free: 14.12 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.47e-05/0.6426, allocations: 12.03 kB / 413.3 MB, free: 14.11 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004068/0.643, allocations: 28.64 kB / 413.4 MB, free: 14.09 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006087/0.6436, allocations: 232 kB / 413.6 MB, free: 13.82 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.471e-05/0.6437, allocations: 20.94 kB / 413.6 MB, free: 13.8 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.686e-05/0.6438, allocations: 24.38 kB / 413.6 MB, free: 13.78 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006465/0.6444, allocations: 244 kB / 413.9 MB, free: 13.53 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.043e-05/0.6445, allocations: 192 / 413.9 MB, free: 13.53 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.516e-05/0.6445, allocations: 19.88 kB / 413.9 MB, free: 13.51 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.554e-05/0.6445, allocations: 8 kB / 413.9 MB, free: 13.5 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004553/0.645, allocations: 153.7 kB / 414 MB, free: 13.35 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001587/0.6466, allocations: 0.6934 MB / 414.7 MB, free: 12.6 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004703/0.6471, allocations: 162.8 kB / 414.9 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001911/0.6473, allocations: 80.83 kB / 415 MB, free: 12.35 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.477e-05/0.6473, allocations: 8 kB / 415 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003228/0.6477, allocations: 123.2 kB / 415.1 MB, free: 12.21 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 2.956e-06/0.6477, allocations: 0 / 415.1 MB, free: 12.21 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006818/0.6484, allocations: 216.5 kB / 415.3 MB, free: 12 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.061e-05/0.6485, allocations: 55.41 kB / 415.4 MB, free: 11.93 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002157/0.6487, allocations: 153.5 kB / 415.5 MB, free: 11.77 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.217e-05/0.6488, allocations: 37.69 kB / 415.6 MB, free: 11.73 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001556/0.6489, allocations: 140.6 kB / 415.7 MB, free: 11.59 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.175e-05/0.649, allocations: 55.2 kB / 415.7 MB, free: 11.54 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000199/0.6492, allocations: 81.92 kB / 415.8 MB, free: 11.45 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000193/0.6494, allocations: 322.8 kB / 416.1 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001833/0.6496, allocations: 60.64 kB / 416.2 MB, free: 11.06 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002482/0.6499, allocations: 136 kB / 416.3 MB, free: 10.91 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003961/0.6503, allocations: 175.2 kB / 416.5 MB, free: 10.71 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.6503, allocations: 0 / 416.5 MB, free: 10.71 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005879/0.6509, allocations: 237.3 kB / 416.7 MB, free: 10.47 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.374e-05/0.651, allocations: 8 kB / 416.7 MB, free: 10.46 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/0.651, allocations: 0 / 416.7 MB, free: 10.46 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.943e-05/0.651, allocations: 4 kB / 416.8 MB, free: 10.46 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002071/0.6512, allocations: 27.92 kB / 416.8 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.457e-05/0.6513, allocations: 4.219 kB / 416.8 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002036/0.6515, allocations: 43.61 kB / 416.8 MB, free: 10.39 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.91e-05/0.6515, allocations: 8 kB / 416.8 MB, free: 10.38 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,transition2.t_start,$PRE.transition2.t_start,transition2.fire,transition2.enableFire,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,step.active,transition1.t_start,$PRE.transition1.t_start,transition1.fire,transition1.enableFire,initialStep.oldActive,$PRE.initialStep.oldActive,initialStep.newActive,$PRE.initialStep.newActive,initialStep.localActive,$PRE.initialStep.localActive,initialStep.active,$whenCondition1,$whenCondition2,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00026/0.6518, allocations: 157.7 kB / 417 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.312e-05/0.6519, allocations: 19.75 kB / 417 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.051e-05/0.6519, allocations: 12.84 kB / 417 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.018e-05/0.652, allocations: 4 kB / 417 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.049e-05/0.652, allocations: 0 / 417 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.647e-06/0.652, allocations: 0 / 417 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00106/0.6531, allocations: 0.5492 MB / 417.6 MB, free: 9.574 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.427e-06/0.6531, allocations: 0 / 417.6 MB, free: 9.574 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001098/0.6532, allocations: 15.98 kB / 417.6 MB, free: 9.559 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.879e-06/0.6532, allocations: 0 / 417.6 MB, free: 9.559 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.992e-05/0.6533, allocations: 4 kB / 417.6 MB, free: 9.555 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.6533, allocations: 4 kB / 417.6 MB, free: 9.551 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/0.6533, allocations: 0 / 417.6 MB, free: 9.551 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000436/0.6537, allocations: 282.8 kB / 417.9 MB, free: 9.262 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.876e-05/0.6538, allocations: 88.95 kB / 418 MB, free: 9.156 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.427e-05/0.6539, allocations: 4 kB / 418 MB, free: 9.152 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001325/0.654, allocations: 15.92 kB / 418 MB, free: 9.137 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001079/0.6541, allocations: 19.98 kB / 418 MB, free: 9.117 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.294e-05/0.6541, allocations: 11.92 kB / 418 MB, free: 9.105 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.77e-05/0.6542, allocations: 95.27 kB / 418.1 MB, free: 9.012 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6543, allocations: 0 / 418.1 MB, free: 9.012 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005259/0.6548, allocations: 47.84 kB / 418.1 MB, free: 8.965 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 17 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.localActive,step.newActive,step.oldActive,transition2.fire,transition2.t_start,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001922/0.655, allocations: 111.2 kB / 418.3 MB, free: 8.848 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005222/0.6555, allocations: 172.1 kB / 418.4 MB, free: 8.68 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.55e-06/0.6555, allocations: 4 kB / 418.4 MB, free: 8.676 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001841/0.6557, allocations: 71.92 kB / 418.5 MB, free: 8.605 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004585/0.6562, allocations: 23.97 kB / 418.5 MB, free: 8.582 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001002/0.6572, allocations: 343.5 kB / 418.9 MB, free: 8.207 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004792/0.6577, allocations: 0.7284 MB / 419.6 MB, free: 7.449 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.552e-05/0.6578, allocations: 23.44 kB / 419.6 MB, free: 7.426 MB / 334.1 MB Notification: Performance of SimCode: time 5.81e-07/0.6578, allocations: 0 / 419.6 MB, free: 7.426 MB / 334.1 MB Notification: Performance of Templates: time 0.007898/0.6657, allocations: 2.225 MB / 421.8 MB, free: 5.203 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches