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.001831/0.001831, 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.001869/0.001869, 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.61/1.61, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.3169/0.3169, allocations: 13.54 MB / 303.9 MB, free: 0.5977 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 59.91 kB / 367.8 MB, free: 6.449 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1442/0.1455, allocations: 52.69 MB / 420.5 MB, free: 1.723 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4): time 0.003629/0.1492, allocations: 2.122 MB / 422.6 MB, free: 15.58 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001671/0.1509, allocations: 0.9779 MB / 423.6 MB, free: 14.6 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001599/0.1511, allocations: 15.94 kB / 423.6 MB, free: 14.58 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001448/0.1525, allocations: 0.7925 MB / 424.4 MB, free: 13.79 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001065/0.1527, allocations: 47.47 kB / 424.5 MB, free: 13.74 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.0008054/0.1535, allocations: 328.5 kB / 424.8 MB, free: 13.42 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005891/0.1541, allocations: 0.5887 MB / 425.4 MB, free: 12.83 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009349/0.155, allocations: 0.7337 MB / 426.1 MB, free: 12.09 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002324/0.1553, allocations: 231.2 kB / 426.3 MB, free: 11.86 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000236/0.1555, allocations: 218.8 kB / 426.5 MB, free: 11.65 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.706e-05/0.1556, allocations: 48 kB / 426.6 MB, free: 11.6 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001456/0.1557, allocations: 67.92 kB / 426.7 MB, free: 11.54 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001247/0.1559, allocations: 135.6 kB / 426.8 MB, free: 11.4 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001951/0.1561, allocations: 230.7 kB / 427 MB, free: 11.18 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005815/0.1566, allocations: 0.5645 MB / 427.6 MB, free: 10.61 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.1567, allocations: 0 / 427.6 MB, free: 10.61 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.1567, allocations: 3.938 kB / 427.6 MB, free: 10.61 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.656e-06/0.1567, allocations: 0 / 427.6 MB, free: 10.61 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.0009405/0.1576, allocations: 0.7677 MB / 428.4 MB, free: 9.789 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.859e-05/0.1577, allocations: 15.89 kB / 428.4 MB, free: 9.773 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001068/0.1578, allocations: 60.19 kB / 428.4 MB, free: 9.715 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004476/0.1582, allocations: 371.1 kB / 428.8 MB, free: 9.312 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.132e-05/0.1583, allocations: 49.62 kB / 428.8 MB, free: 9.266 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.703e-05/0.1584, allocations: 56.38 kB / 428.9 MB, free: 9.211 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009082/0.1593, allocations: 0.6161 MB / 429.5 MB, free: 8.547 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.514e-05/0.1593, allocations: 3.938 kB / 429.5 MB, free: 8.543 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.615e-05/0.1594, allocations: 24 kB / 429.5 MB, free: 8.52 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.947e-05/0.1594, allocations: 16 kB / 429.6 MB, free: 8.504 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006678/0.1601, allocations: 411.6 kB / 430 MB, free: 8.098 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002723/0.1628, allocations: 2.591 MB / 432.5 MB, free: 5.34 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004504/0.1633, allocations: 465.2 kB / 433 MB, free: 4.812 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001373/0.1634, allocations: 105.7 kB / 433.1 MB, free: 4.703 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007739/0.1642, allocations: 0.8546 MB / 434 MB, free: 3.766 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002869/0.1645, allocations: 127.4 kB / 434.1 MB, free: 3.629 MB / 366.1 MB Notification: Performance of pre-optimization done (n=29): time 2.254e-06/0.1645, allocations: 0 / 434.1 MB, free: 3.629 MB / 366.1 MB Notification: Performance of matching and sorting (n=29): time 0.0005124/0.165, allocations: 257.6 kB / 434.3 MB, free: 3.371 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.258e-05/0.1651, allocations: 63.33 kB / 434.4 MB, free: 3.297 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003862/0.1655, allocations: 322 kB / 434.7 MB, free: 2.977 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.416e-05/0.1655, allocations: 37.7 kB / 434.7 MB, free: 2.934 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001629/0.1657, allocations: 256.3 kB / 435 MB, free: 2.676 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.727e-05/0.1658, allocations: 71.23 kB / 435.1 MB, free: 2.605 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001487/0.1659, allocations: 134.1 kB / 435.2 MB, free: 2.465 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001321/0.1661, allocations: 342.8 kB / 435.5 MB, free: 2.121 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001447/0.1662, allocations: 89.08 kB / 435.6 MB, free: 2.035 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002659/0.1665, allocations: 273.4 kB / 435.9 MB, free: 1.691 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004146/0.1669, allocations: 359.4 kB / 436.2 MB, free: 1.258 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.881e-06/0.1669, allocations: 4 kB / 436.2 MB, free: 1.254 MB / 366.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0005983/0.1675, allocations: 400.6 kB / 436.6 MB, free: 0.8555 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/0.1675, allocations: 8.812 kB / 436.6 MB, free: 0.8477 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.131e-05/0.1676, allocations: 8 kB / 436.6 MB, free: 0.8398 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.503e-05/0.1676, allocations: 15.94 kB / 436.7 MB, free: 0.8242 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001176/0.1677, allocations: 43.8 kB / 436.7 MB, free: 0.7812 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.429e-05/0.1677, allocations: 11.98 kB / 436.7 MB, free: 0.7695 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001521/0.1679, allocations: 35.69 kB / 436.8 MB, free: 0.7344 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.482e-05/0.1679, allocations: 24 kB / 436.8 MB, free: 0.7109 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.0002437/0.1682, allocations: 226.9 kB / 437 MB, free: 488 kB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.575e-05/0.1682, allocations: 31.56 kB / 437 MB, free: 456 kB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003886/0.1686, allocations: 237.8 kB / 437.3 MB, free: 208 kB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.72e-06/0.1686, allocations: 7.938 kB / 437.3 MB, free: 200 kB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.1687, allocations: 0 / 437.3 MB, free: 200 kB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.113e-06/0.1687, allocations: 3.984 kB / 437.3 MB, free: 196 kB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2032/0.3719, allocations: 0.7226 MB / 438 MB, free: 57.86 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.3719, allocations: 1.344 kB / 438 MB, free: 57.86 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.506e-05/0.372, allocations: 10.88 kB / 438 MB, free: 57.86 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.067e-06/0.372, allocations: 0 / 438 MB, free: 57.86 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.716e-05/0.372, allocations: 5.562 kB / 438 MB, free: 57.86 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.743e-06/0.372, allocations: 7.719 kB / 438 MB, free: 57.86 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.3721, allocations: 0 / 438 MB, free: 57.86 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002847/0.3723, allocations: 312.6 kB / 438.3 MB, free: 57.73 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.252e-05/0.3724, allocations: 123.5 kB / 438.4 MB, free: 57.64 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.575e-05/0.3725, allocations: 7.75 kB / 438.5 MB, free: 57.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001237/0.3726, allocations: 8.75 kB / 438.5 MB, free: 57.64 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.3e-05/0.3727, allocations: 22.12 kB / 438.5 MB, free: 57.64 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.66e-05/0.3727, allocations: 9.328 kB / 438.5 MB, free: 57.64 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001133/0.3728, allocations: 175.1 kB / 438.7 MB, free: 57.56 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3728, allocations: 3.188 kB / 438.7 MB, free: 57.56 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004468/0.3733, allocations: 105 kB / 438.8 MB, free: 57.56 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.0001448/0.3734, allocations: 112.1 kB / 438.9 MB, free: 57.47 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003908/0.3738, allocations: 269.5 kB / 439.1 MB, free: 57.47 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.3738, allocations: 0 / 439.1 MB, free: 57.47 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001117/0.374, allocations: 93.41 kB / 439.2 MB, free: 57.47 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003074/0.3743, allocations: 39.05 kB / 439.3 MB, free: 57.47 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000847/0.3751, allocations: 0.6575 MB / 439.9 MB, free: 57.16 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002258/0.3754, allocations: 0.8403 MB / 440.8 MB, free: 56.46 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001189/0.3755, allocations: 49.52 kB / 440.8 MB, free: 56.46 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.869e-05/0.3756, allocations: 31.91 kB / 440.9 MB, free: 56.45 MB / 366.1 MB Notification: Performance of SimCode: time 3.7e-07/0.3756, allocations: 3.219 kB / 440.9 MB, free: 56.45 MB / 366.1 MB Notification: Performance of Templates: time 0.006013/0.3816, allocations: 2.437 MB / 443.3 MB, free: 56.33 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)