Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001329/0.001329, allocations: 176.4 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.343/1.343, allocations: 221.5 MB / 230.3 MB, free: 7.578 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008884/0.0008882, allocations: 87.67 kB / 281.2 MB, free: 5.324 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.01e-05/2.004e-05, allocations: 4 kB / 337 MB, free: 10.04 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.1168, allocations: 50.42 MB / 387.5 MB, free: 7.574 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.326/0.4429, allocations: 75.94 MB / 463.4 MB, free: 2.918 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001718/0.4431, allocations: 63.97 kB / 463.5 MB, free: 2.855 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007442/0.4506, allocations: 3.029 MB / 466.5 MB, free: 15.81 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.4506, allocations: 0 / 466.5 MB, free: 15.81 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.186e-05/0.4506, allocations: 4 kB / 466.5 MB, free: 15.81 MB / 346.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.000509/0.4511, allocations: 444.8 kB / 466.9 MB, free: 15.33 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.513e-05/0.4512, allocations: 8.031 kB / 466.9 MB, free: 15.32 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.236e-05/0.4513, allocations: 23.72 kB / 467 MB, free: 15.3 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000277/0.4515, allocations: 222.9 kB / 467.2 MB, free: 15.04 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.813e-05/0.4516, allocations: 8 kB / 467.2 MB, free: 15.04 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.893e-05/0.4516, allocations: 16 kB / 467.2 MB, free: 15.02 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002973/0.4519, allocations: 149 kB / 467.3 MB, free: 14.87 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003818/0.4523, allocations: 240.9 kB / 467.6 MB, free: 14.61 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.148e-05/0.4523, allocations: 0 / 467.6 MB, free: 14.61 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.169e-05/0.4524, allocations: 0 / 467.6 MB, free: 14.61 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.737e-05/0.4524, allocations: 8 kB / 467.6 MB, free: 14.61 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001061/0.4535, allocations: 0.9086 MB / 468.5 MB, free: 13.64 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002325/0.4537, allocations: 157.8 kB / 468.7 MB, free: 13.47 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001093/0.4538, allocations: 70.09 kB / 468.7 MB, free: 13.39 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.015e-05/0.4539, allocations: 4.188 kB / 468.7 MB, free: 13.39 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000191/0.4541, allocations: 135.9 kB / 468.9 MB, free: 13.24 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 1.453e-06/0.4541, allocations: 3.938 kB / 468.9 MB, free: 13.24 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003036/0.4544, allocations: 149.4 kB / 469 MB, free: 13.09 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.083e-05/0.4544, allocations: 89.05 kB / 469.1 MB, free: 12.98 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001216/0.4546, allocations: 146.9 kB / 469.2 MB, free: 12.83 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.854e-05/0.4546, allocations: 29.7 kB / 469.3 MB, free: 12.8 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.077e-05/0.4547, allocations: 136.3 kB / 469.4 MB, free: 12.66 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.812e-05/0.4548, allocations: 59.23 kB / 469.5 MB, free: 12.6 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.037e-05/0.4548, allocations: 4 kB / 469.5 MB, free: 12.6 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001181/0.4549, allocations: 322.8 kB / 469.8 MB, free: 12.27 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.789e-05/0.455, allocations: 56 kB / 469.8 MB, free: 12.22 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001412/0.4551, allocations: 136.5 kB / 470 MB, free: 12.05 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000109/0.4553, allocations: 59.97 kB / 470 MB, free: 12 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.908e-06/0.4553, allocations: 4 kB / 470 MB, free: 11.99 MB / 346.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003123/0.4556, allocations: 217.2 kB / 470.2 MB, free: 11.77 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.4556, allocations: 4 kB / 470.2 MB, free: 11.77 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.628e-06/0.4556, allocations: 8 kB / 470.3 MB, free: 11.76 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.822e-05/0.4557, allocations: 4.281 kB / 470.3 MB, free: 11.76 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001457/0.4558, allocations: 39.86 kB / 470.3 MB, free: 11.72 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.724e-06/0.4558, allocations: 4 kB / 470.3 MB, free: 11.71 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.693e-05/0.4559, allocations: 15.86 kB / 470.3 MB, free: 11.7 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.893e-05/0.456, allocations: 15.98 kB / 470.3 MB, free: 11.68 MB / 346.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: 32 ($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,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001101/0.4561, allocations: 131.9 kB / 470.5 MB, free: 11.55 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.022e-05/0.4561, allocations: 7.906 kB / 470.5 MB, free: 11.54 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003136/0.4564, allocations: 174.2 kB / 470.6 MB, free: 11.36 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.122e-06/0.4564, allocations: 8 kB / 470.6 MB, free: 11.36 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.4564, allocations: 0 / 470.6 MB, free: 11.36 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.123e-06/0.4565, allocations: 3.984 kB / 470.6 MB, free: 11.35 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006366/0.4571, allocations: 0.5218 MB / 471.2 MB, free: 10.78 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.4571, allocations: 0 / 471.2 MB, free: 10.78 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.558e-05/0.4572, allocations: 19.92 kB / 471.2 MB, free: 10.76 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.4572, allocations: 0 / 471.2 MB, free: 10.76 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.342e-05/0.4572, allocations: 8 kB / 471.2 MB, free: 10.75 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.4572, allocations: 0 / 471.2 MB, free: 10.75 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.4572, allocations: 3.953 kB / 471.2 MB, free: 10.75 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000292/0.4575, allocations: 273.8 kB / 471.5 MB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.656e-05/0.4576, allocations: 92.92 kB / 471.6 MB, free: 10.35 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.523e-05/0.4576, allocations: 4 kB / 471.6 MB, free: 10.34 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.581e-05/0.4577, allocations: 15.94 kB / 471.6 MB, free: 10.33 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.108e-05/0.4578, allocations: 23.91 kB / 471.6 MB, free: 10.3 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.496e-05/0.4578, allocations: 12 kB / 471.6 MB, free: 10.29 MB / 346.7 MB Notification: Performance of sorting global known variables: time 5.601e-05/0.4579, allocations: 95.91 kB / 471.7 MB, free: 10.2 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4579, allocations: 7.938 kB / 471.7 MB, free: 10.19 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002924/0.4582, allocations: 36 kB / 471.7 MB, free: 10.16 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 20 (transition2.t_start,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: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001485/0.4584, allocations: 103.2 kB / 471.8 MB, free: 10.04 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002672/0.4586, allocations: 172.4 kB / 472 MB, free: 9.875 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.4586, allocations: 3.938 kB / 472 MB, free: 9.871 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001087/0.4588, allocations: 79.88 kB / 472.1 MB, free: 9.793 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000188/0.4589, allocations: 7.984 kB / 472.1 MB, free: 9.785 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004415/0.4594, allocations: 238.8 kB / 472.3 MB, free: 9.527 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003018/0.4597, allocations: 0.744 MB / 473.1 MB, free: 8.758 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 8.89e-05/0.4598, allocations: 22.08 kB / 473.1 MB, free: 8.738 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.415e-05/0.4599, allocations: 27.42 kB / 473.1 MB, free: 8.711 MB / 346.7 MB Notification: Performance of SimCode: time 2.41e-07/0.4599, allocations: 0 / 473.1 MB, free: 8.711 MB / 346.7 MB Notification: Performance of Templates: time 0.004218/0.4641, allocations: 1.627 MB / 474.8 MB, free: 7.098 MB / 346.7 MB make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches