Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.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) 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,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample") translateModel(Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0016/0.0016, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001978/0.001978, allocations: 189.2 kB / 16.14 MB, free: 6.652 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.68/1.68, allocations: 222.9 MB / 239.8 MB, free: 4.57 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.2903/0.2903, allocations: 13.53 MB / 303.5 MB, free: 0.7031 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001421/0.001421, allocations: 51.91 kB / 367.1 MB, free: 6.953 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1388/0.1402, allocations: 52.68 MB / 419.8 MB, free: 2.23 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample): time 0.004066/0.1443, allocations: 1.853 MB / 421.6 MB, free: 368 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001961/0.1463, allocations: 0.8104 MB / 422.5 MB, free: 15.54 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003268/0.1467, allocations: 15.88 kB / 422.5 MB, free: 15.53 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001216/0.148, allocations: 0.5561 MB / 423 MB, free: 14.97 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000214/0.1482, allocations: 11.88 kB / 423 MB, free: 14.96 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.0009062/0.1491, allocations: 215.2 kB / 423.2 MB, free: 14.75 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006233/0.1497, allocations: 411.1 kB / 423.6 MB, free: 14.35 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008515/0.1506, allocations: 488.9 kB / 424.1 MB, free: 13.87 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002477/0.1509, allocations: 151.4 kB / 424.3 MB, free: 13.72 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002203/0.1511, allocations: 147.2 kB / 424.4 MB, free: 13.58 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.707e-05/0.1512, allocations: 24 kB / 424.4 MB, free: 13.55 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001509/0.1513, allocations: 43.98 kB / 424.5 MB, free: 13.51 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001405/0.1515, allocations: 95.67 kB / 424.6 MB, free: 13.42 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001557/0.1516, allocations: 155.1 kB / 424.7 MB, free: 13.27 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000479/0.1521, allocations: 366.9 kB / 425.1 MB, free: 12.91 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.127e-06/0.1521, allocations: 3.938 kB / 425.1 MB, free: 12.9 MB / 366.1 MB Notification: Performance of FrontEnd: time 8.61e-07/0.1522, allocations: 0 / 425.1 MB, free: 12.9 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.565e-05/0.1522, allocations: 4 kB / 425.1 MB, free: 12.9 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: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.001/0.1532, allocations: 0.625 MB / 425.7 MB, free: 12.22 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.738e-05/0.1532, allocations: 8.031 kB / 425.7 MB, free: 12.21 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001129/0.1534, allocations: 40.47 kB / 425.8 MB, free: 12.18 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003886/0.1538, allocations: 323.4 kB / 426.1 MB, free: 11.82 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.173e-05/0.1538, allocations: 29.38 kB / 426.1 MB, free: 11.79 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.467e-05/0.1539, allocations: 36.38 kB / 426.1 MB, free: 11.76 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007591/0.1546, allocations: 459.7 kB / 426.6 MB, free: 11.28 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.185e-05/0.1547, allocations: 3.938 kB / 426.6 MB, free: 11.27 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.969e-05/0.1547, allocations: 20 kB / 426.6 MB, free: 11.25 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/0.1547, allocations: 8 kB / 426.6 MB, free: 11.25 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004916/0.1552, allocations: 290.3 kB / 426.9 MB, free: 10.96 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001998/0.1572, allocations: 1.883 MB / 428.8 MB, free: 8.91 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004122/0.1577, allocations: 382.3 kB / 429.2 MB, free: 8.473 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.801e-05/0.1578, allocations: 68.83 kB / 429.2 MB, free: 8.402 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.413e-05/0.1579, allocations: 85.05 kB / 429.3 MB, free: 8.301 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002798/0.1581, allocations: 122.2 kB / 429.4 MB, free: 8.172 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 1.764e-06/0.1582, allocations: 0 / 429.4 MB, free: 8.172 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.0003958/0.1586, allocations: 209.2 kB / 429.6 MB, free: 7.961 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.242e-05/0.1587, allocations: 110.8 kB / 429.7 MB, free: 7.828 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00025/0.1589, allocations: 246.8 kB / 430 MB, free: 7.578 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.943e-05/0.159, allocations: 37.69 kB / 430 MB, free: 7.535 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001389/0.1591, allocations: 188.3 kB / 430.2 MB, free: 7.348 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.87e-05/0.1592, allocations: 51.44 kB / 430.3 MB, free: 7.297 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001505/0.1593, allocations: 114 kB / 430.4 MB, free: 7.18 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001684/0.1595, allocations: 338.8 kB / 430.7 MB, free: 6.84 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001321/0.1596, allocations: 68.78 kB / 430.8 MB, free: 6.77 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002059/0.1599, allocations: 229.7 kB / 431 MB, free: 6.48 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003035/0.1602, allocations: 272.9 kB / 431.3 MB, free: 6.152 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.1602, allocations: 0 / 431.3 MB, free: 6.152 MB / 366.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0004309/0.1606, allocations: 316.8 kB / 431.6 MB, free: 5.836 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.547e-05/0.1606, allocations: 4.594 kB / 431.6 MB, free: 5.832 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.353e-05/0.1607, allocations: 12 kB / 431.6 MB, free: 5.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.31e-05/0.1607, allocations: 7.984 kB / 431.6 MB, free: 5.812 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001025/0.1608, allocations: 23.88 kB / 431.6 MB, free: 5.789 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.063e-05/0.1608, allocations: 7.984 kB / 431.6 MB, free: 5.781 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001791/0.161, allocations: 39.69 kB / 431.7 MB, free: 5.742 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.171e-05/0.161, allocations: 19.98 kB / 431.7 MB, free: 5.723 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 46 ($PRE.T1.enableFire,$PRE.T2.enableFire,$PRE.T3.enableFire,initialStep.oldActive,$PRE.initialStep.oldActive,step2.oldActive,$PRE.step2.oldActive,step3.oldActive,$PRE.step3.oldActive,T3.t_start,$PRE.T3.t_start,T3.enableFire,T3.fire,step3.outport_fire,step3.inport_fire,step3.newActive,$PRE.step3.newActive,T2.t_start,$PRE.T2.t_start,T2.enableFire,T2.fire,step2.outport_fire,step2.inport_fire,step2.newActive,$PRE.step2.newActive,T1.enableFire,T1.condition,initialStep.outport_fire,initialStep.inport_fire,initialStep.newActive,$PRE.initialStep.newActive,initialStep.active,$whenCondition1,$whenCondition2,T3.condition,T2.condition,initialStep.connectorNode.node.suspend,initialStep.connectorNode.node.resume,T3.outPort.checkOneDelayedTransitionPerLoop,step2.inPort[1].checkOneDelayedTransitionPerLoop,step2.outPort[1].checkOneDelayedTransitionPerLoop,T2.outPort.checkOneDelayedTransitionPerLoop,step3.outPort[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 (47): * Single equations (assignments): 47 * 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.0002013/0.1612, allocations: 206.8 kB / 431.9 MB, free: 5.512 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.833e-05/0.1613, allocations: 23.8 kB / 431.9 MB, free: 5.488 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000291/0.1616, allocations: 185.6 kB / 432.1 MB, free: 5.301 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.936e-06/0.1616, allocations: 0 / 432.1 MB, free: 5.301 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.551e-06/0.1616, allocations: 0 / 432.1 MB, free: 5.301 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.1616, allocations: 0 / 432.1 MB, free: 5.301 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007547/0.1624, allocations: 0.6384 MB / 432.7 MB, free: 4.605 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-06/0.1624, allocations: 4 kB / 432.7 MB, free: 4.602 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.283e-05/0.1624, allocations: 7.984 kB / 432.7 MB, free: 4.594 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/0.1624, allocations: 3.938 kB / 432.7 MB, free: 4.59 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.492e-05/0.1625, allocations: 8 kB / 432.8 MB, free: 4.582 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.1625, allocations: 0 / 432.8 MB, free: 4.582 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.1625, allocations: 0 / 432.8 MB, free: 4.582 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002687/0.1627, allocations: 274.9 kB / 433 MB, free: 4.301 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.652e-05/0.1628, allocations: 108.9 kB / 433.1 MB, free: 4.176 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.282e-05/0.1629, allocations: 3.938 kB / 433.1 MB, free: 4.172 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001259/0.163, allocations: 11.98 kB / 433.1 MB, free: 4.16 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.617e-05/0.1631, allocations: 27.83 kB / 433.2 MB, free: 4.133 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.3e-05/0.1631, allocations: 4 kB / 433.2 MB, free: 4.129 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001072/0.1632, allocations: 147.2 kB / 433.3 MB, free: 3.984 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.1632, allocations: 0 / 433.3 MB, free: 3.984 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003904/0.1636, allocations: 75.59 kB / 433.4 MB, free: 3.91 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 (initialStep.inport_fire,initialStep.outport_fire,step2.outport_fire,T2.enableFire,T3.enableFire,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,T1.condition,T1.enableFire,step2.newActive,step2.oldActive,step2.inport_fire,T2.fire,T2.t_start,step3.newActive,step3.oldActive,step3.inport_fire,step3.outport_fire,T3.fire,T3.t_start) * Number of discrete states: 3 (step3.newActive,step2.newActive,initialStep.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 18 * 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.0001666/0.1638, allocations: 116.9 kB / 433.5 MB, free: 3.789 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003326/0.1642, allocations: 199.6 kB / 433.7 MB, free: 3.594 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.1642, allocations: 1.188 kB / 433.7 MB, free: 3.594 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001059/0.1643, allocations: 71.91 kB / 433.8 MB, free: 3.523 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002961/0.1646, allocations: 21.88 kB / 433.8 MB, free: 3.504 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008683/0.1655, allocations: 0.5998 MB / 434.4 MB, free: 2.875 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003692/0.1658, allocations: 0.7879 MB / 435.2 MB, free: 2.059 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.00012/0.166, allocations: 38.95 kB / 435.2 MB, free: 2.023 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.672e-05/0.166, allocations: 23.44 kB / 435.2 MB, free: 2 MB / 366.1 MB Notification: Performance of SimCode: time 3.01e-07/0.166, allocations: 0 / 435.2 MB, free: 2 MB / 366.1 MB Notification: Performance of Templates: time 0.2081/0.3741, allocations: 2.071 MB / 437.3 MB, free: 57.73 MB / 366.1 MB make -j1 -f Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample.makefile (rm -f Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample.pipe ; mkfifo Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample.pipe ; head -c 1048576 < Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample.pipe >> ../files/Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample.sim & ./Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample.pipe 2>&1)