Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.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_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002017/0.002017, 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.002394/0.002394, 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.784/2.784, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00215/0.00215, allocations: 59.91 kB / 359.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5479/0.55, allocations: 50.55 MB / 409.9 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.005596/0.5557, allocations: 1.709 MB / 411.6 MB, free: 15.87 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001153/0.5569, allocations: 291.1 kB / 411.9 MB, free: 15.59 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002319/0.5572, allocations: 4 kB / 411.9 MB, free: 15.58 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000234/0.5575, allocations: 27.67 kB / 411.9 MB, free: 15.55 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001184/0.5576, allocations: 19.81 kB / 411.9 MB, free: 15.54 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007122/0.5583, allocations: 115.8 kB / 412.1 MB, free: 15.42 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006526/0.559, allocations: 267.6 kB / 412.3 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005992/0.5596, allocations: 185.5 kB / 412.5 MB, free: 14.97 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002289/0.5599, allocations: 87.66 kB / 412.6 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002858/0.5602, allocations: 103.5 kB / 412.7 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.281e-05/0.5603, allocations: 24 kB / 412.7 MB, free: 14.76 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001085/0.5604, allocations: 24 kB / 412.7 MB, free: 14.74 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.961e-05/0.5605, allocations: 63.81 kB / 412.8 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00019/0.5607, allocations: 103.5 kB / 412.9 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000514/0.5612, allocations: 251.1 kB / 413.1 MB, free: 14.33 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.713e-06/0.5612, allocations: 0 / 413.1 MB, free: 14.33 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.036e-06/0.5613, allocations: 3.938 kB / 413.1 MB, free: 14.32 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.601e-05/0.5613, allocations: 0 / 413.1 MB, free: 14.32 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.00112/0.5624, allocations: 0.4919 MB / 413.6 MB, free: 13.79 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.91e-05/0.5625, allocations: 12.03 kB / 413.7 MB, free: 13.77 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004036/0.5629, allocations: 28.73 kB / 413.7 MB, free: 13.75 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005381/0.5635, allocations: 228.1 kB / 413.9 MB, free: 13.48 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.278e-05/0.5635, allocations: 24.92 kB / 413.9 MB, free: 13.46 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.878e-05/0.5636, allocations: 28.38 kB / 414 MB, free: 13.43 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007227/0.5643, allocations: 270.5 kB / 414.2 MB, free: 13.14 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.047e-05/0.5644, allocations: 192 / 414.2 MB, free: 13.14 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.911e-05/0.5644, allocations: 15.92 kB / 414.2 MB, free: 13.13 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.406e-05/0.5644, allocations: 12 kB / 414.2 MB, free: 13.12 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004687/0.5649, allocations: 161.6 kB / 414.4 MB, free: 12.96 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001874/0.5668, allocations: 0.9555 MB / 415.4 MB, free: 11.94 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000455/0.5673, allocations: 176.8 kB / 415.5 MB, free: 11.75 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001777/0.5675, allocations: 85.62 kB / 415.6 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.285e-05/0.5675, allocations: 0 / 415.6 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003092/0.5678, allocations: 141 kB / 415.8 MB, free: 11.51 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.924e-06/0.5679, allocations: 0 / 415.8 MB, free: 11.51 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006572/0.5685, allocations: 218.7 kB / 416 MB, free: 11.29 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.265e-05/0.5686, allocations: 85.11 kB / 416.1 MB, free: 11.19 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001837/0.5688, allocations: 153.6 kB / 416.2 MB, free: 11.03 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.243e-05/0.5689, allocations: 37.7 kB / 416.2 MB, free: 10.98 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001297/0.569, allocations: 148.6 kB / 416.4 MB, free: 10.84 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.469e-05/0.5691, allocations: 55.27 kB / 416.4 MB, free: 10.78 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001559/0.5692, allocations: 77.47 kB / 416.5 MB, free: 10.7 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001772/0.5694, allocations: 334.8 kB / 416.8 MB, free: 10.36 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001661/0.5696, allocations: 59.98 kB / 416.9 MB, free: 10.3 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002446/0.5699, allocations: 140.5 kB / 417 MB, free: 10.14 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004505/0.5744, allocations: 196.3 kB / 417.2 MB, free: 9.914 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/0.5744, allocations: 0 / 417.2 MB, free: 9.914 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000645/0.5751, allocations: 249.5 kB / 417.5 MB, free: 9.664 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.275e-05/0.5751, allocations: 12.03 kB / 417.5 MB, free: 9.652 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.392e-05/0.5751, allocations: 0 / 417.5 MB, free: 9.652 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.241e-05/0.5752, allocations: 4 kB / 417.5 MB, free: 9.648 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002282/0.5754, allocations: 35.86 kB / 417.5 MB, free: 9.613 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.893e-05/0.5754, allocations: 4 kB / 417.5 MB, free: 9.609 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002003/0.5757, allocations: 35.62 kB / 417.6 MB, free: 9.574 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.277e-05/0.5757, allocations: 11.98 kB / 417.6 MB, free: 9.562 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 32 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,timer.entryTime,$PRE.timer.entryTime,transition2.enableFire,transition2.localCondition,step.active,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,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,transition2.t_start,$PRE.transition2.t_start,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * 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.0002605/0.576, allocations: 165.6 kB / 417.7 MB, free: 9.391 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.432e-05/0.576, allocations: 11.91 kB / 417.7 MB, free: 9.379 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.761e-05/0.5761, allocations: 24.83 kB / 417.8 MB, free: 9.352 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.087e-06/0.5761, allocations: 4 kB / 417.8 MB, free: 9.348 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.385e-06/0.5761, allocations: 0 / 417.8 MB, free: 9.348 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.805e-06/0.5762, allocations: 0 / 417.8 MB, free: 9.348 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001168/0.5773, allocations: 0.582 MB / 418.4 MB, free: 8.703 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.5774, allocations: 0 / 418.4 MB, free: 8.703 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001087/0.5775, allocations: 19.92 kB / 418.4 MB, free: 8.684 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.941e-06/0.5775, allocations: 0 / 418.4 MB, free: 8.684 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.662e-05/0.5775, allocations: 12 kB / 418.4 MB, free: 8.672 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.324e-06/0.5775, allocations: 3.938 kB / 418.4 MB, free: 8.668 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.5776, allocations: 0 / 418.4 MB, free: 8.668 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004792/0.578, allocations: 264.1 kB / 418.6 MB, free: 8.391 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.744e-05/0.5781, allocations: 96.86 kB / 418.7 MB, free: 8.277 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.766e-05/0.5782, allocations: 7.938 kB / 418.7 MB, free: 8.27 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001536/0.5784, allocations: 19.92 kB / 418.8 MB, free: 8.25 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001126/0.5785, allocations: 15.98 kB / 418.8 MB, free: 8.234 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.652e-05/0.5785, allocations: 19.92 kB / 418.8 MB, free: 8.215 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.237e-05/0.5786, allocations: 98.77 kB / 418.9 MB, free: 8.121 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5786, allocations: 0 / 418.9 MB, free: 8.121 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005507/0.5792, allocations: 51.84 kB / 419 MB, free: 8.07 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 18 (transition2.t_start,step.localActive,transition1.enableFire,step.active,initialStep.active,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.localCondition,transition2.enableFire,timer.entryTime,stateGraphRoot.activeSteps) * Number of discrete states: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001684/0.5794, allocations: 99.25 kB / 419 MB, free: 7.965 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004921/0.5799, allocations: 184.1 kB / 419.2 MB, free: 7.785 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.5799, allocations: 0 / 419.2 MB, free: 7.785 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000187/0.5801, allocations: 79.77 kB / 419.3 MB, free: 7.707 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004998/0.5806, allocations: 30.78 kB / 419.3 MB, free: 7.68 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009867/0.5816, allocations: 359.9 kB / 419.7 MB, free: 7.293 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004682/0.5821, allocations: 0.7293 MB / 420.4 MB, free: 6.531 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.267e-05/0.5822, allocations: 27.44 kB / 420.4 MB, free: 6.504 MB / 334.1 MB Notification: Performance of SimCode: time 8.21e-07/0.5822, allocations: 0 / 420.4 MB, free: 6.504 MB / 334.1 MB Notification: Performance of Templates: time 0.007251/0.5895, allocations: 2.29 MB / 422.7 MB, free: 4.211 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches