Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.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 4.0.0+maint.om/package.mo", uses=false) 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) 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_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001032/0.001033, allocations: 114.6 kB / 17.7 MB, free: 5.309 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.001031/0.001031, allocations: 191 kB / 18.63 MB, free: 4.379 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.479/1.479, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002115/0.002115, allocations: 51.25 kB / 302 MB, free: 5.191 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1539/0.1561, allocations: 49.45 MB / 351.5 MB, free: 3.719 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.004243/0.1604, allocations: 1.687 MB / 353.2 MB, free: 2.016 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009424/0.1614, allocations: 287.2 kB / 353.5 MB, free: 1.734 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001703/0.1615, allocations: 3.938 kB / 353.5 MB, free: 1.73 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001869/0.1618, allocations: 23.73 kB / 353.5 MB, free: 1.707 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 7.639e-05/0.1619, allocations: 23.75 kB / 353.5 MB, free: 1.684 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005648/0.1624, allocations: 115.8 kB / 353.6 MB, free: 1.57 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004089/0.1629, allocations: 271.4 kB / 353.9 MB, free: 1.305 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004037/0.1633, allocations: 189.5 kB / 354.1 MB, free: 1.117 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001458/0.1634, allocations: 87.7 kB / 354.2 MB, free: 1.031 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001715/0.1636, allocations: 103.5 kB / 354.3 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.138e-05/0.1637, allocations: 24 kB / 354.3 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.696e-05/0.1638, allocations: 39.98 kB / 354.3 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.174e-05/0.1638, allocations: 55.83 kB / 354.4 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001138/0.164, allocations: 99.53 kB / 354.5 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003329/0.1643, allocations: 255.1 kB / 354.7 MB, free: 476 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.1643, allocations: 3.938 kB / 354.7 MB, free: 472 kB / 286.1 MB Notification: Performance of FrontEnd: time 3.046e-06/0.1643, allocations: 0 / 354.7 MB, free: 472 kB / 286.1 MB Notification: Performance of Transformations before backend: time 1.076e-05/0.1644, allocations: 0 / 354.7 MB, free: 472 kB / 286.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.0008325/0.1652, allocations: 494.6 kB / 355.2 MB, free: 15.92 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.558e-05/0.1652, allocations: 11.89 kB / 355.2 MB, free: 15.91 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.076e-05/0.1653, allocations: 28.66 kB / 355.3 MB, free: 15.88 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003471/0.1657, allocations: 228.1 kB / 355.5 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.474e-05/0.1657, allocations: 24.94 kB / 355.5 MB, free: 15.6 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.565e-05/0.1658, allocations: 32.36 kB / 355.5 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000479/0.1663, allocations: 270.5 kB / 355.8 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.326e-05/0.1663, allocations: 192 / 355.8 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.788e-05/0.1663, allocations: 15.94 kB / 355.8 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.113e-05/0.1663, allocations: 8 kB / 355.8 MB, free: 15.26 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003016/0.1667, allocations: 165.6 kB / 356 MB, free: 15.1 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001348/0.168, allocations: 0.9748 MB / 357 MB, free: 14.06 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002954/0.1683, allocations: 165.5 kB / 357.1 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001206/0.1685, allocations: 89.56 kB / 357.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.039e-05/0.1685, allocations: 8 kB / 357.2 MB, free: 13.78 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002229/0.1687, allocations: 137 kB / 357.3 MB, free: 13.62 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.693e-06/0.1687, allocations: 0 / 357.3 MB, free: 13.62 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005085/0.1692, allocations: 228.8 kB / 357.6 MB, free: 13.4 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.347e-05/0.1693, allocations: 89.09 kB / 357.7 MB, free: 13.29 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001457/0.1695, allocations: 152.2 kB / 357.8 MB, free: 13.14 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.514e-05/0.1695, allocations: 37.7 kB / 357.8 MB, free: 13.09 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001179/0.1696, allocations: 144.5 kB / 358 MB, free: 12.95 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.787e-05/0.1697, allocations: 59.19 kB / 358 MB, free: 12.89 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001149/0.1698, allocations: 77.69 kB / 358.1 MB, free: 12.81 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001507/0.17, allocations: 330.8 kB / 358.4 MB, free: 12.48 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001246/0.1701, allocations: 63.95 kB / 358.5 MB, free: 12.41 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001777/0.1703, allocations: 148.1 kB / 358.6 MB, free: 12.24 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003578/0.1707, allocations: 193 kB / 358.8 MB, free: 12.02 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.1707, allocations: 7.938 kB / 358.8 MB, free: 12.01 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004244/0.1711, allocations: 253.3 kB / 359.1 MB, free: 11.76 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.373e-05/0.1711, allocations: 11.98 kB / 359.1 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.904e-06/0.1712, allocations: 0 / 359.1 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.174e-05/0.1712, allocations: 4 kB / 359.1 MB, free: 11.74 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001545/0.1713, allocations: 31.92 kB / 359.1 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.147e-05/0.1714, allocations: 7.938 kB / 359.1 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001194/0.1715, allocations: 27.75 kB / 359.2 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.199e-05/0.1715, allocations: 11.98 kB / 359.2 MB, free: 11.66 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.localCondition,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.0001691/0.1717, allocations: 173.7 kB / 359.4 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.625e-05/0.1717, allocations: 7.906 kB / 359.4 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003528/0.1721, allocations: 198.3 kB / 359.6 MB, free: 11.28 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.551e-06/0.1721, allocations: 4 kB / 359.6 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.1721, allocations: 0 / 359.6 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.1721, allocations: 0 / 359.6 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007624/0.1729, allocations: 0.5909 MB / 360.2 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.1729, allocations: 4 kB / 360.2 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.462e-05/0.173, allocations: 19.92 kB / 360.2 MB, free: 10.6 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.807e-06/0.173, allocations: 0 / 360.2 MB, free: 10.6 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.092e-05/0.173, allocations: 11.94 kB / 360.2 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.268e-06/0.1731, allocations: 0 / 360.2 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.1731, allocations: 3.938 kB / 360.2 MB, free: 10.58 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003453/0.1734, allocations: 288.4 kB / 360.5 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.877e-05/0.1735, allocations: 96.84 kB / 360.6 MB, free: 10.17 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.583e-05/0.1735, allocations: 15.94 kB / 360.6 MB, free: 10.15 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.584e-05/0.1736, allocations: 12 kB / 360.6 MB, free: 10.14 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.744e-05/0.1737, allocations: 19.97 kB / 360.6 MB, free: 10.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.011e-05/0.1738, allocations: 8 kB / 360.6 MB, free: 10.11 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.508e-05/0.1738, allocations: 95.27 kB / 360.7 MB, free: 10.02 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1738, allocations: 0 / 360.7 MB, free: 10.02 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003355/0.1742, allocations: 55.83 kB / 360.8 MB, free: 9.965 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: 20 (transition2.t_start,step.localActive,transition1.enableFire,step.active,initialStep.active,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.localCondition,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 (26): * Single equations (assignments): 21 * 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.0001779/0.1744, allocations: 111.2 kB / 360.9 MB, free: 9.848 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003797/0.1747, allocations: 192 kB / 361.1 MB, free: 9.66 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.105e-06/0.1748, allocations: 0 / 361.1 MB, free: 9.66 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001497/0.1749, allocations: 87.84 kB / 361.2 MB, free: 9.574 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003183/0.1752, allocations: 19.98 kB / 361.2 MB, free: 9.555 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000706/0.176, allocations: 345.3 kB / 361.5 MB, free: 9.188 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003919/0.1764, allocations: 0.7285 MB / 362.2 MB, free: 8.43 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.322e-05/0.1765, allocations: 29.94 kB / 362.3 MB, free: 8.398 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.924e-05/0.1765, allocations: 19.44 kB / 362.3 MB, free: 8.379 MB / 302.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1765, allocations: 0 / 362.3 MB, free: 8.379 MB / 302.1 MB Notification: Performance of Templates: time 0.005818/0.1824, allocations: 1.875 MB / 364.2 MB, free: 6.512 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches