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.001715/0.001715, 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.002095/0.002095, allocations: 195.5 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.617/1.617, 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.2687/0.2687, allocations: 13.54 MB / 303.9 MB, free: 0.582 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00159/0.00159, allocations: 59.91 kB / 367.8 MB, free: 6.445 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.1141, allocations: 52.69 MB / 420.5 MB, free: 1.719 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_StateGraph2.Examples.BasicStateGraphs.Sequence): time 0.00351/0.1176, allocations: 1.713 MB / 422.2 MB, free: 15.99 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001624/0.1193, allocations: 0.7829 MB / 423 MB, free: 15.2 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001858/0.1195, allocations: 11.94 kB / 423 MB, free: 15.19 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001065/0.1206, allocations: 0.5245 MB / 423.5 MB, free: 14.66 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001281/0.1208, allocations: 19.73 kB / 423.6 MB, free: 14.64 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.0007147/0.1215, allocations: 209.8 kB / 423.8 MB, free: 14.44 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005083/0.122, allocations: 331.4 kB / 424.1 MB, free: 14.12 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006323/0.1226, allocations: 355.7 kB / 424.4 MB, free: 13.77 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002181/0.1229, allocations: 131.5 kB / 424.6 MB, free: 13.64 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001598/0.123, allocations: 111.4 kB / 424.7 MB, free: 13.53 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.548e-05/0.1231, allocations: 28 kB / 424.7 MB, free: 13.5 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001081/0.1232, allocations: 43.98 kB / 424.7 MB, free: 13.46 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.76e-05/0.1233, allocations: 71.75 kB / 424.8 MB, free: 13.39 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001258/0.1234, allocations: 115.3 kB / 424.9 MB, free: 13.28 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003884/0.1238, allocations: 307 kB / 425.2 MB, free: 12.98 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.1239, allocations: 0 / 425.2 MB, free: 12.98 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1239, allocations: 0 / 425.2 MB, free: 12.98 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.981e-05/0.1239, allocations: 0 / 425.2 MB, free: 12.98 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.0006848/0.1246, allocations: 0.5441 MB / 425.8 MB, free: 12.39 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.35e-05/0.1246, allocations: 11.89 kB / 425.8 MB, free: 12.38 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.687e-05/0.1247, allocations: 40.56 kB / 425.8 MB, free: 12.34 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003114/0.125, allocations: 279.7 kB / 426.1 MB, free: 12.02 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.006e-05/0.1251, allocations: 21.03 kB / 426.1 MB, free: 12 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.173e-05/0.1251, allocations: 32.38 kB / 426.1 MB, free: 11.97 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000519/0.1257, allocations: 332.6 kB / 426.5 MB, free: 11.62 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.503e-05/0.1257, allocations: 4 kB / 426.5 MB, free: 11.62 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.812e-05/0.1257, allocations: 12 kB / 426.5 MB, free: 11.61 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.96e-05/0.1257, allocations: 8 kB / 426.5 MB, free: 11.6 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003603/0.1261, allocations: 206.1 kB / 426.7 MB, free: 11.39 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00145/0.1276, allocations: 1.601 MB / 428.3 MB, free: 9.633 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002629/0.1278, allocations: 277 kB / 428.6 MB, free: 9.316 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.911e-05/0.1279, allocations: 44.84 kB / 428.6 MB, free: 9.27 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001244/0.1281, allocations: 81.11 kB / 428.7 MB, free: 9.172 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.732e-05/0.1281, allocations: 46.55 kB / 428.7 MB, free: 9.117 MB / 366.1 MB Notification: Performance of pre-optimization done (n=17): time 1.654e-06/0.1281, allocations: 0 / 428.7 MB, free: 9.117 MB / 366.1 MB Notification: Performance of matching and sorting (n=17): time 0.000295/0.1284, allocations: 163.4 kB / 428.9 MB, free: 8.953 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.984e-05/0.1284, allocations: 51.41 kB / 428.9 MB, free: 8.891 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001739/0.1286, allocations: 210.8 kB / 429.1 MB, free: 8.672 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.179e-05/0.1287, allocations: 41.62 kB / 429.2 MB, free: 8.625 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001875/0.1288, allocations: 164.2 kB / 429.3 MB, free: 8.461 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.515e-05/0.1289, allocations: 39.55 kB / 429.4 MB, free: 8.422 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.587e-05/0.129, allocations: 89.58 kB / 429.5 MB, free: 8.328 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001075/0.1291, allocations: 330.8 kB / 429.8 MB, free: 7.996 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.891e-05/0.1292, allocations: 51.84 kB / 429.8 MB, free: 7.945 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001483/0.1294, allocations: 140 kB / 430 MB, free: 7.766 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002174/0.1296, allocations: 194.4 kB / 430.2 MB, free: 7.535 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.1296, allocations: 7.938 kB / 430.2 MB, free: 7.527 MB / 366.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003346/0.1299, allocations: 235.2 kB / 430.4 MB, free: 7.293 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.339e-05/0.13, allocations: 4 kB / 430.4 MB, free: 7.289 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.13, allocations: 4 kB / 430.4 MB, free: 7.285 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.675e-05/0.13, allocations: 7.938 kB / 430.4 MB, free: 7.277 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.679e-05/0.1301, allocations: 24.33 kB / 430.5 MB, free: 7.254 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.045e-05/0.1301, allocations: 11.94 kB / 430.5 MB, free: 7.242 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000101/0.1302, allocations: 19.84 kB / 430.5 MB, free: 7.223 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.212e-05/0.1302, allocations: 11.98 kB / 430.5 MB, free: 7.211 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.0002094/0.1304, allocations: 173.8 kB / 430.7 MB, free: 7.031 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.228e-05/0.1305, allocations: 15.81 kB / 430.7 MB, free: 7.016 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002312/0.1307, allocations: 147.3 kB / 430.8 MB, free: 6.855 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.1307, allocations: 7.938 kB / 430.8 MB, free: 6.848 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.1308, allocations: 0 / 430.8 MB, free: 6.848 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.1308, allocations: 0 / 430.8 MB, free: 6.848 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005553/0.1313, allocations: 0.508 MB / 431.3 MB, free: 6.285 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.978e-06/0.1313, allocations: 3.984 kB / 431.3 MB, free: 6.281 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.055e-05/0.1314, allocations: 7.938 kB / 431.4 MB, free: 6.273 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.926e-06/0.1314, allocations: 0 / 431.4 MB, free: 6.273 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.548e-06/0.1314, allocations: 0 / 431.4 MB, free: 6.273 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.1314, allocations: 0 / 431.4 MB, free: 6.273 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.1314, allocations: 8 kB / 431.4 MB, free: 6.266 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002402/0.1317, allocations: 231.2 kB / 431.6 MB, free: 6.023 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.213e-05/0.1317, allocations: 93 kB / 431.7 MB, free: 5.914 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.448e-05/0.1318, allocations: 4 kB / 431.7 MB, free: 5.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.322e-05/0.1319, allocations: 4 kB / 431.7 MB, free: 5.906 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.499e-05/0.1319, allocations: 19.89 kB / 431.7 MB, free: 5.887 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.72e-05/0.132, allocations: 7.984 kB / 431.7 MB, free: 5.879 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001109/0.1321, allocations: 137.1 kB / 431.8 MB, free: 5.746 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1321, allocations: 0 / 431.8 MB, free: 5.746 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003477/0.1324, allocations: 55.78 kB / 431.9 MB, free: 5.691 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.0001677/0.1326, allocations: 112.5 kB / 432 MB, free: 5.574 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003144/0.1329, allocations: 152.4 kB / 432.2 MB, free: 5.426 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.1329, allocations: 4.125 kB / 432.2 MB, free: 5.422 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 8.706e-05/0.133, allocations: 58.41 kB / 432.2 MB, free: 5.367 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002772/0.1333, allocations: 23.88 kB / 432.2 MB, free: 5.344 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000787/0.1341, allocations: 404.4 kB / 432.6 MB, free: 4.926 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003853/0.1345, allocations: 0.7634 MB / 433.4 MB, free: 4.133 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001229/0.1346, allocations: 41.86 kB / 433.4 MB, free: 4.094 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.574e-05/0.1347, allocations: 19.44 kB / 433.5 MB, free: 4.074 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1347, allocations: 0 / 433.5 MB, free: 4.074 MB / 366.1 MB Notification: Performance of Templates: time 0.004808/0.1395, allocations: 1.507 MB / 435 MB, free: 2.574 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)