Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_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_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001859/0.001859, allocations: 113.8 kB / 17.28 MB, free: 6.219 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001857/0.001857, allocations: 193.3 kB / 18.19 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.152/2.152, allocations: 205.1 MB / 224.1 MB, free: 12.45 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00203/0.00203, allocations: 55.92 kB / 280.1 MB, free: 3.516 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1505/0.1525, allocations: 46.63 MB / 326.8 MB, free: 4.816 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.003382/0.1559, allocations: 1.562 MB / 328.3 MB, free: 3.238 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008622/0.1568, allocations: 263.2 kB / 328.6 MB, free: 2.98 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001885/0.157, allocations: 8 kB / 328.6 MB, free: 2.973 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001746/0.1573, allocations: 11.81 kB / 328.6 MB, free: 2.961 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001222/0.1574, allocations: 15.91 kB / 328.6 MB, free: 2.945 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005463/0.1579, allocations: 95.91 kB / 328.7 MB, free: 2.852 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004229/0.1584, allocations: 259.5 kB / 329 MB, free: 2.598 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000346/0.1587, allocations: 162.4 kB / 329.1 MB, free: 2.434 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001323/0.1589, allocations: 91.69 kB / 329.2 MB, free: 2.344 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000159/0.159, allocations: 87.61 kB / 329.3 MB, free: 2.258 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.037e-05/0.1591, allocations: 24 kB / 329.3 MB, free: 2.234 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.656e-05/0.1592, allocations: 27.94 kB / 329.4 MB, free: 2.207 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.061e-05/0.1593, allocations: 63.81 kB / 329.4 MB, free: 2.145 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001222/0.1594, allocations: 91.53 kB / 329.5 MB, free: 2.055 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002948/0.1597, allocations: 227.3 kB / 329.7 MB, free: 1.832 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.1597, allocations: 0 / 329.7 MB, free: 1.832 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1597, allocations: 0 / 329.7 MB, free: 1.832 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.935e-06/0.1597, allocations: 3.938 kB / 329.7 MB, free: 1.828 MB / 270.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.0007237/0.1605, allocations: 486.7 kB / 330.2 MB, free: 1.297 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.265e-05/0.1605, allocations: 12.03 kB / 330.2 MB, free: 1.285 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.08e-05/0.1606, allocations: 20.75 kB / 330.2 MB, free: 1.266 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002647/0.1609, allocations: 228 kB / 330.5 MB, free: 1.004 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.19e-05/0.1609, allocations: 28.94 kB / 330.5 MB, free: 0.9766 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.409e-05/0.161, allocations: 28.31 kB / 330.5 MB, free: 0.9492 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004471/0.1614, allocations: 244 kB / 330.8 MB, free: 0.6992 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.217e-05/0.1614, allocations: 192 / 330.8 MB, free: 0.6992 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.782e-05/0.1615, allocations: 15.94 kB / 330.8 MB, free: 0.6836 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.123e-06/0.1615, allocations: 4 kB / 330.8 MB, free: 0.6797 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002809/0.1618, allocations: 157.7 kB / 330.9 MB, free: 0.5273 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001047/0.1628, allocations: 0.7012 MB / 331.6 MB, free: 15.77 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003024/0.1631, allocations: 182.7 kB / 331.8 MB, free: 15.58 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000126/0.1633, allocations: 76.83 kB / 331.9 MB, free: 15.5 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.89e-05/0.1633, allocations: 0 / 331.9 MB, free: 15.5 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002682/0.1636, allocations: 123.2 kB / 332 MB, free: 15.37 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.573e-06/0.1636, allocations: 0 / 332 MB, free: 15.37 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004712/0.1641, allocations: 217.9 kB / 332.2 MB, free: 15.15 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.165e-05/0.1641, allocations: 67.33 kB / 332.3 MB, free: 15.07 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001274/0.1643, allocations: 145.9 kB / 332.4 MB, free: 14.92 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.371e-05/0.1643, allocations: 37.7 kB / 332.5 MB, free: 14.88 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001446/0.1645, allocations: 128.6 kB / 332.6 MB, free: 14.75 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.277e-05/0.1645, allocations: 63.19 kB / 332.7 MB, free: 14.69 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.805e-05/0.1646, allocations: 74.02 kB / 332.7 MB, free: 14.61 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001174/0.1648, allocations: 326.8 kB / 333 MB, free: 14.28 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001133/0.1649, allocations: 64.62 kB / 333.1 MB, free: 14.22 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001432/0.165, allocations: 132.1 kB / 333.2 MB, free: 14.07 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002306/0.1653, allocations: 178.6 kB / 333.4 MB, free: 13.87 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.1653, allocations: 0 / 333.4 MB, free: 13.87 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003768/0.1657, allocations: 237.2 kB / 333.6 MB, free: 13.63 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.697e-05/0.1657, allocations: 8.219 kB / 333.6 MB, free: 13.62 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/0.1657, allocations: 4 kB / 333.7 MB, free: 13.62 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.667e-05/0.1657, allocations: 4 kB / 333.7 MB, free: 13.61 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001337/0.1659, allocations: 31.92 kB / 333.7 MB, free: 13.58 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.038e-05/0.1659, allocations: 7.984 kB / 333.7 MB, free: 13.57 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.502e-05/0.166, allocations: 23.78 kB / 333.7 MB, free: 13.55 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.302e-05/0.166, allocations: 12 kB / 333.7 MB, free: 13.54 MB / 286.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,stateGraphRoot.activeSteps,transition2.t_start,$PRE.transition2.t_start,transition2.fire,transition2.enableFire,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,step.active,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,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000139/0.1662, allocations: 157.8 kB / 333.9 MB, free: 13.38 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.747e-05/0.1662, allocations: 19.75 kB / 333.9 MB, free: 13.36 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003334/0.1665, allocations: 198.3 kB / 334.1 MB, free: 13.16 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.982e-06/0.1666, allocations: 4 kB / 334.1 MB, free: 13.15 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.1666, allocations: 3.938 kB / 334.1 MB, free: 13.15 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.384e-06/0.1666, allocations: 3.984 kB / 334.1 MB, free: 13.14 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007/0.1673, allocations: 0.5646 MB / 334.7 MB, free: 12.52 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/0.1673, allocations: 4 kB / 334.7 MB, free: 12.52 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.324e-05/0.1674, allocations: 12 kB / 334.7 MB, free: 12.51 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.639e-06/0.1674, allocations: 8 kB / 334.7 MB, free: 12.5 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.536e-05/0.1674, allocations: 7.984 kB / 334.7 MB, free: 12.49 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/0.1674, allocations: 0 / 334.7 MB, free: 12.49 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-06/0.1674, allocations: 7.938 kB / 334.7 MB, free: 12.48 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003141/0.1677, allocations: 279.2 kB / 335 MB, free: 12.2 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.717e-05/0.1678, allocations: 92.89 kB / 335.1 MB, free: 12.09 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.557e-05/0.1679, allocations: 4 kB / 335.1 MB, free: 12.08 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.751e-05/0.1679, allocations: 11.98 kB / 335.1 MB, free: 12.07 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.163e-05/0.168, allocations: 23.92 kB / 335.1 MB, free: 12.05 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.884e-05/0.1681, allocations: 7.984 kB / 335.1 MB, free: 12.04 MB / 286.1 MB Notification: Performance of sorting global known variables: time 6.682e-05/0.1681, allocations: 103.8 kB / 335.2 MB, free: 11.94 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1681, allocations: 0 / 335.2 MB, free: 11.94 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003274/0.1685, allocations: 47.84 kB / 335.3 MB, free: 11.89 MB / 286.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.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.active,step.newActive,step.oldActive,transition2.fire,transition2.t_start,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * 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 (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.0002043/0.1687, allocations: 111.1 kB / 335.4 MB, free: 11.77 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004256/0.1691, allocations: 192.1 kB / 335.6 MB, free: 11.58 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.1691, allocations: 0 / 335.6 MB, free: 11.58 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001431/0.1693, allocations: 91.83 kB / 335.7 MB, free: 11.49 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003316/0.1696, allocations: 27.98 kB / 335.7 MB, free: 11.46 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000804/0.1704, allocations: 393 kB / 336.1 MB, free: 11.06 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004591/0.1709, allocations: 0.7362 MB / 336.8 MB, free: 10.3 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 9.212e-05/0.171, allocations: 17.95 kB / 336.8 MB, free: 10.28 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.283e-05/0.1711, allocations: 23.42 kB / 336.8 MB, free: 10.26 MB / 286.1 MB Notification: Performance of SimCode: time 5.51e-07/0.1711, allocations: 0 / 336.8 MB, free: 10.26 MB / 286.1 MB Notification: Performance of Templates: time 0.005518/0.1766, allocations: 1.834 MB / 338.7 MB, free: 8.434 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins/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_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches