Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Sequence.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.Sequence,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Sequence") translateModel(Modelica_StateGraph2.Examples.BasicStateGraphs.Sequence,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Sequence") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01016/0.01016, allocations: 102 kB / 15.73 MB, free: 6.039 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.002114/0.002114, allocations: 193 kB / 16.67 MB, free: 5.961 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.573/1.573, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.09354/0.09354, allocations: 13.56 MB / 304.1 MB, free: 1.148 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001273, allocations: 59.91 kB / 421.6 MB, free: 14.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1383/0.1396, allocations: 52.69 MB / 474.3 MB, free: 9.617 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_StateGraph2.Examples.BasicStateGraphs.Sequence): time 0.003515/0.1431, allocations: 1.724 MB / 476 MB, free: 7.879 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001661/0.1448, allocations: 0.779 MB / 476.8 MB, free: 7.094 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001751/0.145, allocations: 11.94 kB / 476.8 MB, free: 7.082 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001116/0.1461, allocations: 0.509 MB / 477.3 MB, free: 6.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.687e-05/0.1463, allocations: 31.67 kB / 477.3 MB, free: 6.539 MB / 350.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.0007071/0.147, allocations: 199.7 kB / 477.5 MB, free: 6.344 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004044/0.1474, allocations: 343.2 kB / 477.9 MB, free: 6.008 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005396/0.148, allocations: 367.4 kB / 478.2 MB, free: 5.645 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001921/0.1482, allocations: 115.6 kB / 478.3 MB, free: 5.531 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001452/0.1483, allocations: 123.4 kB / 478.4 MB, free: 5.41 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.036e-05/0.1484, allocations: 24 kB / 478.5 MB, free: 5.387 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001511/0.1485, allocations: 47.92 kB / 478.5 MB, free: 5.34 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001125/0.1486, allocations: 63.77 kB / 478.6 MB, free: 5.277 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000151/0.1488, allocations: 127.3 kB / 478.7 MB, free: 5.152 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006272/0.1494, allocations: 334.8 kB / 479 MB, free: 4.824 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.705e-06/0.1495, allocations: 0 / 479 MB, free: 4.824 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.805e-06/0.1495, allocations: 0 / 479 MB, free: 4.824 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.725e-06/0.1495, allocations: 0 / 479 MB, free: 4.824 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.0008799/0.1504, allocations: 0.5363 MB / 479.6 MB, free: 4.242 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.691e-05/0.1504, allocations: 11.89 kB / 479.6 MB, free: 4.23 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.938e-05/0.1505, allocations: 32.56 kB / 479.6 MB, free: 4.199 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004367/0.151, allocations: 291.8 kB / 479.9 MB, free: 3.875 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.405e-05/0.151, allocations: 25.03 kB / 479.9 MB, free: 3.852 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.471e-05/0.1511, allocations: 28.31 kB / 480 MB, free: 3.824 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005715/0.1516, allocations: 336.6 kB / 480.3 MB, free: 3.469 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.234e-05/0.1517, allocations: 3.938 kB / 480.3 MB, free: 3.465 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.094e-05/0.1517, allocations: 16 kB / 480.3 MB, free: 3.449 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.227e-06/0.1517, allocations: 4 kB / 480.3 MB, free: 3.445 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003674/0.1521, allocations: 206.1 kB / 480.5 MB, free: 3.242 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001825/0.1539, allocations: 1.597 MB / 482.1 MB, free: 1.484 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004329/0.1544, allocations: 275.4 kB / 482.4 MB, free: 1.172 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001158/0.1545, allocations: 48.78 kB / 482.4 MB, free: 1.121 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.414e-05/0.1546, allocations: 89.09 kB / 482.5 MB, free: 1.016 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.4e-05/0.1546, allocations: 38.56 kB / 482.5 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.462e-06/0.1546, allocations: 0 / 482.5 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.00042/0.1551, allocations: 157.3 kB / 482.7 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.933e-05/0.1551, allocations: 59.47 kB / 482.8 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003899/0.1555, allocations: 211.7 kB / 483 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.178e-05/0.1556, allocations: 33.7 kB / 483 MB, free: 492 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000177/0.1558, allocations: 168.3 kB / 483.2 MB, free: 320 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.992e-05/0.1558, allocations: 43.53 kB / 483.2 MB, free: 276 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001761/0.156, allocations: 77.59 kB / 483.3 MB, free: 192 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002409/0.1562, allocations: 330.8 kB / 483.6 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.413e-05/0.1563, allocations: 59.77 kB / 483.7 MB, free: 15.8 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000278/0.1566, allocations: 140 kB / 483.8 MB, free: 15.62 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002609/0.1569, allocations: 198.6 kB / 484 MB, free: 15.38 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.1569, allocations: 0 / 484 MB, free: 15.38 MB / 366.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003904/0.1573, allocations: 233.1 kB / 484.2 MB, free: 15.15 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.775e-05/0.1573, allocations: 7.984 kB / 484.2 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.501e-05/0.1574, allocations: 4.406 kB / 484.2 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.84e-05/0.1574, allocations: 11.94 kB / 484.2 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.916e-05/0.1575, allocations: 19.94 kB / 484.3 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.659e-05/0.1575, allocations: 7.984 kB / 484.3 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000139/0.1577, allocations: 19.84 kB / 484.3 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.815e-05/0.1577, allocations: 15.94 kB / 484.3 MB, free: 15.06 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 33 ($PRE.T1.enableFire,$PRE.T2.enableFire,step1.oldActive,$PRE.step1.oldActive,step2.oldActive,$PRE.step2.oldActive,step3.oldActive,$PRE.step3.oldActive,step1.connectorNode.node.suspend,step1.connectorNode.node.resume,step3.outport_fire,step1.inport_fire,step3.inport_fire,step3.newActive,$PRE.step3.newActive,step3.active,T2.enableFire,T2.condition,step2.outport_fire,step2.inport_fire,step2.newActive,$PRE.step2.newActive,step2.active,T1.enableFire,T1.condition,step1.outport_fire,step1.newActive,$PRE.step1.newActive,step1.active,step3.inPort[1].checkUnaryConnection,step1.outPort[1].checkOneDelayedTransitionPerLoop,step3.inPort[1].checkOneDelayedTransitionPerLoop,step2.inPort[1].checkUnaryConnection) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * 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.0002228/0.1579, allocations: 169.7 kB / 484.5 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.518e-05/0.158, allocations: 23.75 kB / 484.5 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002962/0.1583, allocations: 150.5 kB / 484.6 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.079e-06/0.1583, allocations: 7.938 kB / 484.6 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.1583, allocations: 0 / 484.6 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.069e-06/0.1583, allocations: 0 / 484.6 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006717/0.159, allocations: 0.506 MB / 485.2 MB, free: 14.13 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.159, allocations: 0 / 485.2 MB, free: 14.13 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.243e-05/0.159, allocations: 0 / 485.2 MB, free: 14.13 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.003e-06/0.159, allocations: 4 kB / 485.2 MB, free: 14.13 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.638e-05/0.1591, allocations: 4 kB / 485.2 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.1591, allocations: 4 kB / 485.2 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.1591, allocations: 0 / 485.2 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002686/0.1594, allocations: 231.2 kB / 485.4 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.435e-05/0.1594, allocations: 100.9 kB / 485.5 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.651e-05/0.1595, allocations: 8 kB / 485.5 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.572e-05/0.1595, allocations: 0 / 485.5 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.185e-05/0.1596, allocations: 19.97 kB / 485.5 MB, free: 13.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.889e-06/0.1596, allocations: 4 kB / 485.5 MB, free: 13.73 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001044/0.1597, allocations: 132.1 kB / 485.6 MB, free: 13.6 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1598, allocations: 0 / 485.6 MB, free: 13.6 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003274/0.1601, allocations: 55.67 kB / 485.7 MB, free: 13.55 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: 17 (step1.outport_fire,step2.outport_fire,step1.active,step1.newActive,step1.oldActive,T1.condition,T1.enableFire,step2.active,step2.newActive,step2.oldActive,step2.inport_fire,T2.condition,T2.enableFire,step3.active,step3.newActive,step3.oldActive,step3.inport_fire) * Number of discrete states: 3 (step3.newActive,step2.newActive,step1.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001842/0.1603, allocations: 109.7 kB / 485.8 MB, free: 13.43 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002933/0.1606, allocations: 150.8 kB / 486 MB, free: 13.29 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.1606, allocations: 0 / 486 MB, free: 13.29 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 9.366e-05/0.1607, allocations: 55.91 kB / 486 MB, free: 13.23 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003153/0.161, allocations: 22.17 kB / 486 MB, free: 13.21 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009129/0.1619, allocations: 396.5 kB / 486.4 MB, free: 12.8 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006365/0.1626, allocations: 0.7599 MB / 487.2 MB, free: 12.02 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001136/0.1627, allocations: 41.84 kB / 487.2 MB, free: 11.98 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.582e-05/0.1628, allocations: 27.44 kB / 487.2 MB, free: 11.95 MB / 366.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1628, allocations: 0 / 487.2 MB, free: 11.95 MB / 366.1 MB Notification: Performance of Templates: time 0.005597/0.1684, allocations: 1.559 MB / 488.8 MB, free: 10.4 MB / 366.1 MB make -j1 -f Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Sequence.makefile (rm -f Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Sequence.pipe ; mkfifo Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Sequence.pipe ; head -c 1048576 < Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Sequence.pipe >> ../files/Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Sequence.sim & ./Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Sequence -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Sequence.pipe 2>&1)