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.001209/0.00121, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001597/0.001597, allocations: 189.9 kB / 16.14 MB, free: 6.711 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.546/1.546, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.2245/0.2245, allocations: 13.54 MB / 303.5 MB, free: 0.6836 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001902/0.001902, allocations: 55.91 kB / 367.1 MB, free: 6.969 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1494/0.1513, allocations: 52.69 MB / 419.8 MB, free: 2.242 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4): time 0.003757/0.1551, allocations: 2.16 MB / 422 MB, free: 64 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002294/0.1575, allocations: 0.9665 MB / 422.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004591/0.158, allocations: 19.88 kB / 422.9 MB, free: 15.07 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001494/0.1595, allocations: 0.7233 MB / 423.7 MB, free: 14.34 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002099/0.1597, allocations: 23.78 kB / 423.7 MB, free: 14.32 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.001011/0.1607, allocations: 291.1 kB / 424 MB, free: 14.04 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000548/0.1613, allocations: 0.5535 MB / 424.5 MB, free: 13.48 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008899/0.1622, allocations: 0.6867 MB / 425.2 MB, free: 12.79 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002016/0.1624, allocations: 211.1 kB / 425.4 MB, free: 12.58 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000198/0.1626, allocations: 214.9 kB / 425.6 MB, free: 12.37 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.781e-05/0.1627, allocations: 43.94 kB / 425.7 MB, free: 12.33 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001282/0.1628, allocations: 52 kB / 425.7 MB, free: 12.28 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001264/0.163, allocations: 123.6 kB / 425.8 MB, free: 12.16 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002/0.1632, allocations: 230.5 kB / 426.1 MB, free: 11.93 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000501/0.1637, allocations: 498.4 kB / 426.6 MB, free: 11.44 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.1637, allocations: 4 kB / 426.6 MB, free: 11.44 MB / 366.1 MB Notification: Performance of FrontEnd: time 8.92e-07/0.1637, allocations: 0 / 426.6 MB, free: 11.44 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.091e-05/0.1637, allocations: 4 kB / 426.6 MB, free: 11.43 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.001077/0.1648, allocations: 0.7522 MB / 427.3 MB, free: 10.63 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.868e-05/0.1649, allocations: 12.02 kB / 427.3 MB, free: 10.62 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001093/0.165, allocations: 64.19 kB / 427.4 MB, free: 10.56 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004712/0.1654, allocations: 366.9 kB / 427.8 MB, free: 10.16 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.123e-05/0.1655, allocations: 49.62 kB / 427.8 MB, free: 10.11 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.063e-05/0.1656, allocations: 60.38 kB / 427.9 MB, free: 10.05 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009459/0.1665, allocations: 0.62 MB / 428.5 MB, free: 9.387 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.596e-05/0.1666, allocations: 0 / 428.5 MB, free: 9.387 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.565e-05/0.1666, allocations: 31.98 kB / 428.5 MB, free: 9.355 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.554e-05/0.1667, allocations: 12 kB / 428.5 MB, free: 9.344 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006479/0.1673, allocations: 411.6 kB / 428.9 MB, free: 8.941 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002696/0.17, allocations: 2.587 MB / 431.5 MB, free: 6.188 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004448/0.1705, allocations: 469.2 kB / 432 MB, free: 5.656 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001372/0.1706, allocations: 97.69 kB / 432.1 MB, free: 5.555 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007627/0.1714, allocations: 0.8429 MB / 432.9 MB, free: 4.629 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002852/0.1717, allocations: 135.4 kB / 433 MB, free: 4.484 MB / 366.1 MB Notification: Performance of pre-optimization done (n=29): time 1.883e-06/0.1717, allocations: 8 kB / 433 MB, free: 4.477 MB / 366.1 MB Notification: Performance of matching and sorting (n=29): time 0.0004563/0.1722, allocations: 265.6 kB / 433.3 MB, free: 4.211 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.6e-05/0.1722, allocations: 55.41 kB / 433.4 MB, free: 4.145 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002945/0.1725, allocations: 318 kB / 433.7 MB, free: 3.828 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.006e-05/0.1726, allocations: 37.7 kB / 433.7 MB, free: 3.785 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001694/0.1727, allocations: 252.3 kB / 434 MB, free: 3.531 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.877e-05/0.1728, allocations: 67.23 kB / 434 MB, free: 3.465 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001478/0.1729, allocations: 146.1 kB / 434.2 MB, free: 3.312 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000158/0.1731, allocations: 342.8 kB / 434.5 MB, free: 2.969 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001469/0.1733, allocations: 92.95 kB / 434.6 MB, free: 2.879 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002817/0.1736, allocations: 269.5 kB / 434.9 MB, free: 2.539 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005125/0.1741, allocations: 367.3 kB / 435.2 MB, free: 2.098 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.1741, allocations: 4 kB / 435.2 MB, free: 2.094 MB / 366.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0005575/0.1746, allocations: 405.2 kB / 435.6 MB, free: 1.691 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.53e-05/0.1747, allocations: 8 kB / 435.6 MB, free: 1.684 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.191e-05/0.1747, allocations: 8 kB / 435.6 MB, free: 1.676 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.141e-05/0.1747, allocations: 8 kB / 435.6 MB, free: 1.668 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000135/0.1749, allocations: 35.86 kB / 435.7 MB, free: 1.633 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.768e-05/0.1749, allocations: 23.86 kB / 435.7 MB, free: 1.609 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001583/0.1751, allocations: 35.69 kB / 435.7 MB, free: 1.574 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.869e-05/0.1751, allocations: 24 kB / 435.8 MB, free: 1.551 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.00025/0.1754, allocations: 231 kB / 436 MB, free: 1.316 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.601e-05/0.1754, allocations: 31.56 kB / 436 MB, free: 1.285 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003651/0.1758, allocations: 220.8 kB / 436.2 MB, free: 1.059 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.284e-06/0.1758, allocations: 7.984 kB / 436.2 MB, free: 1.051 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.1758, allocations: 0 / 436.2 MB, free: 1.051 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.1758, allocations: 0 / 436.2 MB, free: 1.051 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00084/0.1767, allocations: 0.7379 MB / 437 MB, free: 264 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.1767, allocations: 0 / 437 MB, free: 264 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.154e-05/0.1767, allocations: 8 kB / 437 MB, free: 256 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.43e-06/0.1767, allocations: 4 kB / 437 MB, free: 252 kB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.408e-05/0.1768, allocations: 3.984 kB / 437 MB, free: 248 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.387e-06/0.1768, allocations: 4 kB / 437 MB, free: 244 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.1768, allocations: 0 / 437 MB, free: 244 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2355/0.4122, allocations: 315.5 kB / 437.3 MB, free: 58.21 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001525/0.4124, allocations: 114.8 kB / 437.4 MB, free: 58.12 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.819e-05/0.4125, allocations: 7.156 kB / 437.4 MB, free: 58.12 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001322/0.4126, allocations: 10.11 kB / 437.4 MB, free: 58.12 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001083/0.4128, allocations: 21.25 kB / 437.4 MB, free: 58.12 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.063e-05/0.4128, allocations: 7.5 kB / 437.5 MB, free: 58.12 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001645/0.413, allocations: 178.1 kB / 437.6 MB, free: 58.04 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.413, allocations: 0 / 437.6 MB, free: 58.04 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005665/0.4135, allocations: 109.9 kB / 437.7 MB, free: 58.04 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.0001852/0.4137, allocations: 116.2 kB / 437.8 MB, free: 57.95 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004029/0.4141, allocations: 254.1 kB / 438.1 MB, free: 57.95 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.4142, allocations: 6.594 kB / 438.1 MB, free: 57.95 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001208/0.4143, allocations: 93.34 kB / 438.2 MB, free: 57.95 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003257/0.4146, allocations: 31.92 kB / 438.2 MB, free: 57.95 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009875/0.4156, allocations: 0.809 MB / 439 MB, free: 57.49 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002393/0.4159, allocations: 0.8346 MB / 439.9 MB, free: 56.8 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001298/0.416, allocations: 59.89 kB / 439.9 MB, free: 56.79 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.32e-05/0.4161, allocations: 31.5 kB / 440 MB, free: 56.79 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.4161, allocations: 3.719 kB / 440 MB, free: 56.79 MB / 366.1 MB Notification: Performance of Templates: time 0.005789/0.4219, allocations: 2.262 MB / 442.2 MB, free: 56.68 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)