Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.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_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001313/0.001313, allocations: 104.7 kB / 16.62 MB, free: 6.809 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.001572/0.001572, allocations: 189.9 kB / 17.55 MB, free: 5.953 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.447/1.447, allocations: 222.9 MB / 241.2 MB, free: 15.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001653/0.001654, allocations: 48 kB / 300.1 MB, free: 6.203 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1599/0.1616, allocations: 49.44 MB / 349.6 MB, free: 4.762 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.004821/0.1665, allocations: 1.767 MB / 351.3 MB, free: 2.977 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001271/0.1678, allocations: 299.1 kB / 351.6 MB, free: 2.684 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002353/0.1681, allocations: 7.938 kB / 351.6 MB, free: 2.676 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002285/0.1683, allocations: 15.86 kB / 351.6 MB, free: 2.66 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.76e-05/0.1685, allocations: 3.938 kB / 351.6 MB, free: 2.656 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006864/0.1692, allocations: 115.8 kB / 351.8 MB, free: 2.543 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004803/0.1697, allocations: 267.5 kB / 352 MB, free: 2.281 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004942/0.1702, allocations: 191 kB / 352.2 MB, free: 2.09 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001319/0.1703, allocations: 87.72 kB / 352.3 MB, free: 2.004 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001798/0.1705, allocations: 103.5 kB / 352.4 MB, free: 1.902 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.705e-05/0.1706, allocations: 24 kB / 352.4 MB, free: 1.879 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001038/0.1707, allocations: 32 kB / 352.4 MB, free: 1.848 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.09e-05/0.1708, allocations: 63.81 kB / 352.5 MB, free: 1.785 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001277/0.1709, allocations: 103.5 kB / 352.6 MB, free: 1.684 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003374/0.1712, allocations: 239.5 kB / 352.8 MB, free: 1.449 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.1713, allocations: 3.938 kB / 352.8 MB, free: 1.445 MB / 286.1 MB Notification: Performance of FrontEnd: time 4.298e-06/0.1713, allocations: 0 / 352.8 MB, free: 1.445 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.304e-06/0.1713, allocations: 3.938 kB / 352.8 MB, free: 1.441 MB / 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.0007622/0.1721, allocations: 0.497 MB / 353.3 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.927e-05/0.1721, allocations: 15.89 kB / 353.4 MB, free: 0.875 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.793e-05/0.1722, allocations: 24.66 kB / 353.4 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002667/0.1725, allocations: 232 kB / 353.6 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.64e-05/0.1725, allocations: 20.94 kB / 353.6 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.98e-05/0.1726, allocations: 28.38 kB / 353.7 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004423/0.173, allocations: 278.5 kB / 353.9 MB, free: 256 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.23e-05/0.173, allocations: 192 / 353.9 MB, free: 256 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.947e-05/0.1731, allocations: 11.94 kB / 353.9 MB, free: 244 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.397e-06/0.1731, allocations: 8 kB / 353.9 MB, free: 236 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002901/0.1734, allocations: 161.6 kB / 354.1 MB, free: 76 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00116/0.1745, allocations: 0.9749 MB / 355.1 MB, free: 15.03 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002783/0.1748, allocations: 169.5 kB / 355.2 MB, free: 14.85 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001202/0.175, allocations: 85.62 kB / 355.3 MB, free: 14.76 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.374e-05/0.175, allocations: 4 kB / 355.3 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002497/0.1752, allocations: 144.9 kB / 355.5 MB, free: 14.59 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 2.925e-06/0.1753, allocations: 0 / 355.5 MB, free: 14.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.000439/0.1757, allocations: 232.8 kB / 355.7 MB, free: 14.36 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.41e-05/0.1758, allocations: 85.23 kB / 355.8 MB, free: 14.26 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001288/0.1759, allocations: 157.6 kB / 355.9 MB, free: 14.1 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.674e-05/0.176, allocations: 37.7 kB / 356 MB, free: 14.05 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.915e-05/0.1761, allocations: 136.5 kB / 356.1 MB, free: 13.92 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.321e-05/0.1761, allocations: 63.19 kB / 356.2 MB, free: 13.86 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001007/0.1762, allocations: 85.67 kB / 356.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001141/0.1763, allocations: 330.8 kB / 356.6 MB, free: 13.43 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001128/0.1765, allocations: 63.97 kB / 356.6 MB, free: 13.37 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001583/0.1766, allocations: 144.5 kB / 356.8 MB, free: 13.2 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002418/0.1769, allocations: 189 kB / 357 MB, free: 12.98 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.1769, allocations: 0 / 357 MB, free: 12.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003642/0.1773, allocations: 257.2 kB / 357.2 MB, free: 12.73 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.797e-05/0.1773, allocations: 11.94 kB / 357.2 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.827e-06/0.1773, allocations: 0 / 357.2 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.43e-05/0.1773, allocations: 4 kB / 357.2 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002013/0.1776, allocations: 35.86 kB / 357.3 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.718e-05/0.1776, allocations: 7.984 kB / 357.3 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001372/0.1777, allocations: 27.97 kB / 357.3 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.484e-05/0.1778, allocations: 16 kB / 357.3 MB, free: 12.62 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.0001917/0.178, allocations: 161.7 kB / 357.5 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.396e-05/0.1781, allocations: 15.81 kB / 357.5 MB, free: 12.44 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004649/0.1785, allocations: 194.3 kB / 357.7 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.712e-06/0.1785, allocations: 4 kB / 357.7 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.297e-06/0.1786, allocations: 0 / 357.7 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.008e-05/0.1786, allocations: 3.984 kB / 357.7 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009362/0.1795, allocations: 0.5986 MB / 358.3 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.816e-06/0.1795, allocations: 4 kB / 358.3 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.862e-05/0.1796, allocations: 12 kB / 358.3 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.538e-06/0.1797, allocations: 7.922 kB / 358.3 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.961e-05/0.1797, allocations: 4 kB / 358.3 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.469e-06/0.1797, allocations: 4 kB / 358.3 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.1797, allocations: 0 / 358.3 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004031/0.1801, allocations: 292.4 kB / 358.6 MB, free: 11.24 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.735e-05/0.1802, allocations: 88.95 kB / 358.7 MB, free: 11.13 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.524e-05/0.1802, allocations: 11.94 kB / 358.7 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001264/0.1804, allocations: 11.92 kB / 358.7 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.763e-05/0.1805, allocations: 23.97 kB / 358.7 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.363e-05/0.1805, allocations: 4 kB / 358.7 MB, free: 11.08 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.706e-05/0.1806, allocations: 103.3 kB / 358.8 MB, free: 10.98 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1806, allocations: 0 / 358.8 MB, free: 10.98 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003088/0.1809, allocations: 51.84 kB / 358.9 MB, free: 10.93 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.active,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$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 (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.0002353/0.1811, allocations: 115.1 kB / 359 MB, free: 10.81 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004126/0.1815, allocations: 195.7 kB / 359.2 MB, free: 10.62 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.237e-06/0.1816, allocations: 0.5625 kB / 359.2 MB, free: 10.62 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001453/0.1817, allocations: 83.91 kB / 359.3 MB, free: 10.54 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003047/0.182, allocations: 31.95 kB / 359.3 MB, free: 10.5 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006786/0.1827, allocations: 416.7 kB / 359.7 MB, free: 10.07 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003465/0.1831, allocations: 0.7401 MB / 360.5 MB, free: 9.305 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.801e-05/0.1832, allocations: 29.88 kB / 360.5 MB, free: 9.273 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.177e-05/0.1832, allocations: 19.44 kB / 360.5 MB, free: 9.254 MB / 302.1 MB Notification: Performance of SimCode: time 6.11e-07/0.1832, allocations: 0 / 360.5 MB, free: 9.254 MB / 302.1 MB Notification: Performance of Templates: time 0.005228/0.1885, allocations: 1.853 MB / 362.4 MB, free: 7.414 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches