Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.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_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001622/0.001622, allocations: 103.2 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001502/0.001503, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.596/1.596, allocations: 227.4 MB / 246.8 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002508/0.002508, allocations: 59.77 kB / 307 MB, free: 0.5898 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1517/0.1543, allocations: 50.54 MB / 357.5 MB, free: 14.05 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003747/0.1581, allocations: 1.668 MB / 359.2 MB, free: 12.37 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008586/0.159, allocations: 299.1 kB / 359.5 MB, free: 12.08 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001238/0.1591, allocations: 0 / 359.5 MB, free: 12.08 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001697/0.1593, allocations: 27.67 kB / 359.5 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.403e-05/0.1593, allocations: 23.8 kB / 359.5 MB, free: 12.03 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004645/0.1598, allocations: 119.8 kB / 359.6 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003819/0.1602, allocations: 271.5 kB / 359.9 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003807/0.1606, allocations: 182.9 kB / 360.1 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001297/0.1607, allocations: 99.69 kB / 360.2 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002027/0.1609, allocations: 95.55 kB / 360.3 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.102e-05/0.161, allocations: 20 kB / 360.3 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.84e-05/0.1611, allocations: 35.98 kB / 360.3 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.391e-05/0.1612, allocations: 59.83 kB / 360.4 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001328/0.1613, allocations: 103.5 kB / 360.5 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003506/0.1617, allocations: 243.5 kB / 360.7 MB, free: 10.82 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.1617, allocations: 0 / 360.7 MB, free: 10.82 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1617, allocations: 0 / 360.7 MB, free: 10.82 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.492e-06/0.1617, allocations: 0 / 360.7 MB, free: 10.82 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.0008857/0.1626, allocations: 0.4908 MB / 361.2 MB, free: 10.27 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.328e-05/0.1627, allocations: 8.031 kB / 361.2 MB, free: 10.26 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002847/0.163, allocations: 32.64 kB / 361.3 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002887/0.1633, allocations: 228 kB / 361.5 MB, free: 9.969 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.981e-05/0.1633, allocations: 24.94 kB / 361.5 MB, free: 9.945 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.824e-05/0.1634, allocations: 36.38 kB / 361.5 MB, free: 9.91 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005047/0.1639, allocations: 266.5 kB / 361.8 MB, free: 9.629 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.711e-05/0.1639, allocations: 192 / 361.8 MB, free: 9.629 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.566e-05/0.164, allocations: 15.94 kB / 361.8 MB, free: 9.613 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.024e-05/0.164, allocations: 4 kB / 361.8 MB, free: 9.609 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003348/0.1643, allocations: 169.6 kB / 362 MB, free: 9.441 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001297/0.1656, allocations: 0.9633 MB / 363 MB, free: 8.41 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003076/0.1659, allocations: 173.4 kB / 363.1 MB, free: 8.223 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001326/0.1661, allocations: 81.72 kB / 363.2 MB, free: 8.137 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.715e-05/0.1661, allocations: 11.94 kB / 363.2 MB, free: 8.125 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003033/0.1664, allocations: 128.3 kB / 363.3 MB, free: 7.984 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.674e-06/0.1664, allocations: 4 kB / 363.3 MB, free: 7.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004706/0.1669, allocations: 221.2 kB / 363.6 MB, free: 7.758 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.504e-05/0.167, allocations: 93.08 kB / 363.7 MB, free: 7.648 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00014/0.1672, allocations: 160 kB / 363.8 MB, free: 7.484 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.555e-05/0.1672, allocations: 37.7 kB / 363.8 MB, free: 7.441 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001231/0.1673, allocations: 132.5 kB / 364 MB, free: 7.309 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.421e-05/0.1674, allocations: 63.19 kB / 364 MB, free: 7.246 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001274/0.1675, allocations: 81.59 kB / 364.1 MB, free: 7.16 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002041/0.1677, allocations: 330.9 kB / 364.4 MB, free: 6.828 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001283/0.1679, allocations: 67.75 kB / 364.5 MB, free: 6.762 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002032/0.1681, allocations: 140.5 kB / 364.6 MB, free: 6.594 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003904/0.1685, allocations: 193 kB / 364.8 MB, free: 6.375 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.1685, allocations: 7.938 kB / 364.8 MB, free: 6.367 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000445/0.169, allocations: 253.2 kB / 365.1 MB, free: 6.113 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.093e-05/0.169, allocations: 4 kB / 365.1 MB, free: 6.109 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.414e-05/0.169, allocations: 11.97 kB / 365.1 MB, free: 6.098 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.727e-05/0.169, allocations: 4 kB / 365.1 MB, free: 6.094 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001687/0.1692, allocations: 31.86 kB / 365.1 MB, free: 6.062 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.321e-05/0.1692, allocations: 4.281 kB / 365.1 MB, free: 6.059 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001029/0.1694, allocations: 27.78 kB / 365.2 MB, free: 6.031 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.981e-05/0.1694, allocations: 16 kB / 365.2 MB, free: 6.016 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.0001846/0.1696, allocations: 157.7 kB / 365.3 MB, free: 5.852 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.715e-05/0.1696, allocations: 15.81 kB / 365.4 MB, free: 5.836 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.602e-05/0.1697, allocations: 20.84 kB / 365.4 MB, free: 5.812 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.1697, allocations: 0 / 365.4 MB, free: 5.812 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.896e-06/0.1697, allocations: 4 kB / 365.4 MB, free: 5.809 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.284e-06/0.1697, allocations: 3.984 kB / 365.4 MB, free: 5.805 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008305/0.1705, allocations: 0.582 MB / 366 MB, free: 5.164 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.1706, allocations: 0 / 366 MB, free: 5.164 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.654e-05/0.1706, allocations: 19.92 kB / 366 MB, free: 5.145 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.976e-06/0.1707, allocations: 0 / 366 MB, free: 5.145 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.21e-05/0.1707, allocations: 11.94 kB / 366 MB, free: 5.133 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.1707, allocations: 0 / 366 MB, free: 5.133 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.1707, allocations: 4 kB / 366 MB, free: 5.129 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000391/0.1711, allocations: 272.1 kB / 366.3 MB, free: 4.844 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.889e-05/0.1712, allocations: 96.86 kB / 366.4 MB, free: 4.73 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.845e-05/0.1712, allocations: 7.938 kB / 366.4 MB, free: 4.723 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.792e-05/0.1713, allocations: 8 kB / 366.4 MB, free: 4.715 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.937e-05/0.1714, allocations: 19.97 kB / 366.4 MB, free: 4.695 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.292e-05/0.1714, allocations: 11.94 kB / 366.4 MB, free: 4.684 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.951e-05/0.1715, allocations: 103.3 kB / 366.5 MB, free: 4.582 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1716, allocations: 0 / 366.5 MB, free: 4.582 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003076/0.1719, allocations: 51.83 kB / 366.6 MB, free: 4.531 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.localActive,step.active,transition1.enableFire,initialStep.active,$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 (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.0001545/0.172, allocations: 103.2 kB / 366.7 MB, free: 4.422 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003967/0.1724, allocations: 191.9 kB / 366.8 MB, free: 4.234 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.1724, allocations: 0.5625 kB / 366.8 MB, free: 4.234 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001561/0.1726, allocations: 90.89 kB / 366.9 MB, free: 4.148 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003326/0.1729, allocations: 23.98 kB / 367 MB, free: 4.125 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006937/0.1736, allocations: 332.6 kB / 367.3 MB, free: 3.77 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004543/0.1741, allocations: 0.7365 MB / 368 MB, free: 3.004 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.885e-05/0.1742, allocations: 21.94 kB / 368 MB, free: 2.984 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.03e-05/0.1743, allocations: 19.44 kB / 368.1 MB, free: 2.965 MB / 302.1 MB Notification: Performance of SimCode: time 7.01e-07/0.1743, allocations: 0 / 368.1 MB, free: 2.965 MB / 302.1 MB Notification: Performance of Templates: time 0.005728/0.18, allocations: 1.694 MB / 369.8 MB, free: 1.281 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches