Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001437/0.001437, allocations: 177.8 kB / 8.358 MB, free: 0.7188 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.981/1.981, 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.001086/0.001086, allocations: 82.8 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 1.896e-05/1.905e-05, allocations: 0 / 314.8 MB, free: 9.168 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3469/0.3469, allocations: 47.57 MB / 362.3 MB, free: 45.84 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1209/0.4679, allocations: 74.42 MB / 436.7 MB, free: 11.92 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002445/0.4682, allocations: 63.97 kB / 436.8 MB, free: 11.86 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.01141/0.4797, allocations: 2.78 MB / 439.6 MB, free: 9.09 MB / 331.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.4797, allocations: 0 / 439.6 MB, free: 9.09 MB / 331.1 MB Notification: Performance of Transformations before backend: time 1.983e-05/0.4797, allocations: 7.281 kB / 439.6 MB, free: 9.086 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0007402/0.4805, allocations: 441.7 kB / 440 MB, free: 8.609 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.672e-05/0.4806, allocations: 9.75 kB / 440 MB, free: 8.602 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.605e-05/0.4806, allocations: 19.81 kB / 440 MB, free: 8.582 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003384/0.481, allocations: 222.8 kB / 440.3 MB, free: 8.324 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.76e-05/0.481, allocations: 15.06 kB / 440.3 MB, free: 8.312 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.194e-05/0.4811, allocations: 16 kB / 440.3 MB, free: 8.297 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004436/0.4816, allocations: 133.9 kB / 440.4 MB, free: 8.164 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005082/0.4821, allocations: 214.1 kB / 440.6 MB, free: 7.945 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.532e-05/0.4821, allocations: 0 / 440.6 MB, free: 7.945 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.785e-05/0.4822, allocations: 3.5 kB / 440.6 MB, free: 7.945 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.132e-05/0.4822, allocations: 8 kB / 440.6 MB, free: 7.938 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001383/0.4836, allocations: 0.6383 MB / 441.3 MB, free: 7.258 MB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003903/0.484, allocations: 155.2 kB / 441.4 MB, free: 7.098 MB / 331.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001719/0.4842, allocations: 70.66 kB / 441.5 MB, free: 7.027 MB / 331.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.656e-05/0.4842, allocations: 192 / 441.5 MB, free: 7.027 MB / 331.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002617/0.4845, allocations: 114 kB / 441.6 MB, free: 6.906 MB / 331.1 MB Notification: Performance of pre-optimization done (n=24): time 2.254e-06/0.4845, allocations: 0 / 441.6 MB, free: 6.906 MB / 331.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004373/0.485, allocations: 154.7 kB / 441.8 MB, free: 6.75 MB / 331.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.939e-05/0.485, allocations: 61.64 kB / 441.8 MB, free: 6.68 MB / 331.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000185/0.4852, allocations: 137 kB / 442 MB, free: 6.535 MB / 331.1 MB Notification: Performance of collectPreVariables (initialization): time 4.098e-05/0.4853, allocations: 33.7 kB / 442 MB, free: 6.496 MB / 331.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001452/0.4854, allocations: 194.8 kB / 442.2 MB, free: 6.305 MB / 331.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.925e-05/0.4855, allocations: 55.27 kB / 442.2 MB, free: 6.25 MB / 331.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.393e-05/0.4855, allocations: 0 / 442.2 MB, free: 6.25 MB / 331.1 MB Notification: Performance of setup shared object (initialization): time 0.0001422/0.4857, allocations: 326.8 kB / 442.6 MB, free: 5.922 MB / 331.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000159/0.4859, allocations: 52.66 kB / 442.6 MB, free: 5.867 MB / 331.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002163/0.4861, allocations: 111.8 kB / 442.7 MB, free: 5.734 MB / 331.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001696/0.4863, allocations: 59.92 kB / 442.8 MB, free: 5.676 MB / 331.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/0.4863, allocations: 0 / 442.8 MB, free: 5.676 MB / 331.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000496/0.4868, allocations: 201.6 kB / 443 MB, free: 5.473 MB / 331.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.153e-05/0.4868, allocations: 12 kB / 443 MB, free: 5.461 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.668e-06/0.4869, allocations: 0 / 443 MB, free: 5.461 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.001e-05/0.4869, allocations: 4.875 kB / 443 MB, free: 5.457 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002304/0.4871, allocations: 31.91 kB / 443 MB, free: 5.426 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.153e-05/0.4871, allocations: 7.953 kB / 443 MB, free: 5.418 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001533/0.4873, allocations: 15.84 kB / 443 MB, free: 5.402 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.266e-05/0.4874, allocations: 12.78 kB / 443.1 MB, free: 5.391 MB / 331.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,$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,transition2.fire,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001313/0.4875, allocations: 124 kB / 443.2 MB, free: 5.262 MB / 331.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.371e-05/0.4876, allocations: 15.89 kB / 443.2 MB, free: 5.246 MB / 331.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005045/0.4881, allocations: 179.4 kB / 443.4 MB, free: 5.07 MB / 331.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.51e-06/0.4881, allocations: 4 kB / 443.4 MB, free: 5.066 MB / 331.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.533e-06/0.4881, allocations: 1.812 kB / 443.4 MB, free: 5.066 MB / 331.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.195e-06/0.4881, allocations: 4.516 kB / 443.4 MB, free: 5.062 MB / 331.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001059/0.4892, allocations: 0.4967 MB / 443.9 MB, free: 4.523 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.023e-06/0.4892, allocations: 3.984 kB / 443.9 MB, free: 4.52 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00014/0.4894, allocations: 16 kB / 443.9 MB, free: 4.504 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.542e-06/0.4894, allocations: 0 / 443.9 MB, free: 4.504 MB / 331.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.044e-05/0.4894, allocations: 3.953 kB / 443.9 MB, free: 4.5 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.394e-06/0.4894, allocations: 10.52 kB / 443.9 MB, free: 4.492 MB / 331.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.4894, allocations: 0 / 443.9 MB, free: 4.492 MB / 331.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004416/0.4899, allocations: 263.6 kB / 444.2 MB, free: 4.219 MB / 331.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.28e-05/0.49, allocations: 92.95 kB / 444.3 MB, free: 4.109 MB / 331.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.44e-05/0.49, allocations: 3.984 kB / 444.3 MB, free: 4.105 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001399/0.4902, allocations: 7.953 kB / 444.3 MB, free: 4.098 MB / 331.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001024/0.4903, allocations: 28.83 kB / 444.3 MB, free: 4.07 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.444e-05/0.4903, allocations: 4 kB / 444.3 MB, free: 4.066 MB / 331.1 MB Notification: Performance of sorting global known variables: time 7.048e-05/0.4904, allocations: 88.03 kB / 444.4 MB, free: 3.98 MB / 331.1 MB Notification: Performance of sort global known variables: time 6.01e-07/0.4904, allocations: 0 / 444.4 MB, free: 3.98 MB / 331.1 MB Notification: Performance of remove unused functions: time 0.0004362/0.4909, allocations: 32 kB / 444.4 MB, free: 3.949 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 (transition2.enableFire,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,step.active,transition2.fire,transition2.t_start,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 22 * 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.0001961/0.4911, allocations: 115.2 kB / 444.5 MB, free: 3.824 MB / 331.1 MB Notification: Performance of simCode: created initialization part: time 0.0004344/0.4915, allocations: 164 kB / 444.7 MB, free: 3.664 MB / 331.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.4915, allocations: 0 / 444.7 MB, free: 3.664 MB / 331.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001753/0.4917, allocations: 71.94 kB / 444.8 MB, free: 3.594 MB / 331.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002758/0.492, allocations: 15.98 kB / 444.8 MB, free: 3.578 MB / 331.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006259/0.4926, allocations: 235.1 kB / 445 MB, free: 3.32 MB / 331.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003438/0.493, allocations: 0.7405 MB / 445.7 MB, free: 2.555 MB / 331.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001324/0.4931, allocations: 27.44 kB / 445.8 MB, free: 2.527 MB / 331.1 MB Notification: Performance of SimCode: time 9.32e-07/0.4932, allocations: 0 / 445.8 MB, free: 2.527 MB / 331.1 MB Notification: Performance of Templates: time 0.006136/0.4993, allocations: 2.269 MB / 448 MB, free: 308 kB / 331.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","../files/Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches