Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo", uses=false) Using package Modelica_StateGraph2 with version 2.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo) 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_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3") translateModel(Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001502/0.001502, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001272/0.001272, allocations: 194.9 kB / 16.53 MB, free: 6.664 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.578/1.578, allocations: 222.9 MB / 240.2 MB, free: 4.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.2884/0.2884, allocations: 13.53 MB / 303.9 MB, free: 0.6367 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001318/0.001318, allocations: 59.89 kB / 367.8 MB, free: 6.496 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1441/0.1454, allocations: 52.69 MB / 420.5 MB, free: 1.766 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3): time 0.003805/0.1493, allocations: 1.876 MB / 422.3 MB, free: 15.88 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001667/0.151, allocations: 0.8374 MB / 423.2 MB, free: 15.03 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000152/0.1511, allocations: 11.94 kB / 423.2 MB, free: 15.02 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001198/0.1524, allocations: 0.6061 MB / 423.8 MB, free: 14.41 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 8.078e-05/0.1525, allocations: 31.61 kB / 423.8 MB, free: 14.38 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo:12183:5-12189:3:writable] Warning: Usage of non-standard operator (not specified in the Modelica specification): Connections.uniqueRoot. Functionality might be partially supported but is not guaranteed. Notification: Performance of NFTyping.typeClassSections: time 0.0007454/0.1532, allocations: 243.2 kB / 424.1 MB, free: 14.14 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000524/0.1537, allocations: 467 kB / 424.5 MB, free: 13.69 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007614/0.1545, allocations: 0.5411 MB / 425.1 MB, free: 13.14 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001855/0.1547, allocations: 171.3 kB / 425.2 MB, free: 12.97 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002142/0.1549, allocations: 163.2 kB / 425.4 MB, free: 12.81 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.446e-05/0.155, allocations: 36 kB / 425.4 MB, free: 12.78 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001208/0.1551, allocations: 55.98 kB / 425.5 MB, free: 12.72 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000112/0.1552, allocations: 91.75 kB / 425.6 MB, free: 12.63 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001769/0.1554, allocations: 187 kB / 425.8 MB, free: 12.45 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004793/0.1559, allocations: 430.6 kB / 426.2 MB, free: 12.03 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.349e-06/0.1559, allocations: 4 kB / 426.2 MB, free: 12.02 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1559, allocations: 0 / 426.2 MB, free: 12.02 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.436e-06/0.1559, allocations: 3.938 kB / 426.2 MB, free: 12.02 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.0009909/0.1569, allocations: 0.6761 MB / 426.9 MB, free: 11.29 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.654e-05/0.157, allocations: 15.88 kB / 426.9 MB, free: 11.27 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001043/0.1571, allocations: 44.47 kB / 426.9 MB, free: 11.23 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004433/0.1576, allocations: 324.1 kB / 427.2 MB, free: 10.88 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.728e-05/0.1576, allocations: 59.27 kB / 427.3 MB, free: 10.81 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.689e-05/0.1577, allocations: 44.38 kB / 427.3 MB, free: 10.77 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007289/0.1585, allocations: 475.5 kB / 427.8 MB, free: 10.27 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.642e-05/0.1585, allocations: 0 / 427.8 MB, free: 10.27 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.919e-05/0.1585, allocations: 19.98 kB / 427.8 MB, free: 10.25 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.471e-05/0.1585, allocations: 16 kB / 427.8 MB, free: 10.23 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000504/0.1591, allocations: 302.3 kB / 428.1 MB, free: 9.934 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002086/0.1612, allocations: 1.926 MB / 430.1 MB, free: 7.859 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000407/0.1616, allocations: 416.9 kB / 430.5 MB, free: 7.379 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000115/0.1617, allocations: 85.58 kB / 430.5 MB, free: 7.289 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007423/0.1624, allocations: 0.7205 MB / 431.3 MB, free: 6.504 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003172/0.1628, allocations: 170.7 kB / 431.4 MB, free: 6.312 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 1.623e-06/0.1628, allocations: 0 / 431.4 MB, free: 6.312 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004844/0.1633, allocations: 267 kB / 431.7 MB, free: 6.039 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.24e-05/0.1634, allocations: 158.2 kB / 431.9 MB, free: 5.848 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002504/0.1636, allocations: 254.8 kB / 432.1 MB, free: 5.586 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.855e-05/0.1637, allocations: 37.7 kB / 432.1 MB, free: 5.543 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001504/0.1638, allocations: 208.2 kB / 432.3 MB, free: 5.336 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.464e-05/0.1639, allocations: 51.44 kB / 432.4 MB, free: 5.285 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001265/0.164, allocations: 114 kB / 432.5 MB, free: 5.168 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001463/0.1642, allocations: 334.8 kB / 432.8 MB, free: 4.832 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001188/0.1643, allocations: 68.83 kB / 432.9 MB, free: 4.766 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002372/0.1645, allocations: 224.8 kB / 433.1 MB, free: 4.477 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003671/0.1649, allocations: 345.1 kB / 433.5 MB, free: 4.062 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.1649, allocations: 0 / 433.5 MB, free: 4.062 MB / 366.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.000526/0.1655, allocations: 362.5 kB / 433.8 MB, free: 3.695 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.072e-05/0.1655, allocations: 33.7 kB / 433.8 MB, free: 3.656 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.056e-05/0.1655, allocations: 4 kB / 433.8 MB, free: 3.652 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.108e-05/0.1655, allocations: 8 kB / 433.9 MB, free: 3.645 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.808e-05/0.1656, allocations: 23.92 kB / 433.9 MB, free: 3.621 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.414e-05/0.1657, allocations: 8.469 kB / 433.9 MB, free: 3.613 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001628/0.1658, allocations: 47.67 kB / 433.9 MB, free: 3.566 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.135e-05/0.1659, allocations: 16 kB / 433.9 MB, free: 3.551 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 47 ($PRE.T1.enableFire,$PRE.T2.enableFire,$PRE.T3.enableFire,$PRE.onDelay.u,step3.oldActive,$PRE.step3.oldActive,step2.oldActive,$PRE.step2.oldActive,initialStep.oldActive,$PRE.initialStep.oldActive,onDelay.t_next,$PRE.onDelay.t_next,onDelay.delaySignal,$PRE.onDelay.delaySignal,onDelay.u,onDelay.y,T3.t_start,$PRE.T3.t_start,T3.enableFire,T3.fire,step3.outport_fire,step3.inport_fire,step3.newActive,$PRE.step3.newActive,T2.enableFire,step2.inport_fire,step2.newActive,$PRE.step2.newActive,T1.enableFire,T1.condition,initialStep.newActive,$PRE.initialStep.newActive,initialStep.active,$whenCondition3,$whenCondition2,$whenCondition1,step3.outPort[1].checkOneDelayedTransitionPerLoop,T3.condition,initialStep.connectorNode.node.suspend,initialStep.connectorNode.node.resume,T2.condition,T3.outPort.checkOneDelayedTransitionPerLoop,step2.inPort[1].checkOneDelayedTransitionPerLoop,step3.inPort[1].checkOneDelayedTransitionPerLoop,step3.inPort[1].checkUnaryConnection,step2.inPort[1].checkUnaryConnection,initialStep.inPort[1].checkUnaryConnection) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 1 * 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.0002516/0.1661, allocations: 240.5 kB / 434.2 MB, free: 3.297 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.528e-05/0.1662, allocations: 19.75 kB / 434.2 MB, free: 3.277 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003838/0.1666, allocations: 251.3 kB / 434.4 MB, free: 3.027 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.061e-06/0.1666, allocations: 8 kB / 434.5 MB, free: 3.02 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.1666, allocations: 0 / 434.5 MB, free: 3.02 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.1666, allocations: 0 / 434.5 MB, free: 3.02 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008173/0.1674, allocations: 0.6601 MB / 435.1 MB, free: 2.297 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.464e-06/0.1675, allocations: 7.984 kB / 435.1 MB, free: 2.289 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.903e-05/0.1675, allocations: 8 kB / 435.1 MB, free: 2.281 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.414e-06/0.1675, allocations: 0 / 435.1 MB, free: 2.281 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.519e-05/0.1675, allocations: 4 kB / 435.1 MB, free: 2.277 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.1675, allocations: 0 / 435.1 MB, free: 2.277 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.1675, allocations: 4 kB / 435.1 MB, free: 2.273 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003585/0.1679, allocations: 342.8 kB / 435.5 MB, free: 1.922 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001016/0.168, allocations: 112.7 kB / 435.6 MB, free: 1.793 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.391e-05/0.168, allocations: 4 kB / 435.6 MB, free: 1.789 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001122/0.1682, allocations: 15.98 kB / 435.6 MB, free: 1.773 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.463e-05/0.1683, allocations: 15.98 kB / 435.6 MB, free: 1.758 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.755e-05/0.1683, allocations: 11.98 kB / 435.6 MB, free: 1.746 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001225/0.1684, allocations: 143.2 kB / 435.8 MB, free: 1.605 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1684, allocations: 4 kB / 435.8 MB, free: 1.602 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000365/0.1688, allocations: 75.69 kB / 435.8 MB, free: 1.527 MB / 366.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: 23 (T3.enableFire,$whenCondition1,$whenCondition2,$whenCondition3,initialStep.active,initialStep.newActive,initialStep.oldActive,T1.condition,T1.enableFire,step2.newActive,step2.oldActive,step2.inport_fire,T2.enableFire,step3.newActive,step3.oldActive,step3.inport_fire,step3.outport_fire,T3.fire,T3.t_start,onDelay.y,onDelay.u,onDelay.delaySignal,onDelay.t_next) * Number of discrete states: 7 (initialStep.newActive,step2.newActive,onDelay.t_next,onDelay.delaySignal,$whenCondition3,$whenCondition2,step3.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * 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.0001865/0.169, allocations: 126.8 kB / 436 MB, free: 1.391 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004319/0.1694, allocations: 283.7 kB / 436.2 MB, free: 1.102 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.1694, allocations: 0 / 436.2 MB, free: 1.102 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000161/0.1696, allocations: 143.3 kB / 436.4 MB, free: 0.9492 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002989/0.1699, allocations: 36.64 kB / 436.4 MB, free: 0.9102 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009216/0.1708, allocations: 0.5089 MB / 436.9 MB, free: 384 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2134/0.3842, allocations: 0.7956 MB / 437.7 MB, free: 57.63 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001828/0.3845, allocations: 37.36 kB / 437.8 MB, free: 57.63 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.101e-05/0.3845, allocations: 22.22 kB / 437.8 MB, free: 57.63 MB / 366.1 MB Notification: Performance of SimCode: time 9.02e-07/0.3845, allocations: 3.188 kB / 437.8 MB, free: 57.63 MB / 366.1 MB Notification: Performance of Templates: time 0.005607/0.3901, allocations: 2.148 MB / 439.9 MB, free: 57.55 MB / 366.1 MB make -j1 -f Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3.makefile (rm -f Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3.pipe ; mkfifo Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3.pipe >> ../files/Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3.sim & ./Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3.pipe 2>&1)