Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001845/0.001845, allocations: 107.4 kB / 17.98 MB, free: 5.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00221/0.00221, allocations: 205.8 kB / 18.92 MB, free: 4.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.336/2.336, allocations: 227.4 MB / 247.1 MB, free: 10.81 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002434/0.002434, allocations: 60.88 kB / 307.1 MB, free: 0.9531 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1529/0.1554, allocations: 50.53 MB / 357.6 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.004699/0.1601, allocations: 1.811 MB / 359.4 MB, free: 12.61 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009754/0.1611, allocations: 299.1 kB / 359.7 MB, free: 12.31 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001921/0.1614, allocations: 4 kB / 359.7 MB, free: 12.31 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000192/0.1616, allocations: 19.8 kB / 359.7 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 9.666e-05/0.1617, allocations: 11.92 kB / 359.8 MB, free: 12.28 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005212/0.1622, allocations: 103.9 kB / 359.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004645/0.1627, allocations: 275.4 kB / 360.1 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004233/0.1632, allocations: 181.5 kB / 360.3 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001441/0.1633, allocations: 87.72 kB / 360.4 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001686/0.1635, allocations: 103.5 kB / 360.5 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.882e-05/0.1636, allocations: 20 kB / 360.5 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.453e-05/0.1637, allocations: 32 kB / 360.5 MB, free: 11.49 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.034e-05/0.1638, allocations: 55.81 kB / 360.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001413/0.1639, allocations: 107.5 kB / 360.7 MB, free: 11.33 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002863/0.1642, allocations: 179.7 kB / 360.9 MB, free: 11.15 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.494e-06/0.1642, allocations: 3.984 kB / 360.9 MB, free: 11.15 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.445e-06/0.1642, allocations: 4 kB / 360.9 MB, free: 11.14 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.698e-06/0.1642, allocations: 0 / 360.9 MB, free: 11.14 MB / 302.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.0008798/0.1651, allocations: 498.9 kB / 361.4 MB, free: 10.6 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.833e-05/0.1652, allocations: 8.031 kB / 361.4 MB, free: 10.59 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000303/0.1655, allocations: 32.64 kB / 361.4 MB, free: 10.56 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003062/0.1658, allocations: 228.1 kB / 361.6 MB, free: 10.3 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.52e-05/0.1659, allocations: 20.94 kB / 361.7 MB, free: 10.28 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.264e-05/0.1659, allocations: 32.36 kB / 361.7 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005959/0.1665, allocations: 274.5 kB / 362 MB, free: 9.965 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.447e-05/0.1666, allocations: 4.125 kB / 362 MB, free: 9.961 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.67e-05/0.1666, allocations: 15.94 kB / 362 MB, free: 9.945 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.05e-05/0.1666, allocations: 4 kB / 362 MB, free: 9.941 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004189/0.1671, allocations: 161.6 kB / 362.1 MB, free: 9.781 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001563/0.1686, allocations: 0.9711 MB / 363.1 MB, free: 8.742 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003599/0.169, allocations: 168.3 kB / 363.3 MB, free: 8.562 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001684/0.1692, allocations: 85.58 kB / 363.4 MB, free: 8.473 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.073e-05/0.1692, allocations: 7.984 kB / 363.4 MB, free: 8.465 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003248/0.1696, allocations: 133 kB / 363.5 MB, free: 8.316 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 2.184e-06/0.1696, allocations: 0 / 363.5 MB, free: 8.316 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005563/0.1702, allocations: 228.1 kB / 363.7 MB, free: 8.09 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.975e-05/0.1702, allocations: 81.11 kB / 363.8 MB, free: 7.992 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001545/0.1704, allocations: 157.8 kB / 363.9 MB, free: 7.828 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.829e-05/0.1705, allocations: 37.7 kB / 364 MB, free: 7.785 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001132/0.1706, allocations: 136.5 kB / 364.1 MB, free: 7.648 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.612e-05/0.1707, allocations: 67.19 kB / 364.2 MB, free: 7.582 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001308/0.1708, allocations: 77.69 kB / 364.3 MB, free: 7.5 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001359/0.1709, allocations: 330.8 kB / 364.6 MB, free: 7.168 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001687/0.1711, allocations: 67.75 kB / 364.6 MB, free: 7.102 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002179/0.1714, allocations: 136.5 kB / 364.8 MB, free: 6.938 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003715/0.1717, allocations: 197 kB / 365 MB, free: 6.715 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/0.1718, allocations: 0 / 365 MB, free: 6.715 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0005315/0.1723, allocations: 253.3 kB / 365.2 MB, free: 6.461 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.223e-05/0.1723, allocations: 8 kB / 365.2 MB, free: 6.453 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.646e-06/0.1723, allocations: 0 / 365.2 MB, free: 6.453 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.26e-05/0.1724, allocations: 4 kB / 365.2 MB, free: 6.449 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001985/0.1726, allocations: 39.86 kB / 365.3 MB, free: 6.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.385e-05/0.1726, allocations: 4 kB / 365.3 MB, free: 6.406 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001547/0.1728, allocations: 23.75 kB / 365.3 MB, free: 6.383 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.783e-05/0.1728, allocations: 12 kB / 365.3 MB, free: 6.371 MB / 302.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: 32 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,timer.entryTime,$PRE.timer.entryTime,transition2.enableFire,transition2.condition,step.active,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,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,transition2.t_start,$PRE.transition2.t_start,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002049/0.173, allocations: 173.8 kB / 365.5 MB, free: 6.191 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.524e-05/0.1731, allocations: 11.81 kB / 365.5 MB, free: 6.18 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.016e-05/0.1731, allocations: 20.83 kB / 365.5 MB, free: 6.156 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.101e-06/0.1731, allocations: 4 kB / 365.5 MB, free: 6.152 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/0.1732, allocations: 0 / 365.5 MB, free: 6.152 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.241e-06/0.1732, allocations: 0 / 365.5 MB, free: 6.152 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008913/0.1741, allocations: 0.579 MB / 366.1 MB, free: 5.512 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.1741, allocations: 3.938 kB / 366.1 MB, free: 5.508 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001012/0.1742, allocations: 19.92 kB / 366.1 MB, free: 5.488 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.192e-06/0.1742, allocations: 0 / 366.1 MB, free: 5.488 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.338e-05/0.1742, allocations: 11.94 kB / 366.1 MB, free: 5.477 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.259e-06/0.1743, allocations: 4 kB / 366.1 MB, free: 5.473 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.1743, allocations: 0 / 366.1 MB, free: 5.473 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003891/0.1747, allocations: 281.5 kB / 366.4 MB, free: 5.18 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.68e-05/0.1747, allocations: 92.86 kB / 366.5 MB, free: 5.07 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.592e-05/0.1748, allocations: 7.938 kB / 366.5 MB, free: 5.062 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001268/0.1749, allocations: 7.984 kB / 366.5 MB, free: 5.055 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.968e-05/0.175, allocations: 15.98 kB / 366.5 MB, free: 5.039 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.486e-05/0.175, allocations: 15.98 kB / 366.5 MB, free: 5.023 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.375e-05/0.1751, allocations: 94.52 kB / 366.6 MB, free: 4.934 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1751, allocations: 4 kB / 366.6 MB, free: 4.93 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000441/0.1756, allocations: 51.78 kB / 366.7 MB, free: 4.879 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 18 (transition2.t_start,step.active,transition1.enableFire,step.localActive,initialStep.localActive,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.condition,transition2.enableFire,timer.entryTime,stateGraphRoot.activeSteps) * Number of discrete states: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001444/0.1757, allocations: 107.2 kB / 366.8 MB, free: 4.766 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004796/0.1762, allocations: 183.7 kB / 367 MB, free: 4.586 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.149e-06/0.1762, allocations: 0 / 367 MB, free: 4.586 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001738/0.1764, allocations: 86.89 kB / 367.1 MB, free: 4.504 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003999/0.1768, allocations: 23.73 kB / 367.1 MB, free: 4.484 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008674/0.1777, allocations: 426.3 kB / 367.5 MB, free: 4.031 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003732/0.1781, allocations: 0.7326 MB / 368.2 MB, free: 3.27 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.674e-05/0.1782, allocations: 19.44 kB / 368.3 MB, free: 3.25 MB / 302.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1782, allocations: 4 kB / 368.3 MB, free: 3.246 MB / 302.1 MB Notification: Performance of Templates: time 0.006753/0.185, allocations: 2.246 MB / 370.5 MB, free: 1 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches