Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0015/0.001504, allocations: 181.3 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.945/1.945, allocations: 205.2 MB / 219.4 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001079/0.001079, allocations: 86.64 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.511e-05/3.533e-05, allocations: 4 kB / 321.5 MB, free: 17.85 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09245/0.09251, allocations: 47.57 MB / 369.1 MB, free: 2.211 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.387/0.4795, allocations: 75.7 MB / 444.8 MB, free: 1.445 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002579/0.4799, allocations: 66.77 kB / 444.8 MB, free: 1.414 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01281/0.4927, allocations: 2.99 MB / 447.8 MB, free: 14.81 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.903e-06/0.4928, allocations: 0 / 447.8 MB, free: 14.81 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.548e-05/0.4928, allocations: 8 kB / 447.8 MB, free: 14.8 MB / 330.7 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.0008693/0.4937, allocations: 448 kB / 448.3 MB, free: 14.33 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.367e-05/0.4938, allocations: 11.97 kB / 448.3 MB, free: 14.32 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.31e-05/0.4939, allocations: 23.72 kB / 448.3 MB, free: 14.29 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003518/0.4942, allocations: 225.9 kB / 448.5 MB, free: 14.05 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.345e-05/0.4943, allocations: 24.06 kB / 448.6 MB, free: 14.04 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.89e-05/0.4944, allocations: 31.38 kB / 448.6 MB, free: 14.02 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006211/0.495, allocations: 259.2 kB / 448.8 MB, free: 13.81 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.673e-05/0.495, allocations: 3.984 kB / 448.8 MB, free: 13.8 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.399e-05/0.4951, allocations: 11.81 kB / 448.9 MB, free: 13.8 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.18e-05/0.4951, allocations: 4 kB / 448.9 MB, free: 13.8 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004483/0.4955, allocations: 160.3 kB / 449 MB, free: 13.69 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001669/0.4972, allocations: 0.9637 MB / 450 MB, free: 12.79 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004014/0.4977, allocations: 159.7 kB / 450.1 MB, free: 12.67 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001724/0.4979, allocations: 74.36 kB / 450.2 MB, free: 12.62 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.959e-05/0.4979, allocations: 192 / 450.2 MB, free: 12.62 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002717/0.4982, allocations: 114.8 kB / 450.3 MB, free: 12.52 MB / 330.7 MB Notification: Performance of pre-optimization done (n=23): time 2.415e-06/0.4982, allocations: 0 / 450.3 MB, free: 12.52 MB / 330.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004817/0.4987, allocations: 158.7 kB / 450.5 MB, free: 12.38 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.955e-05/0.4988, allocations: 51.41 kB / 450.5 MB, free: 12.32 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001839/0.499, allocations: 151.1 kB / 450.7 MB, free: 12.18 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.722e-05/0.499, allocations: 36.7 kB / 450.7 MB, free: 12.14 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001365/0.4992, allocations: 211.9 kB / 450.9 MB, free: 11.95 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.21e-05/0.4993, allocations: 64.94 kB / 451 MB, free: 11.89 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.949e-05/0.4993, allocations: 3.375 kB / 451 MB, free: 11.89 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.4995, allocations: 325.5 kB / 451.3 MB, free: 11.57 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001752/0.4996, allocations: 56.53 kB / 451.4 MB, free: 11.54 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002458/0.4999, allocations: 141 kB / 451.5 MB, free: 11.39 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001963/0.5001, allocations: 68.45 kB / 451.6 MB, free: 11.34 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-06/0.5001, allocations: 0 / 451.6 MB, free: 11.34 MB / 330.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006007/0.5007, allocations: 248.8 kB / 451.8 MB, free: 11.14 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.598e-05/0.5008, allocations: 8 kB / 451.8 MB, free: 11.13 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.035e-05/0.5008, allocations: 4.266 kB / 451.8 MB, free: 11.13 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.253e-05/0.5008, allocations: 8 kB / 451.8 MB, free: 11.12 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002769/0.5011, allocations: 39.34 kB / 451.9 MB, free: 11.09 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.436e-05/0.5012, allocations: 4 kB / 451.9 MB, free: 11.08 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001739/0.5013, allocations: 15.28 kB / 451.9 MB, free: 11.07 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.403e-05/0.5014, allocations: 11.44 kB / 451.9 MB, free: 11.06 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,$whenCondition2,$whenCondition1,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,initialStep.active,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,step.active,transition2.enableFire,$PRE.timer.entryTime,timer.entryTime,greaterEqual.y,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000142/0.5016, allocations: 138.6 kB / 452 MB, free: 10.93 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.938e-05/0.5016, allocations: 11.86 kB / 452 MB, free: 10.92 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005017/0.5021, allocations: 198.5 kB / 452.2 MB, free: 10.77 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.608e-06/0.5021, allocations: 8 kB / 452.2 MB, free: 10.76 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.5022, allocations: 0 / 452.2 MB, free: 10.76 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.705e-06/0.5022, allocations: 3.984 kB / 452.2 MB, free: 10.76 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001073/0.5033, allocations: 0.5763 MB / 452.8 MB, free: 10.2 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.402e-06/0.5033, allocations: 4 kB / 452.8 MB, free: 10.2 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001419/0.5034, allocations: 23.42 kB / 452.8 MB, free: 10.18 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.898e-06/0.5035, allocations: 4 kB / 452.9 MB, free: 10.18 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.86e-05/0.5035, allocations: 0 / 452.9 MB, free: 10.18 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.378e-06/0.5035, allocations: 0 / 452.9 MB, free: 10.18 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.836e-06/0.5035, allocations: 0 / 452.9 MB, free: 10.18 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004367/0.504, allocations: 278.6 kB / 453.1 MB, free: 9.922 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.08e-05/0.504, allocations: 88.95 kB / 453.2 MB, free: 9.816 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.545e-05/0.5041, allocations: 3.312 kB / 453.2 MB, free: 9.816 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001449/0.5043, allocations: 11 kB / 453.2 MB, free: 9.809 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001082/0.5044, allocations: 27.14 kB / 453.3 MB, free: 9.785 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.487e-05/0.5044, allocations: 4 kB / 453.3 MB, free: 9.781 MB / 330.7 MB Notification: Performance of sorting global known variables: time 8.615e-05/0.5045, allocations: 104.2 kB / 453.4 MB, free: 9.688 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5045, allocations: 0 / 453.4 MB, free: 9.688 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004331/0.505, allocations: 46.17 kB / 453.4 MB, free: 9.648 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 19 (step.active,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.newActive,initialStep.oldActive,initialStep.active,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.enableFire,timer.entryTime,greaterEqual.y,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000243/0.5052, allocations: 109.8 kB / 453.5 MB, free: 9.535 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004712/0.5057, allocations: 176.5 kB / 453.7 MB, free: 9.402 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.5057, allocations: 0 / 453.7 MB, free: 9.402 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001971/0.5059, allocations: 82.86 kB / 453.8 MB, free: 9.34 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002918/0.5062, allocations: 21.86 kB / 453.8 MB, free: 9.324 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006923/0.5069, allocations: 261.1 kB / 454 MB, free: 9.078 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003363/0.5073, allocations: 0.744 MB / 454.8 MB, free: 8.312 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001069/0.5074, allocations: 23.44 kB / 454.8 MB, free: 8.289 MB / 330.7 MB Notification: Performance of SimCode: time 1.132e-06/0.5074, allocations: 0 / 454.8 MB, free: 8.289 MB / 330.7 MB Notification: Performance of Templates: time 0.006657/0.5141, allocations: 2.335 MB / 457.1 MB, free: 5.977 MB / 330.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","../files/Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches