Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001445/0.001445, allocations: 172.8 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.58/1.58, allocations: 205.2 MB / 219.8 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007939/0.000794, allocations: 86.66 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.955e-05/2.961e-05, allocations: 0 / 322.4 MB, free: 17.38 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1301/0.1301, allocations: 47.57 MB / 370 MB, free: 1.738 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4339/0.5641, allocations: 75.07 MB / 445.1 MB, free: 2.16 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000214/0.5643, allocations: 65.59 kB / 445.1 MB, free: 2.129 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008041/0.5724, allocations: 2.833 MB / 448 MB, free: 15.66 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.777e-06/0.5724, allocations: 4 kB / 448 MB, free: 15.66 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.241e-05/0.5725, allocations: 7.938 kB / 448 MB, free: 15.65 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0004928/0.573, allocations: 434.8 kB / 448.4 MB, free: 15.2 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.939e-05/0.573, allocations: 11.97 kB / 448.4 MB, free: 15.19 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.773e-05/0.5731, allocations: 23.8 kB / 448.4 MB, free: 15.16 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002565/0.5733, allocations: 221.1 kB / 448.7 MB, free: 14.93 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.254e-05/0.5734, allocations: 19.56 kB / 448.7 MB, free: 14.91 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.65e-05/0.5734, allocations: 38.55 kB / 448.7 MB, free: 14.88 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003761/0.5738, allocations: 235.3 kB / 448.9 MB, free: 14.7 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/0.5738, allocations: 0 / 448.9 MB, free: 14.7 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.225e-05/0.5739, allocations: 10.5 kB / 449 MB, free: 14.7 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.955e-06/0.5739, allocations: 4 kB / 449 MB, free: 14.7 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000262/0.5741, allocations: 150 kB / 449.1 MB, free: 14.6 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009221/0.5751, allocations: 0.7012 MB / 449.8 MB, free: 13.96 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002548/0.5753, allocations: 164.7 kB / 450 MB, free: 13.84 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001083/0.5755, allocations: 78.55 kB / 450 MB, free: 13.79 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.36e-05/0.5755, allocations: 8.125 kB / 450.1 MB, free: 13.79 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001837/0.5757, allocations: 114.1 kB / 450.2 MB, free: 13.68 MB / 330.7 MB Notification: Performance of pre-optimization done (n=24): time 1.583e-06/0.5757, allocations: 0 / 450.2 MB, free: 13.68 MB / 330.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003077/0.576, allocations: 166.8 kB / 450.3 MB, free: 13.54 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.381e-05/0.5761, allocations: 58.47 kB / 450.4 MB, free: 13.48 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001066/0.5762, allocations: 134.1 kB / 450.5 MB, free: 13.35 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.935e-05/0.5762, allocations: 39.95 kB / 450.6 MB, free: 13.31 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.182e-05/0.5763, allocations: 134.6 kB / 450.7 MB, free: 13.19 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.725e-05/0.5764, allocations: 56.19 kB / 450.7 MB, free: 13.14 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.005e-05/0.5764, allocations: 6.125 kB / 450.7 MB, free: 13.14 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001068/0.5765, allocations: 329.5 kB / 451.1 MB, free: 12.82 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001097/0.5766, allocations: 66.59 kB / 451.1 MB, free: 12.77 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001329/0.5768, allocations: 120.7 kB / 451.3 MB, free: 12.65 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001075/0.5769, allocations: 67.83 kB / 451.3 MB, free: 12.6 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.5769, allocations: 0 / 451.3 MB, free: 12.6 MB / 330.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003289/0.5772, allocations: 236.2 kB / 451.5 MB, free: 12.41 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.5772, allocations: 8 kB / 451.6 MB, free: 12.4 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.5772, allocations: 0 / 451.6 MB, free: 12.4 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.678e-05/0.5773, allocations: 7.953 kB / 451.6 MB, free: 12.39 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001425/0.5774, allocations: 35.58 kB / 451.6 MB, free: 12.36 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.327e-06/0.5774, allocations: 4 kB / 451.6 MB, free: 12.36 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.109e-05/0.5775, allocations: 19.86 kB / 451.6 MB, free: 12.34 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.672e-05/0.5776, allocations: 11.44 kB / 451.6 MB, free: 12.34 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,$whenCondition2,$whenCondition1,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,initialStep.active,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,step.active,transition2.enableFire,transition2.fire,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.863e-05/0.5777, allocations: 134.3 kB / 451.8 MB, free: 12.21 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.954e-05/0.5777, allocations: 11.81 kB / 451.8 MB, free: 12.2 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003064/0.578, allocations: 190.5 kB / 452 MB, free: 12.05 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.578, allocations: 11.95 kB / 452 MB, free: 12.04 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.578, allocations: 0 / 452 MB, free: 12.04 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.668e-06/0.578, allocations: 0 / 452 MB, free: 12.04 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006365/0.5787, allocations: 0.5585 MB / 452.5 MB, free: 11.5 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.5787, allocations: 3.953 kB / 452.5 MB, free: 11.5 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.668e-05/0.5788, allocations: 15.94 kB / 452.6 MB, free: 11.48 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.865e-06/0.5788, allocations: 4 kB / 452.6 MB, free: 11.48 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.653e-05/0.5788, allocations: 11.8 kB / 452.6 MB, free: 11.47 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.706e-06/0.5788, allocations: 7.938 kB / 452.6 MB, free: 11.46 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.5788, allocations: 0 / 452.6 MB, free: 11.46 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002785/0.5791, allocations: 269.6 kB / 452.8 MB, free: 11.22 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.932e-05/0.5792, allocations: 104.7 kB / 452.9 MB, free: 11.1 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.144e-05/0.5792, allocations: 0 / 452.9 MB, free: 11.1 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.537e-05/0.5793, allocations: 15.75 kB / 453 MB, free: 11.09 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.041e-05/0.5794, allocations: 23.77 kB / 453 MB, free: 11.07 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.479e-05/0.5794, allocations: 8 kB / 453 MB, free: 11.06 MB / 330.7 MB Notification: Performance of sorting global known variables: time 5.6e-05/0.5795, allocations: 98.97 kB / 453.1 MB, free: 10.97 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5795, allocations: 0 / 453.1 MB, free: 10.97 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002583/0.5797, allocations: 47.55 kB / 453.1 MB, free: 10.93 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 19 (transition2.enableFire,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.newActive,initialStep.oldActive,initialStep.active,transition1.fire,transition1.t_start,step.newActive,step.oldActive,step.active,transition2.fire,transition2.t_start,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001401/0.5799, allocations: 110.9 kB / 453.2 MB, free: 10.82 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000268/0.5802, allocations: 178.4 kB / 453.4 MB, free: 10.69 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.5802, allocations: 0 / 453.4 MB, free: 10.69 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001158/0.5803, allocations: 83.17 kB / 453.5 MB, free: 10.62 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001825/0.5805, allocations: 17.31 kB / 453.5 MB, free: 10.62 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004252/0.5809, allocations: 234 kB / 453.7 MB, free: 10.4 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003324/0.5813, allocations: 0.7404 MB / 454.5 MB, free: 9.637 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 8.771e-05/0.5814, allocations: 22.06 kB / 454.5 MB, free: 9.613 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.344e-05/0.5814, allocations: 23.38 kB / 454.5 MB, free: 9.594 MB / 330.7 MB Notification: Performance of SimCode: time 2.71e-07/0.5814, allocations: 0 / 454.5 MB, free: 9.594 MB / 330.7 MB Notification: Performance of Templates: time 0.004808/0.5862, allocations: 1.661 MB / 456.2 MB, free: 7.949 MB / 330.7 MB make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches