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.002202/0.002201, allocations: 177.7 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.19/2.19, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001114/0.001114, allocations: 86.06 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 1.742e-05/1.745e-05, allocations: 4 kB / 314.8 MB, free: 9.16 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3295/0.3295, allocations: 47.56 MB / 362.3 MB, free: 45.84 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1201/0.4497, allocations: 75.05 MB / 437.4 MB, free: 11.26 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002524/0.45, allocations: 63.97 kB / 437.4 MB, free: 11.2 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.01247/0.4625, allocations: 2.939 MB / 440.4 MB, free: 8.27 MB / 331.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.4625, allocations: 0 / 440.4 MB, free: 8.27 MB / 331.1 MB Notification: Performance of Transformations before backend: time 2.293e-05/0.4626, allocations: 11.22 kB / 440.4 MB, free: 8.262 MB / 331.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.0007364/0.4633, allocations: 447 kB / 440.8 MB, free: 7.781 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.995e-05/0.4634, allocations: 12.03 kB / 440.8 MB, free: 7.77 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.784e-05/0.4635, allocations: 25.12 kB / 440.9 MB, free: 7.746 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003425/0.4638, allocations: 222.8 kB / 441.1 MB, free: 7.488 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.788e-05/0.4639, allocations: 8.844 kB / 441.1 MB, free: 7.48 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.729e-05/0.4639, allocations: 16 kB / 441.1 MB, free: 7.465 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004684/0.4644, allocations: 144.2 kB / 441.2 MB, free: 7.328 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005458/0.465, allocations: 236.7 kB / 441.5 MB, free: 7.078 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.572e-05/0.465, allocations: 0 / 441.5 MB, free: 7.078 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.936e-05/0.4651, allocations: 0 / 441.5 MB, free: 7.078 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.348e-05/0.4651, allocations: 8 kB / 441.5 MB, free: 7.07 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001608/0.4667, allocations: 0.9058 MB / 442.4 MB, free: 6.113 MB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003582/0.4671, allocations: 139.2 kB / 442.5 MB, free: 5.969 MB / 331.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001608/0.4673, allocations: 74.7 kB / 442.6 MB, free: 5.895 MB / 331.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.23e-05/0.4673, allocations: 8.188 kB / 442.6 MB, free: 5.887 MB / 331.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002505/0.4676, allocations: 102 kB / 442.7 MB, free: 5.777 MB / 331.1 MB Notification: Performance of pre-optimization done (n=23): time 2.655e-06/0.4676, allocations: 0 / 442.7 MB, free: 5.777 MB / 331.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004451/0.4681, allocations: 143 kB / 442.8 MB, free: 5.633 MB / 331.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.958e-05/0.4682, allocations: 59.41 kB / 442.9 MB, free: 5.562 MB / 331.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001781/0.4683, allocations: 141.1 kB / 443 MB, free: 5.414 MB / 331.1 MB Notification: Performance of collectPreVariables (initialization): time 3.893e-05/0.4684, allocations: 29.64 kB / 443.1 MB, free: 5.379 MB / 331.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001458/0.4686, allocations: 218.6 kB / 443.3 MB, free: 5.16 MB / 331.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.029e-05/0.4686, allocations: 51.34 kB / 443.3 MB, free: 5.109 MB / 331.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.446e-05/0.4687, allocations: 0 / 443.3 MB, free: 5.109 MB / 331.1 MB Notification: Performance of setup shared object (initialization): time 0.0001312/0.4688, allocations: 322.8 kB / 443.6 MB, free: 4.785 MB / 331.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001615/0.469, allocations: 57.59 kB / 443.7 MB, free: 4.727 MB / 331.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002139/0.4692, allocations: 125.5 kB / 443.8 MB, free: 4.574 MB / 331.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001812/0.4694, allocations: 59.97 kB / 443.9 MB, free: 4.516 MB / 331.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/0.4694, allocations: 0 / 443.9 MB, free: 4.516 MB / 331.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005241/0.4699, allocations: 217.2 kB / 444.1 MB, free: 4.297 MB / 331.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.501e-05/0.47, allocations: 8 kB / 444.1 MB, free: 4.289 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.787e-06/0.47, allocations: 0 / 444.1 MB, free: 4.289 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.505e-05/0.47, allocations: 16.27 kB / 444.1 MB, free: 4.273 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002412/0.4703, allocations: 27.92 kB / 444.1 MB, free: 4.246 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.347e-05/0.4703, allocations: 10.19 kB / 444.2 MB, free: 4.238 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001623/0.4705, allocations: 11.91 kB / 444.2 MB, free: 4.227 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.08e-05/0.4705, allocations: 12 kB / 444.2 MB, free: 4.215 MB / 331.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: 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.0001452/0.4707, allocations: 128 kB / 444.3 MB, free: 4.082 MB / 331.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.217e-05/0.4708, allocations: 15.86 kB / 444.3 MB, free: 4.066 MB / 331.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004965/0.4713, allocations: 171.6 kB / 444.5 MB, free: 3.898 MB / 331.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.4713, allocations: 4 kB / 444.5 MB, free: 3.895 MB / 331.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.381e-06/0.4713, allocations: 0 / 444.5 MB, free: 3.895 MB / 331.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.4713, allocations: 0 / 444.5 MB, free: 3.895 MB / 331.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001036/0.4724, allocations: 0.5211 MB / 445 MB, free: 3.328 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.182e-06/0.4724, allocations: 3.984 kB / 445 MB, free: 3.324 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001388/0.4725, allocations: 19.94 kB / 445 MB, free: 3.305 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.496e-06/0.4726, allocations: 4 kB / 445 MB, free: 3.301 MB / 331.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.032e-05/0.4726, allocations: 3.984 kB / 445 MB, free: 3.297 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.925e-06/0.4726, allocations: 3.984 kB / 445 MB, free: 3.293 MB / 331.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.831e-06/0.4726, allocations: 4 kB / 445.1 MB, free: 3.289 MB / 331.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004433/0.4731, allocations: 253.6 kB / 445.3 MB, free: 3.027 MB / 331.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.267e-05/0.4732, allocations: 92.91 kB / 445.4 MB, free: 2.918 MB / 331.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.324e-05/0.4732, allocations: 0 / 445.4 MB, free: 2.918 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001529/0.4734, allocations: 15.98 kB / 445.4 MB, free: 2.902 MB / 331.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001005/0.4735, allocations: 15.97 kB / 445.4 MB, free: 2.887 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.836e-05/0.4735, allocations: 15.94 kB / 445.4 MB, free: 2.871 MB / 331.1 MB Notification: Performance of sorting global known variables: time 8.236e-05/0.4736, allocations: 97.88 kB / 445.5 MB, free: 2.777 MB / 331.1 MB Notification: Performance of sort global known variables: time 5.51e-07/0.4736, allocations: 0 / 445.5 MB, free: 2.777 MB / 331.1 MB Notification: Performance of remove unused functions: time 0.0004514/0.4741, allocations: 33.03 kB / 445.6 MB, free: 2.746 MB / 331.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: 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.0001933/0.4743, allocations: 107.9 kB / 445.7 MB, free: 2.629 MB / 331.1 MB Notification: Performance of simCode: created initialization part: time 0.0004469/0.4748, allocations: 164.4 kB / 445.8 MB, free: 2.469 MB / 331.1 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.4748, allocations: 0 / 445.8 MB, free: 2.469 MB / 331.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001759/0.475, allocations: 75.88 kB / 445.9 MB, free: 2.395 MB / 331.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000307/0.4753, allocations: 23.45 kB / 445.9 MB, free: 2.375 MB / 331.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006815/0.476, allocations: 239.1 kB / 446.2 MB, free: 2.113 MB / 331.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003899/0.4764, allocations: 0.7465 MB / 446.9 MB, free: 1.344 MB / 331.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001049/0.4765, allocations: 19.44 kB / 446.9 MB, free: 1.324 MB / 331.1 MB Notification: Performance of SimCode: time 9.12e-07/0.4765, allocations: 0 / 446.9 MB, free: 1.324 MB / 331.1 MB Notification: Performance of Templates: time 0.006984/0.4835, allocations: 2.325 MB / 449.3 MB, free: 15.04 MB / 347.1 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