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.001119/0.001119, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.00115/0.00115, allocations: 190.4 kB / 16.14 MB, free: 6.703 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.583/1.583, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.3514/0.3514, allocations: 13.53 MB / 303.5 MB, free: 0.6211 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002186/0.002186, allocations: 60.14 kB / 367.1 MB, free: 6.949 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1431/0.1453, allocations: 52.69 MB / 419.8 MB, free: 2.223 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3): time 0.003656/0.149, allocations: 1.93 MB / 421.7 MB, free: 284 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001466/0.1506, allocations: 0.8338 MB / 422.6 MB, free: 15.44 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001236/0.1507, allocations: 11.94 kB / 422.6 MB, free: 15.43 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00098/0.1517, allocations: 0.5483 MB / 423.1 MB, free: 14.88 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 7.473e-05/0.1518, allocations: 23.84 kB / 423.1 MB, free: 14.85 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.0006437/0.1524, allocations: 215.6 kB / 423.4 MB, free: 14.64 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004651/0.1529, allocations: 435 kB / 423.8 MB, free: 14.21 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008043/0.1537, allocations: 0.5032 MB / 424.3 MB, free: 13.71 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001658/0.1539, allocations: 163.3 kB / 424.4 MB, free: 13.55 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001731/0.1541, allocations: 163.1 kB / 424.6 MB, free: 13.39 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.722e-05/0.1541, allocations: 28 kB / 424.6 MB, free: 13.36 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001096/0.1543, allocations: 44 kB / 424.7 MB, free: 13.32 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001096/0.1544, allocations: 91.67 kB / 424.8 MB, free: 13.23 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001533/0.1545, allocations: 171 kB / 424.9 MB, free: 13.06 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000385/0.1549, allocations: 374.8 kB / 425.3 MB, free: 12.69 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.1549, allocations: 0 / 425.3 MB, free: 12.69 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.155, allocations: 0 / 425.3 MB, free: 12.69 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.273e-06/0.155, allocations: 0 / 425.3 MB, free: 12.69 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.0009531/0.1559, allocations: 0.6839 MB / 426 MB, free: 11.95 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.982e-05/0.156, allocations: 8.031 kB / 426 MB, free: 11.95 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001012/0.1561, allocations: 44.47 kB / 426 MB, free: 11.9 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003919/0.1565, allocations: 311.6 kB / 426.3 MB, free: 11.56 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.581e-05/0.1566, allocations: 63.27 kB / 426.4 MB, free: 11.49 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.943e-05/0.1566, allocations: 40.38 kB / 426.4 MB, free: 11.45 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007369/0.1574, allocations: 483.5 kB / 426.9 MB, free: 10.95 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.532e-05/0.1574, allocations: 0 / 426.9 MB, free: 10.95 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.196e-05/0.1575, allocations: 16 kB / 426.9 MB, free: 10.93 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.319e-05/0.1575, allocations: 12 kB / 426.9 MB, free: 10.92 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005277/0.158, allocations: 302.3 kB / 427.2 MB, free: 10.62 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002264/0.1603, allocations: 1.93 MB / 429.2 MB, free: 8.547 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000413/0.1607, allocations: 423.4 kB / 429.6 MB, free: 8.062 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001212/0.1609, allocations: 85.62 kB / 429.7 MB, free: 7.973 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000728/0.1616, allocations: 0.7166 MB / 430.4 MB, free: 7.191 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003731/0.162, allocations: 170.8 kB / 430.5 MB, free: 7 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 2.094e-06/0.162, allocations: 3.938 kB / 430.5 MB, free: 6.996 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004469/0.1624, allocations: 269.5 kB / 430.8 MB, free: 6.723 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.326e-05/0.1625, allocations: 162.2 kB / 431 MB, free: 6.527 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002194/0.1628, allocations: 250.8 kB / 431.2 MB, free: 6.27 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.875e-05/0.1628, allocations: 37.7 kB / 431.3 MB, free: 6.227 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001302/0.1629, allocations: 204.2 kB / 431.4 MB, free: 6.023 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.987e-05/0.163, allocations: 51.44 kB / 431.5 MB, free: 5.973 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001203/0.1631, allocations: 118 kB / 431.6 MB, free: 5.852 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001054/0.1632, allocations: 334.8 kB / 431.9 MB, free: 5.516 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001127/0.1634, allocations: 68.84 kB / 432 MB, free: 5.449 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002059/0.1636, allocations: 223.2 kB / 432.2 MB, free: 5.16 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003777/0.1639, allocations: 345.1 kB / 432.6 MB, free: 4.746 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.458e-06/0.164, allocations: 4 kB / 432.6 MB, free: 4.742 MB / 366.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0005114/0.1645, allocations: 358.9 kB / 432.9 MB, free: 4.379 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.789e-05/0.1645, allocations: 37.64 kB / 433 MB, free: 4.336 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.147e-05/0.1646, allocations: 4 kB / 433 MB, free: 4.332 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.689e-05/0.1646, allocations: 8 kB / 433 MB, free: 4.324 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001051/0.1647, allocations: 23.92 kB / 433 MB, free: 4.301 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.656e-05/0.1647, allocations: 15.92 kB / 433 MB, free: 4.285 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001621/0.1649, allocations: 31.69 kB / 433 MB, free: 4.254 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001066/0.165, allocations: 20 kB / 433.1 MB, free: 4.234 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.0002772/0.1653, allocations: 232.8 kB / 433.3 MB, free: 3.992 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.295e-05/0.1653, allocations: 23.75 kB / 433.3 MB, free: 3.969 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004277/0.1658, allocations: 255.2 kB / 433.6 MB, free: 3.711 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.928e-06/0.1658, allocations: 0 / 433.6 MB, free: 3.711 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.1658, allocations: 4 kB / 433.6 MB, free: 3.707 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.324e-06/0.1658, allocations: 3.984 kB / 433.6 MB, free: 3.703 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007654/0.1666, allocations: 0.6718 MB / 434.2 MB, free: 2.969 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.1666, allocations: 3.938 kB / 434.2 MB, free: 2.965 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.894e-05/0.1666, allocations: 4 kB / 434.2 MB, free: 2.961 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.905e-06/0.1666, allocations: 0 / 434.2 MB, free: 2.961 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.105e-05/0.1667, allocations: 11.98 kB / 434.3 MB, free: 2.949 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.023e-06/0.1667, allocations: 0 / 434.3 MB, free: 2.949 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.1667, allocations: 0 / 434.3 MB, free: 2.949 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003401/0.167, allocations: 340.7 kB / 434.6 MB, free: 2.598 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.908e-05/0.1671, allocations: 112.7 kB / 434.7 MB, free: 2.469 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.725e-05/0.1672, allocations: 11.98 kB / 434.7 MB, free: 2.457 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001079/0.1673, allocations: 4 kB / 434.7 MB, free: 2.453 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.962e-05/0.1674, allocations: 23.97 kB / 434.7 MB, free: 2.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.668e-05/0.1674, allocations: 8 kB / 434.7 MB, free: 2.422 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001147/0.1675, allocations: 143.2 kB / 434.9 MB, free: 2.281 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1675, allocations: 0 / 434.9 MB, free: 2.281 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003701/0.1679, allocations: 79.69 kB / 435 MB, free: 2.203 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.000194/0.1681, allocations: 119.5 kB / 435.1 MB, free: 2.078 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000379/0.1685, allocations: 267.8 kB / 435.3 MB, free: 1.805 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.1685, allocations: 384 / 435.3 MB, free: 1.805 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001619/0.1686, allocations: 159.3 kB / 435.5 MB, free: 1.637 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002972/0.169, allocations: 20.67 kB / 435.5 MB, free: 1.613 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009412/0.1699, allocations: 0.6234 MB / 436.1 MB, free: 0.957 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003816/0.1703, allocations: 0.7996 MB / 436.9 MB, free: 132 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001083/0.1704, allocations: 42.94 kB / 437 MB, free: 88 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.789e-05/0.1705, allocations: 23.44 kB / 437 MB, free: 64 kB / 366.1 MB Notification: Performance of SimCode: time 4.5e-07/0.1705, allocations: 0 / 437 MB, free: 64 kB / 366.1 MB Notification: Performance of Templates: time 0.2003/0.3708, allocations: 1.98 MB / 439 MB, free: 58.35 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)