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.001384/0.001384, allocations: 104.1 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.001796/0.001796, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.622/1.622, allocations: 227.4 MB / 246.8 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001802/0.001802, allocations: 59.91 kB / 306.9 MB, free: 0.6211 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1538/0.1556, allocations: 50.54 MB / 357.5 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003928/0.1596, allocations: 1.699 MB / 359.2 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.000774/0.1604, allocations: 303.1 kB / 359.4 MB, free: 12.08 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000163/0.1606, allocations: 4 kB / 359.5 MB, free: 12.08 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001604/0.1608, allocations: 27.67 kB / 359.5 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.174e-05/0.1609, allocations: 11.81 kB / 359.5 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004368/0.1613, allocations: 123.8 kB / 359.6 MB, free: 11.92 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003553/0.1617, allocations: 267.6 kB / 359.9 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003398/0.162, allocations: 181.5 kB / 360.1 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001197/0.1621, allocations: 91.66 kB / 360.1 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001445/0.1623, allocations: 103.5 kB / 360.2 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.382e-05/0.1623, allocations: 24 kB / 360.3 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.817e-05/0.1624, allocations: 28 kB / 360.3 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.774e-05/0.1625, allocations: 59.83 kB / 360.4 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001153/0.1626, allocations: 103.5 kB / 360.5 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002986/0.1629, allocations: 235.2 kB / 360.7 MB, free: 10.84 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.259e-06/0.163, allocations: 3.938 kB / 360.7 MB, free: 10.84 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.32e-07/0.163, allocations: 0 / 360.7 MB, free: 10.84 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.026e-05/0.163, allocations: 0 / 360.7 MB, free: 10.84 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.0006922/0.1637, allocations: 491 kB / 361.2 MB, free: 10.3 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.312e-05/0.1637, allocations: 12.03 kB / 361.2 MB, free: 10.29 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000235/0.164, allocations: 36.64 kB / 361.2 MB, free: 10.26 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002604/0.1642, allocations: 228.1 kB / 361.4 MB, free: 9.996 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.958e-05/0.1643, allocations: 24.94 kB / 361.5 MB, free: 9.973 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.823e-05/0.1643, allocations: 24.38 kB / 361.5 MB, free: 9.949 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004369/0.1648, allocations: 266.5 kB / 361.7 MB, free: 9.668 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.423e-05/0.1648, allocations: 4.188 kB / 361.7 MB, free: 9.664 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.046e-05/0.1648, allocations: 19.92 kB / 361.8 MB, free: 9.645 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.322e-05/0.1649, allocations: 11.94 kB / 361.8 MB, free: 9.633 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003016/0.1652, allocations: 161.6 kB / 361.9 MB, free: 9.473 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001233/0.1664, allocations: 0.9594 MB / 362.9 MB, free: 8.445 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002887/0.1667, allocations: 176.4 kB / 363.1 MB, free: 8.258 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000119/0.1668, allocations: 81.67 kB / 363.1 MB, free: 8.172 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.45e-05/0.1669, allocations: 7.984 kB / 363.2 MB, free: 8.164 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002767/0.1672, allocations: 141 kB / 363.3 MB, free: 8.008 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.803e-06/0.1672, allocations: 0 / 363.3 MB, free: 8.008 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004532/0.1676, allocations: 228.2 kB / 363.5 MB, free: 7.781 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.077e-05/0.1677, allocations: 81.11 kB / 363.6 MB, free: 7.684 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000124/0.1678, allocations: 149.6 kB / 363.7 MB, free: 7.527 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.433e-05/0.1679, allocations: 37.69 kB / 363.8 MB, free: 7.484 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.521e-05/0.168, allocations: 144.5 kB / 363.9 MB, free: 7.34 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.472e-05/0.168, allocations: 59.2 kB / 364 MB, free: 7.281 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.242e-05/0.1681, allocations: 81.8 kB / 364.1 MB, free: 7.195 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001174/0.1682, allocations: 330.8 kB / 364.4 MB, free: 6.863 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001194/0.1684, allocations: 63.75 kB / 364.4 MB, free: 6.801 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001495/0.1685, allocations: 140.5 kB / 364.6 MB, free: 6.633 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002524/0.1688, allocations: 196.4 kB / 364.8 MB, free: 6.41 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.1688, allocations: 4 kB / 364.8 MB, free: 6.406 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004018/0.1692, allocations: 249.2 kB / 365 MB, free: 6.156 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.279e-05/0.1692, allocations: 4 kB / 365 MB, free: 6.152 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.297e-06/0.1692, allocations: 4 kB / 365 MB, free: 6.148 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.914e-05/0.1693, allocations: 8.219 kB / 365 MB, free: 6.141 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001423/0.1694, allocations: 43.86 kB / 365.1 MB, free: 6.098 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.064e-05/0.1694, allocations: 4 kB / 365.1 MB, free: 6.094 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001197/0.1696, allocations: 27.73 kB / 365.1 MB, free: 6.066 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.291e-05/0.1696, allocations: 16 kB / 365.1 MB, free: 6.051 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.0001635/0.1698, allocations: 161.6 kB / 365.3 MB, free: 5.883 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.928e-05/0.1698, allocations: 15.81 kB / 365.3 MB, free: 5.867 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.541e-05/0.1699, allocations: 16.84 kB / 365.3 MB, free: 5.848 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.1699, allocations: 8 kB / 365.3 MB, free: 5.84 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.682e-06/0.1699, allocations: 0 / 365.3 MB, free: 5.84 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.212e-06/0.1699, allocations: 0 / 365.3 MB, free: 5.84 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006952/0.1706, allocations: 0.5752 MB / 365.9 MB, free: 5.203 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.287e-06/0.1706, allocations: 0 / 365.9 MB, free: 5.203 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.939e-05/0.1707, allocations: 15.94 kB / 365.9 MB, free: 5.188 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.769e-06/0.1707, allocations: 7.938 kB / 365.9 MB, free: 5.18 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.631e-05/0.1707, allocations: 7.938 kB / 365.9 MB, free: 5.172 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.568e-06/0.1707, allocations: 7.984 kB / 365.9 MB, free: 5.164 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.1707, allocations: 4 kB / 365.9 MB, free: 5.16 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002979/0.171, allocations: 269.5 kB / 366.2 MB, free: 4.879 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.579e-05/0.1711, allocations: 89 kB / 366.3 MB, free: 4.773 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.304e-05/0.1711, allocations: 15.92 kB / 366.3 MB, free: 4.758 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.042e-05/0.1712, allocations: 0 / 366.3 MB, free: 4.758 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.862e-05/0.1714, allocations: 31.91 kB / 366.3 MB, free: 4.727 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.178e-05/0.1714, allocations: 4 kB / 366.3 MB, free: 4.723 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.862e-05/0.1714, allocations: 103.1 kB / 366.4 MB, free: 4.625 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.7e-07/0.1715, allocations: 0 / 366.4 MB, free: 4.625 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003275/0.1718, allocations: 51.75 kB / 366.5 MB, free: 4.574 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,transition1.enableFire,step.active,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.0001492/0.1719, allocations: 103.2 kB / 366.6 MB, free: 4.465 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004111/0.1724, allocations: 200.3 kB / 366.8 MB, free: 4.27 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.1724, allocations: 0 / 366.8 MB, free: 4.27 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001391/0.1725, allocations: 82.91 kB / 366.9 MB, free: 4.191 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003023/0.1728, allocations: 26.89 kB / 366.9 MB, free: 4.168 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000716/0.1735, allocations: 332.8 kB / 367.2 MB, free: 3.812 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003336/0.1739, allocations: 0.7365 MB / 368 MB, free: 3.043 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.389e-05/0.174, allocations: 25.94 kB / 368 MB, free: 3.02 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.314e-05/0.174, allocations: 19.44 kB / 368 MB, free: 3 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1741, allocations: 3.938 kB / 368 MB, free: 2.996 MB / 302.1 MB Notification: Performance of Templates: time 0.005003/0.1791, allocations: 1.669 MB / 369.7 MB, free: 1.336 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches