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.001452/0.001452, allocations: 99.05 kB / 16.5 MB, free: 6.648 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.001293/0.001293, allocations: 194 kB / 17.42 MB, free: 6.066 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.446/1.446, allocations: 222.9 MB / 241.1 MB, free: 15.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001052/0.001052, allocations: 45.27 kB / 299.9 MB, free: 6.305 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1437/0.1447, allocations: 49.45 MB / 349.4 MB, free: 4.848 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.004102/0.1489, allocations: 1.748 MB / 351.1 MB, free: 3.078 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008669/0.1498, allocations: 315 kB / 351.4 MB, free: 2.77 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001249/0.1499, allocations: 4 kB / 351.4 MB, free: 2.766 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001755/0.1501, allocations: 19.8 kB / 351.5 MB, free: 2.746 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 4.375e-05/0.1502, allocations: 3.938 kB / 351.5 MB, free: 2.742 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004503/0.1506, allocations: 111.9 kB / 351.6 MB, free: 2.633 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003766/0.151, allocations: 255.5 kB / 351.8 MB, free: 2.383 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003528/0.1514, allocations: 171.2 kB / 352 MB, free: 2.207 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001275/0.1515, allocations: 91.62 kB / 352.1 MB, free: 2.117 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001427/0.1517, allocations: 99.53 kB / 352.2 MB, free: 2.02 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.379e-05/0.1517, allocations: 16 kB / 352.2 MB, free: 2.004 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.578e-05/0.1518, allocations: 16 kB / 352.2 MB, free: 1.988 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.19e-05/0.1519, allocations: 51.83 kB / 352.3 MB, free: 1.938 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001092/0.152, allocations: 99.52 kB / 352.4 MB, free: 1.84 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003261/0.1523, allocations: 219.6 kB / 352.6 MB, free: 1.625 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.1523, allocations: 0 / 352.6 MB, free: 1.625 MB / 286.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.1524, allocations: 0 / 352.6 MB, free: 1.625 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.683e-06/0.1524, allocations: 0 / 352.6 MB, free: 1.625 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.0008714/0.1532, allocations: 498.6 kB / 353.1 MB, free: 1.082 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.87e-05/0.1533, allocations: 8.031 kB / 353.1 MB, free: 1.074 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001019/0.1534, allocations: 28.64 kB / 353.1 MB, free: 1.047 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003419/0.1538, allocations: 228 kB / 353.3 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.967e-05/0.1538, allocations: 28.94 kB / 353.3 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.906e-05/0.1539, allocations: 32.36 kB / 353.4 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005732/0.1545, allocations: 270.5 kB / 353.6 MB, free: 456 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.002e-05/0.1545, allocations: 4.188 kB / 353.6 MB, free: 452 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.174e-05/0.1545, allocations: 7.938 kB / 353.7 MB, free: 444 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.563e-05/0.1546, allocations: 8 kB / 353.7 MB, free: 436 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003589/0.1549, allocations: 169.6 kB / 353.8 MB, free: 268 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001409/0.1563, allocations: 0.9749 MB / 354.8 MB, free: 15.22 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003029/0.1567, allocations: 177.3 kB / 355 MB, free: 15.03 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001343/0.1568, allocations: 85.66 kB / 355.1 MB, free: 14.94 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.278e-05/0.1568, allocations: 11.92 kB / 355.1 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002924/0.1571, allocations: 140.9 kB / 355.2 MB, free: 14.77 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.333e-06/0.1571, allocations: 0 / 355.2 MB, free: 14.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004792/0.1576, allocations: 228.8 kB / 355.4 MB, free: 14.54 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.819e-05/0.1577, allocations: 89.03 kB / 355.5 MB, free: 14.44 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001452/0.1578, allocations: 161.2 kB / 355.7 MB, free: 14.27 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.113e-05/0.1579, allocations: 33.7 kB / 355.7 MB, free: 14.23 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.859e-05/0.158, allocations: 132.5 kB / 355.8 MB, free: 14.1 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.742e-05/0.1581, allocations: 71.17 kB / 355.9 MB, free: 14.03 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.947e-05/0.1582, allocations: 81.69 kB / 356 MB, free: 13.95 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001429/0.1583, allocations: 330.8 kB / 356.3 MB, free: 13.61 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001294/0.1585, allocations: 68 kB / 356.4 MB, free: 13.55 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001668/0.1586, allocations: 140.5 kB / 356.5 MB, free: 13.38 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000275/0.1589, allocations: 189 kB / 356.7 MB, free: 13.16 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.047e-06/0.1589, allocations: 4 kB / 356.7 MB, free: 13.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000397/0.1593, allocations: 257.2 kB / 357 MB, free: 12.9 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.939e-05/0.1594, allocations: 4 kB / 357 MB, free: 12.9 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.467e-06/0.1594, allocations: 4 kB / 357 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.901e-05/0.1594, allocations: 4 kB / 357 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001532/0.1596, allocations: 35.92 kB / 357 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.286e-05/0.1596, allocations: 4 kB / 357 MB, free: 12.85 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001001/0.1597, allocations: 35.95 kB / 357 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.777e-05/0.1597, allocations: 12 kB / 357.1 MB, free: 12.8 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.0001653/0.1599, allocations: 165.6 kB / 357.2 MB, free: 12.63 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.9e-05/0.1599, allocations: 15.8 kB / 357.2 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003534/0.1603, allocations: 186.4 kB / 357.4 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.1603, allocations: 4 kB / 357.4 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.1603, allocations: 0 / 357.4 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.137e-06/0.1603, allocations: 0 / 357.4 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007307/0.1611, allocations: 0.5947 MB / 358 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.496e-06/0.1611, allocations: 3.984 kB / 358 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.35e-05/0.1612, allocations: 15.94 kB / 358 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.075e-06/0.1612, allocations: 7.938 kB / 358 MB, free: 11.74 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.354e-05/0.1612, allocations: 7.984 kB / 358 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.808e-06/0.1612, allocations: 4 kB / 358 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.057e-06/0.1612, allocations: 0 / 358 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004082/0.1616, allocations: 296.4 kB / 358.3 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.527e-05/0.1617, allocations: 88.95 kB / 358.4 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.372e-05/0.1617, allocations: 11.94 kB / 358.4 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.047e-05/0.1618, allocations: 11.98 kB / 358.4 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.508e-05/0.1619, allocations: 23.92 kB / 358.5 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.691e-05/0.162, allocations: 7.984 kB / 358.5 MB, free: 11.26 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.394e-05/0.162, allocations: 99.27 kB / 358.6 MB, free: 11.16 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.162, allocations: 0 / 358.6 MB, free: 11.16 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003223/0.1624, allocations: 51.84 kB / 358.6 MB, free: 11.11 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.0001785/0.1625, allocations: 115.1 kB / 358.7 MB, free: 10.99 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003321/0.1629, allocations: 187.7 kB / 358.9 MB, free: 10.81 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.1629, allocations: 0.5625 kB / 358.9 MB, free: 10.81 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001365/0.163, allocations: 87.91 kB / 359 MB, free: 10.72 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003015/0.1634, allocations: 16 kB / 359 MB, free: 10.71 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006764/0.164, allocations: 426.2 kB / 359.4 MB, free: 10.27 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003466/0.1644, allocations: 0.7404 MB / 360.2 MB, free: 9.5 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.542e-05/0.1645, allocations: 17.95 kB / 360.2 MB, free: 9.48 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.508e-05/0.1646, allocations: 27.42 kB / 360.2 MB, free: 9.453 MB / 302.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1646, allocations: 4 kB / 360.2 MB, free: 9.449 MB / 302.1 MB Notification: Performance of Templates: time 0.004938/0.1695, allocations: 1.753 MB / 362 MB, free: 7.707 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