Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4.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_Variant4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4") translateModel(Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001103/0.001107, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001171/0.001172, allocations: 190.8 kB / 16.25 MB, free: 6.621 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.355/1.355, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.2332/0.2332, allocations: 13.54 MB / 303.6 MB, free: 0.6211 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001256, allocations: 63.91 kB / 367.3 MB, free: 6.781 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1294/0.1307, allocations: 52.68 MB / 420 MB, free: 2.059 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4): time 0.003982/0.1348, allocations: 2.161 MB / 422.1 MB, free: 15.88 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002586/0.1374, allocations: 0.9664 MB / 423.1 MB, free: 14.9 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002918/0.1377, allocations: 15.94 kB / 423.1 MB, free: 14.89 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001507/0.1393, allocations: 0.7232 MB / 423.9 MB, free: 14.16 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001464/0.1395, allocations: 27.72 kB / 423.9 MB, free: 14.13 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.001049/0.1405, allocations: 289.9 kB / 424.2 MB, free: 13.85 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006959/0.1412, allocations: 0.5964 MB / 424.8 MB, free: 13.25 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001145/0.1424, allocations: 0.7766 MB / 425.5 MB, free: 12.47 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002759/0.1427, allocations: 223.2 kB / 425.8 MB, free: 12.25 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002636/0.1429, allocations: 226.8 kB / 426 MB, free: 12.03 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.297e-05/0.143, allocations: 48 kB / 426 MB, free: 11.98 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000206/0.1432, allocations: 67.94 kB / 426.1 MB, free: 11.91 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001975/0.1435, allocations: 139.6 kB / 426.2 MB, free: 11.78 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002864/0.1437, allocations: 234.7 kB / 426.5 MB, free: 11.55 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007043/0.1445, allocations: 0.5606 MB / 427 MB, free: 10.98 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.1445, allocations: 0 / 427 MB, free: 10.98 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.1445, allocations: 0 / 427 MB, free: 10.98 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.057e-05/0.1445, allocations: 0 / 427 MB, free: 10.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: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 0.001037/0.1455, allocations: 0.7638 MB / 427.8 MB, free: 10.17 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.927e-05/0.1456, allocations: 11.89 kB / 427.8 MB, free: 10.16 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001047/0.1457, allocations: 60.19 kB / 427.9 MB, free: 10.1 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004361/0.1461, allocations: 386.8 kB / 428.2 MB, free: 9.684 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.98e-05/0.1462, allocations: 45.69 kB / 428.3 MB, free: 9.641 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.473e-05/0.1463, allocations: 56.38 kB / 428.3 MB, free: 9.586 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009618/0.1472, allocations: 0.6239 MB / 429 MB, free: 8.914 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.778e-05/0.1473, allocations: 3.938 kB / 429 MB, free: 8.91 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.235e-05/0.1473, allocations: 24 kB / 429 MB, free: 8.887 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.634e-05/0.1474, allocations: 16 kB / 429 MB, free: 8.871 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006612/0.148, allocations: 407.6 kB / 429.4 MB, free: 8.473 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00264/0.1507, allocations: 2.591 MB / 432 MB, free: 5.715 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004773/0.1512, allocations: 472.8 kB / 432.4 MB, free: 5.184 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001386/0.1513, allocations: 97.67 kB / 432.5 MB, free: 5.082 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008041/0.1521, allocations: 0.8468 MB / 433.4 MB, free: 4.152 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003131/0.1525, allocations: 139.4 kB / 433.5 MB, free: 4.004 MB / 366.1 MB Notification: Performance of pre-optimization done (n=29): time 2.405e-06/0.1525, allocations: 0 / 433.5 MB, free: 4.004 MB / 366.1 MB Notification: Performance of matching and sorting (n=29): time 0.0005023/0.153, allocations: 265.5 kB / 433.8 MB, free: 3.738 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.569e-05/0.153, allocations: 59.41 kB / 433.8 MB, free: 3.668 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002927/0.1533, allocations: 322 kB / 434.2 MB, free: 3.348 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.738e-05/0.1534, allocations: 33.7 kB / 434.2 MB, free: 3.309 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001734/0.1535, allocations: 256.3 kB / 434.4 MB, free: 3.051 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.15e-05/0.1536, allocations: 67.25 kB / 434.5 MB, free: 2.984 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001515/0.1538, allocations: 142.1 kB / 434.6 MB, free: 2.836 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001718/0.1539, allocations: 346.8 kB / 435 MB, free: 2.488 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001364/0.1541, allocations: 85.08 kB / 435.1 MB, free: 2.406 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002557/0.1543, allocations: 273.4 kB / 435.3 MB, free: 2.062 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000379/0.1547, allocations: 363.4 kB / 435.7 MB, free: 1.625 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.638e-06/0.1547, allocations: 4 kB / 435.7 MB, free: 1.621 MB / 366.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0006157/0.1554, allocations: 400.8 kB / 436.1 MB, free: 1.223 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.56e-05/0.1554, allocations: 8 kB / 436.1 MB, free: 1.215 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.184e-05/0.1554, allocations: 7.938 kB / 436.1 MB, free: 1.207 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.199e-05/0.1554, allocations: 19.92 kB / 436.1 MB, free: 1.188 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001426/0.1556, allocations: 36.48 kB / 436.2 MB, free: 1.152 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.491e-05/0.1556, allocations: 12 kB / 436.2 MB, free: 1.141 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000189/0.1558, allocations: 43.67 kB / 436.2 MB, free: 1.098 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.809e-05/0.1559, allocations: 24 kB / 436.2 MB, free: 1.074 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 55 ($PRE.T1.enableFire,$PRE.T2.enableFire,$PRE.T3.enableFire,$PRE.T4.enableFire,step4.oldActive,$PRE.step4.oldActive,step3.oldActive,$PRE.step3.oldActive,step2.oldActive,$PRE.step2.oldActive,initialStep.oldActive,$PRE.initialStep.oldActive,greaterEqual1.y,timer2.entryTime,$PRE.timer2.entryTime,T4.enableFire,step4.outport_fire,step4.inport_fire,step4.newActive,$PRE.step4.newActive,greaterEqual.y,timer1.entryTime,$PRE.timer1.entryTime,T3.enableFire,step3.inport_fire,step3.newActive,$PRE.step3.newActive,step3.active,T2.enableFire,step2.inport_fire,step2.newActive,$PRE.step2.newActive,step2.active,T1.enableFire,T1.condition,initialStep.inport_fire,initialStep.newActive,$PRE.initialStep.newActive,initialStep.active,$whenCondition1,$whenCondition2,step4.inPort[1].checkOneDelayedTransitionPerLoop,step4.outPort[1].checkOneDelayedTransitionPerLoop,T3.condition,initialStep.connectorNode.node.suspend,initialStep.connectorNode.node.resume,T4.condition,T2.condition,T3.outPort.checkOneDelayedTransitionPerLoop,step2.inPort[1].checkOneDelayedTransitionPerLoop,step3.inPort[1].checkOneDelayedTransitionPerLoop,step4.inPort[1].checkUnaryConnection,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 (61): * Single equations (assignments): 61 * 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.000243/0.1561, allocations: 218.9 kB / 436.4 MB, free: 0.8516 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.097e-05/0.1562, allocations: 43.5 kB / 436.5 MB, free: 0.8086 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003712/0.1565, allocations: 224.8 kB / 436.7 MB, free: 0.5781 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.497e-06/0.1565, allocations: 0 / 436.7 MB, free: 0.5781 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.1566, allocations: 4 kB / 436.7 MB, free: 0.5742 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.1566, allocations: 0 / 436.7 MB, free: 0.5742 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2387/0.3953, allocations: 0.7339 MB / 437.4 MB, free: 58.12 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.519e-06/0.3954, allocations: 0 / 437.4 MB, free: 58.12 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.389e-05/0.3954, allocations: 10.16 kB / 437.5 MB, free: 58.12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.963e-06/0.3955, allocations: 0.5625 kB / 437.5 MB, free: 58.12 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.994e-05/0.3955, allocations: 7.25 kB / 437.5 MB, free: 58.12 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.189e-06/0.3955, allocations: 4.812 kB / 437.5 MB, free: 58.12 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.3955, allocations: 0.8594 kB / 437.5 MB, free: 58.12 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003324/0.3958, allocations: 313.1 kB / 437.8 MB, free: 57.99 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000104/0.3959, allocations: 118.1 kB / 437.9 MB, free: 57.89 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.657e-05/0.396, allocations: 6.688 kB / 437.9 MB, free: 57.89 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001161/0.3961, allocations: 9.797 kB / 437.9 MB, free: 57.89 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.493e-05/0.3962, allocations: 26.47 kB / 437.9 MB, free: 57.89 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.951e-05/0.3962, allocations: 8.656 kB / 437.9 MB, free: 57.89 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001309/0.3964, allocations: 177.5 kB / 438.1 MB, free: 57.82 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3964, allocations: 0 / 438.1 MB, free: 57.82 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004749/0.3968, allocations: 107 kB / 438.2 MB, free: 57.81 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: 27 (initialStep.inport_fire,step3.active,step2.active,$whenCondition2,$whenCondition1,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,T3.enableFire,timer1.entryTime,greaterEqual.y,step4.newActive,step4.oldActive,step4.inport_fire,step4.outport_fire,T4.enableFire,timer2.entryTime,greaterEqual1.y) * Number of discrete states: 4 (initialStep.newActive,step2.newActive,step3.newActive,step4.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.0001681/0.397, allocations: 119.2 kB / 438.3 MB, free: 57.73 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004046/0.3974, allocations: 269.3 kB / 438.6 MB, free: 57.73 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.3974, allocations: 0 / 438.6 MB, free: 57.73 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001105/0.3976, allocations: 87.2 kB / 438.7 MB, free: 57.73 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003115/0.3979, allocations: 34.25 kB / 438.7 MB, free: 57.73 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009731/0.3989, allocations: 0.8037 MB / 439.5 MB, free: 57.26 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002347/0.3991, allocations: 0.8399 MB / 440.4 MB, free: 56.56 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001199/0.3992, allocations: 51.36 kB / 440.4 MB, free: 56.56 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.076e-05/0.3993, allocations: 29.91 kB / 440.4 MB, free: 56.55 MB / 366.1 MB Notification: Performance of SimCode: time 9.52e-07/0.3993, allocations: 0 / 440.4 MB, free: 56.55 MB / 366.1 MB Notification: Performance of Templates: time 0.006295/0.4056, allocations: 2.376 MB / 442.8 MB, free: 56.43 MB / 366.1 MB make -j1 -f Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4.makefile (rm -f Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4.pipe ; mkfifo Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4.pipe ; head -c 1048576 < Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4.pipe >> ../files/Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4.sim & ./Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4.pipe 2>&1)