Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001853/0.001853, allocations: 108.3 kB / 17.68 MB, free: 5.332 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.002189/0.002189, allocations: 192 kB / 18.62 MB, free: 4.41 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.513/1.513, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001544/0.001544, allocations: 51.77 kB / 302 MB, free: 5.172 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1431/0.1446, allocations: 49.43 MB / 351.5 MB, free: 3.715 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.004214/0.1489, allocations: 1.483 MB / 353 MB, free: 2.219 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001019/0.15, allocations: 275.2 kB / 353.2 MB, free: 1.949 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001576/0.1502, allocations: 7.938 kB / 353.2 MB, free: 1.941 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002545/0.1504, allocations: 19.75 kB / 353.3 MB, free: 1.922 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 7.269e-05/0.1506, allocations: 27.78 kB / 353.3 MB, free: 1.895 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000685/0.1513, allocations: 107.8 kB / 353.4 MB, free: 1.789 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004326/0.1517, allocations: 263.5 kB / 353.6 MB, free: 1.531 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004057/0.1522, allocations: 158.4 kB / 353.8 MB, free: 1.371 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000141/0.1523, allocations: 87.77 kB / 353.9 MB, free: 1.285 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001886/0.1525, allocations: 95.53 kB / 354 MB, free: 1.191 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.744e-05/0.1526, allocations: 20 kB / 354 MB, free: 1.172 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001231/0.1527, allocations: 39.92 kB / 354 MB, free: 1.133 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.124e-05/0.1528, allocations: 51.89 kB / 354.1 MB, free: 1.082 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001291/0.1529, allocations: 91.53 kB / 354.2 MB, free: 0.9922 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000376/0.1533, allocations: 239.1 kB / 354.4 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.887e-06/0.1533, allocations: 0 / 354.4 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.096e-06/0.1533, allocations: 0 / 354.4 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.671e-05/0.1534, allocations: 4 kB / 354.4 MB, free: 0.7539 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0008426/0.1542, allocations: 486.5 kB / 354.9 MB, free: 228 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.1543, allocations: 8.031 kB / 354.9 MB, free: 220 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.83e-05/0.1543, allocations: 20.75 kB / 354.9 MB, free: 200 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004406/0.1548, allocations: 236 kB / 355.1 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.308e-05/0.1548, allocations: 24.94 kB / 355.2 MB, free: 15.9 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.147e-05/0.1549, allocations: 20.38 kB / 355.2 MB, free: 15.88 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004735/0.1554, allocations: 244 kB / 355.4 MB, free: 15.64 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.641e-05/0.1554, allocations: 8.125 kB / 355.4 MB, free: 15.63 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.01e-05/0.1554, allocations: 15.92 kB / 355.5 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.857e-06/0.1554, allocations: 4 kB / 355.5 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003288/0.1558, allocations: 161.6 kB / 355.6 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001074/0.1569, allocations: 0.6895 MB / 356.3 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003393/0.1572, allocations: 178.7 kB / 356.5 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001353/0.1574, allocations: 80.88 kB / 356.6 MB, free: 14.44 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.957e-05/0.1574, allocations: 4 kB / 356.6 MB, free: 14.44 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002317/0.1576, allocations: 119.3 kB / 356.7 MB, free: 14.31 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 2.134e-06/0.1577, allocations: 4 kB / 356.7 MB, free: 14.3 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005046/0.1582, allocations: 228.9 kB / 356.9 MB, free: 14.08 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.038e-05/0.1582, allocations: 51.41 kB / 357 MB, free: 14.02 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001569/0.1584, allocations: 149.8 kB / 357.1 MB, free: 13.86 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.943e-05/0.1584, allocations: 37.7 kB / 357.1 MB, free: 13.82 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001208/0.1586, allocations: 130.1 kB / 357.3 MB, free: 13.69 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001572/0.1587, allocations: 63.19 kB / 357.3 MB, free: 13.62 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001324/0.1589, allocations: 74 kB / 357.4 MB, free: 13.54 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001916/0.1591, allocations: 330.8 kB / 357.7 MB, free: 13.21 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001341/0.1592, allocations: 64.62 kB / 357.8 MB, free: 13.15 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002055/0.1594, allocations: 128.1 kB / 357.9 MB, free: 13 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002991/0.1597, allocations: 183.1 kB / 358.1 MB, free: 12.8 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.1598, allocations: 0 / 358.1 MB, free: 12.8 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003983/0.1602, allocations: 245.2 kB / 358.3 MB, free: 12.55 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.541e-05/0.1602, allocations: 11.98 kB / 358.3 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.1602, allocations: 0 / 358.3 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.522e-05/0.1602, allocations: 4 kB / 358.3 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001487/0.1604, allocations: 27.92 kB / 358.4 MB, free: 12.51 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.249e-05/0.1604, allocations: 4 kB / 358.4 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001185/0.1605, allocations: 23.78 kB / 358.4 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.444e-05/0.1606, allocations: 19.92 kB / 358.4 MB, free: 12.46 MB / 302.1 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,stateGraphRoot.activeSteps,transition2.t_start,$PRE.transition2.t_start,transition2.fire,transition2.enableFire,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,step.active,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,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001438/0.1607, allocations: 150 kB / 358.6 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.501e-05/0.1608, allocations: 23.75 kB / 358.6 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003571/0.1611, allocations: 198.3 kB / 358.8 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-06/0.1611, allocations: 4 kB / 358.8 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.1612, allocations: 0 / 358.8 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/0.1612, allocations: 0 / 358.8 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008453/0.162, allocations: 0.5644 MB / 359.4 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.162, allocations: 0 / 359.4 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.656e-05/0.1621, allocations: 23.92 kB / 359.4 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.122e-06/0.1621, allocations: 0 / 359.4 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.764e-05/0.1622, allocations: 11.94 kB / 359.4 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.1622, allocations: 0 / 359.4 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.319e-06/0.1622, allocations: 7.938 kB / 359.4 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003582/0.1625, allocations: 279.7 kB / 359.7 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.826e-05/0.1626, allocations: 92.86 kB / 359.8 MB, free: 11.01 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.853e-05/0.1627, allocations: 8 kB / 359.8 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.619e-05/0.1628, allocations: 11.98 kB / 359.8 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.933e-05/0.1628, allocations: 23.91 kB / 359.8 MB, free: 10.97 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.83e-05/0.1629, allocations: 12 kB / 359.8 MB, free: 10.96 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.97e-05/0.1629, allocations: 91.27 kB / 359.9 MB, free: 10.87 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.1629, allocations: 0 / 359.9 MB, free: 10.87 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003401/0.1633, allocations: 51.84 kB / 360 MB, free: 10.82 MB / 302.1 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.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.localActive,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 (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.0002384/0.1635, allocations: 103.2 kB / 360.1 MB, free: 10.71 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003776/0.1639, allocations: 188 kB / 360.2 MB, free: 10.52 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.1639, allocations: 4 kB / 360.2 MB, free: 10.52 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001386/0.1641, allocations: 83.84 kB / 360.3 MB, free: 10.44 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003109/0.1644, allocations: 20 kB / 360.3 MB, free: 10.42 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007618/0.1652, allocations: 327.6 kB / 360.7 MB, free: 10.07 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004234/0.1656, allocations: 0.7328 MB / 361.4 MB, free: 9.309 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.591e-05/0.1657, allocations: 17.95 kB / 361.4 MB, free: 9.293 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.532e-05/0.1658, allocations: 31.42 kB / 361.4 MB, free: 9.266 MB / 302.1 MB Notification: Performance of SimCode: time 7.12e-07/0.1658, allocations: 0 / 361.4 MB, free: 9.266 MB / 302.1 MB Notification: Performance of Templates: time 0.00641/0.1722, allocations: 1.879 MB / 363.3 MB, free: 7.398 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches