Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.00259/0.002591, allocations: 187.3 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.989/3.989, allocations: 205.4 MB / 222.5 MB, free: 13.76 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.00174/0.00174, allocations: 90.88 kB / 270.9 MB, free: 13.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007847/0.000785, allocations: 12 kB / 327 MB, free: 15.09 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1459/0.1467, allocations: 47.57 MB / 374.5 MB, free: 15.44 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.00339/0.1502, allocations: 1.185 MB / 375.7 MB, free: 14.25 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00124/0.1515, allocations: 271.2 kB / 376 MB, free: 13.98 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001892/0.1518, allocations: 4 kB / 376 MB, free: 13.98 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001814/0.152, allocations: 19.81 kB / 376 MB, free: 13.96 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 9.663e-05/0.1521, allocations: 15.95 kB / 376 MB, free: 13.94 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007081/0.1528, allocations: 87.78 kB / 376.1 MB, free: 13.86 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005071/0.1534, allocations: 151.7 kB / 376.3 MB, free: 13.71 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004968/0.1539, allocations: 142.2 kB / 376.4 MB, free: 13.56 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001903/0.1541, allocations: 59.78 kB / 376.4 MB, free: 13.5 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002224/0.1544, allocations: 71.67 kB / 376.5 MB, free: 13.43 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 6.832e-05/0.1545, allocations: 12 kB / 376.5 MB, free: 13.42 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000122/0.1546, allocations: 15.98 kB / 376.5 MB, free: 13.41 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001054/0.1547, allocations: 43.83 kB / 376.6 MB, free: 13.36 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001108/0.1549, allocations: 53.64 kB / 376.6 MB, free: 13.3 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000444/0.1553, allocations: 147.7 kB / 376.8 MB, free: 13.16 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.224e-06/0.1554, allocations: 3.938 kB / 376.8 MB, free: 13.16 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.695e-06/0.1554, allocations: 3.938 kB / 376.8 MB, free: 13.15 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.765e-06/0.1554, allocations: 4 kB / 376.8 MB, free: 13.15 MB / 282.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.001256/0.1567, allocations: 442.8 kB / 377.2 MB, free: 12.67 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.03e-05/0.1568, allocations: 8.031 kB / 377.2 MB, free: 12.66 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001326/0.1569, allocations: 27.72 kB / 377.3 MB, free: 12.63 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004993/0.1574, allocations: 214.8 kB / 377.5 MB, free: 12.38 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.765e-05/0.1575, allocations: 24.55 kB / 377.5 MB, free: 12.36 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.457e-05/0.1576, allocations: 24 kB / 377.5 MB, free: 12.34 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001002/0.1587, allocations: 247.3 kB / 377.8 MB, free: 12.08 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.346e-05/0.1587, allocations: 0 / 377.8 MB, free: 12.08 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.688e-05/0.1588, allocations: 12 kB / 377.8 MB, free: 12.07 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.583e-05/0.1588, allocations: 4 kB / 377.8 MB, free: 12.06 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007944/0.1597, allocations: 149.7 kB / 377.9 MB, free: 11.92 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002344/0.162, allocations: 0.7053 MB / 378.6 MB, free: 11.16 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007157/0.1628, allocations: 179.3 kB / 378.8 MB, free: 10.97 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.759e-05/0.1629, allocations: 4.188 kB / 378.8 MB, free: 10.97 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000495/0.1634, allocations: 115.4 kB / 378.9 MB, free: 10.84 MB / 282.7 MB Notification: Performance of pre-optimization done (n=24): time 5.23e-06/0.1634, allocations: 3.938 kB / 378.9 MB, free: 10.84 MB / 282.7 MB Notification: Performance of matching and sorting (n=24): time 0.00106/0.1645, allocations: 214 kB / 379.1 MB, free: 10.62 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.359e-05/0.1647, allocations: 55.41 kB / 379.2 MB, free: 10.56 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003255/0.165, allocations: 157.8 kB / 379.3 MB, free: 10.39 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.24e-05/0.1651, allocations: 33.7 kB / 379.4 MB, free: 10.35 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002303/0.1654, allocations: 199 kB / 379.6 MB, free: 10.16 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001467/0.1655, allocations: 67.19 kB / 379.6 MB, free: 10.09 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.621e-05/0.1656, allocations: 4 kB / 379.6 MB, free: 10.09 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002305/0.1658, allocations: 326.8 kB / 380 MB, free: 9.758 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003295/0.1662, allocations: 64.62 kB / 380 MB, free: 9.691 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000403/0.1666, allocations: 128 kB / 380.1 MB, free: 9.543 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003631/0.167, allocations: 75.97 kB / 380.2 MB, free: 9.469 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.452e-06/0.167, allocations: 0 / 380.2 MB, free: 9.469 MB / 282.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0009538/0.168, allocations: 233.2 kB / 380.4 MB, free: 9.234 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.306e-05/0.1681, allocations: 4 kB / 380.5 MB, free: 9.23 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.699e-05/0.1681, allocations: 4 kB / 380.5 MB, free: 9.227 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.225e-05/0.1682, allocations: 4 kB / 380.5 MB, free: 9.223 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003064/0.1685, allocations: 28.14 kB / 380.5 MB, free: 9.195 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.535e-05/0.1686, allocations: 8 kB / 380.5 MB, free: 9.188 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002865/0.1689, allocations: 31.83 kB / 380.5 MB, free: 9.156 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.099e-05/0.1689, allocations: 15.95 kB / 380.5 MB, free: 9.141 MB / 282.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,initialStep.active,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,step.active,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,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 () * Number of clocked 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 0.0003289/0.1693, allocations: 157.7 kB / 380.7 MB, free: 8.977 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.229e-05/0.1694, allocations: 15.81 kB / 380.7 MB, free: 8.961 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00086/0.1703, allocations: 195.9 kB / 380.9 MB, free: 8.766 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.411e-05/0.1703, allocations: 8 kB / 380.9 MB, free: 8.758 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.123e-06/0.1703, allocations: 0 / 380.9 MB, free: 8.758 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.441e-05/0.1704, allocations: 3.984 kB / 380.9 MB, free: 8.754 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00184/0.1722, allocations: 0.5765 MB / 381.5 MB, free: 8.121 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.855e-06/0.1723, allocations: 0 / 381.5 MB, free: 8.121 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002236/0.1725, allocations: 15.94 kB / 381.5 MB, free: 8.105 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.558e-05/0.1726, allocations: 4 kB / 381.5 MB, free: 8.102 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.055e-05/0.1726, allocations: 11.98 kB / 381.5 MB, free: 8.09 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.338e-05/0.1727, allocations: 11.88 kB / 381.5 MB, free: 8.078 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.1727, allocations: 0 / 381.5 MB, free: 8.078 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008037/0.1735, allocations: 267.3 kB / 381.8 MB, free: 7.801 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001185/0.1737, allocations: 100.9 kB / 381.9 MB, free: 7.684 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.564e-05/0.1737, allocations: 0 / 381.9 MB, free: 7.684 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002493/0.174, allocations: 8 kB / 381.9 MB, free: 7.676 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001547/0.1742, allocations: 35.91 kB / 381.9 MB, free: 7.641 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.908e-05/0.1743, allocations: 4 kB / 381.9 MB, free: 7.637 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001425/0.1744, allocations: 99.27 kB / 382 MB, free: 7.539 MB / 282.7 MB Notification: Performance of sort global known variables: time 6.61e-07/0.1744, allocations: 0 / 382 MB, free: 7.539 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0008045/0.1753, allocations: 47.84 kB / 382.1 MB, free: 7.492 MB / 282.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.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.active,step.newActive,step.oldActive,transition2.fire,transition2.t_start,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * 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.0003162/0.1756, allocations: 123 kB / 382.2 MB, free: 7.359 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0008443/0.1765, allocations: 176.1 kB / 382.4 MB, free: 7.188 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.981e-06/0.1765, allocations: 0 / 382.4 MB, free: 7.188 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003605/0.1769, allocations: 83.91 kB / 382.5 MB, free: 7.105 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004492/0.1774, allocations: 16 kB / 382.5 MB, free: 7.09 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001356/0.1788, allocations: 393.5 kB / 382.9 MB, free: 6.676 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005746/0.1794, allocations: 0.7406 MB / 383.6 MB, free: 5.91 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000182/0.1796, allocations: 27.42 kB / 383.6 MB, free: 5.887 MB / 282.7 MB Notification: Performance of SimCode: time 1.403e-06/0.1796, allocations: 0 / 383.6 MB, free: 5.887 MB / 282.7 MB Notification: Performance of Templates: time 0.01039/0.19, allocations: 2.258 MB / 385.9 MB, free: 3.629 MB / 282.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins1/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_cpp_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches