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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001476/0.001476, allocations: 174.6 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.277/1.277, allocations: 221.4 MB / 234.6 MB, free: 14.45 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007938/0.0007939, allocations: 88.48 kB / 285.6 MB, free: 12.98 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.08967/0.08967, allocations: 13.57 MB / 350.1 MB, free: 12.43 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 2.92e-05/2.923e-05, allocations: 4 kB / 411.6 MB, free: 55.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09471/0.09475, allocations: 53.71 MB / 465.3 MB, free: 2.004 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3471/0.4419, allocations: 77.39 MB / 0.53 GB, free: 3.328 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001339/0.442, allocations: 47.05 kB / 0.5301 GB, free: 3.309 MB / 346.7 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 FrontEnd - DAE generated: time 0.01533/0.4574, allocations: 6.84 MB / 0.5367 GB, free: 13.49 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.273e-06/0.4574, allocations: 0 / 0.5367 GB, free: 13.49 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.525e-05/0.4575, allocations: 20 kB / 0.5368 GB, free: 13.47 MB / 362.7 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.0007331/0.4582, allocations: 0.6184 MB / 0.5374 GB, free: 12.85 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.071e-05/0.4582, allocations: 12.03 kB / 0.5374 GB, free: 12.84 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001048/0.4584, allocations: 59.3 kB / 0.5374 GB, free: 12.78 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005317/0.4589, allocations: 365.3 kB / 0.5378 GB, free: 12.43 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.149e-05/0.459, allocations: 49.25 kB / 0.5378 GB, free: 12.39 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.468e-05/0.459, allocations: 56.88 kB / 0.5379 GB, free: 12.36 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009184/0.46, allocations: 0.6408 MB / 0.5385 GB, free: 11.82 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.643e-05/0.46, allocations: 4 kB / 0.5385 GB, free: 11.82 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.395e-05/0.46, allocations: 27.98 kB / 0.5385 GB, free: 11.79 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.292e-05/0.4601, allocations: 19.95 kB / 0.5385 GB, free: 11.77 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006345/0.4607, allocations: 396.5 kB / 0.5389 GB, free: 11.39 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00258/0.4633, allocations: 2.541 MB / 0.5414 GB, free: 8.68 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004315/0.4638, allocations: 457.3 kB / 0.5418 GB, free: 8.16 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001284/0.4639, allocations: 94.22 kB / 0.5419 GB, free: 8.062 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007624/0.4647, allocations: 0.8629 MB / 0.5428 GB, free: 7.113 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001933/0.4649, allocations: 119.6 kB / 0.5429 GB, free: 6.984 MB / 362.7 MB Notification: Performance of pre-optimization done (n=29): time 2.154e-06/0.4649, allocations: 0 / 0.5429 GB, free: 6.984 MB / 362.7 MB Notification: Performance of matching and sorting (n=29): time 0.0003305/0.4652, allocations: 203 kB / 0.5431 GB, free: 6.781 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.028e-05/0.4653, allocations: 67.34 kB / 0.5431 GB, free: 6.703 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000243/0.4655, allocations: 278.6 kB / 0.5434 GB, free: 6.43 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.681e-05/0.4656, allocations: 37.7 kB / 0.5435 GB, free: 6.387 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001747/0.4658, allocations: 256.5 kB / 0.5437 GB, free: 6.129 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.276e-05/0.4658, allocations: 63.3 kB / 0.5438 GB, free: 6.066 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.37e-05/0.4658, allocations: 8 kB / 0.5438 GB, free: 6.059 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000135/0.466, allocations: 342.8 kB / 0.5441 GB, free: 5.715 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001464/0.4661, allocations: 81.11 kB / 0.5442 GB, free: 5.637 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002498/0.4664, allocations: 269.4 kB / 0.5444 GB, free: 5.289 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001734/0.4666, allocations: 115.9 kB / 0.5445 GB, free: 5.176 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.586e-06/0.4666, allocations: 0 / 0.5445 GB, free: 5.176 MB / 362.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0005072/0.4671, allocations: 401.3 kB / 0.5449 GB, free: 4.777 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.695e-05/0.4671, allocations: 8 kB / 0.5449 GB, free: 4.77 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.028e-05/0.4671, allocations: 8.062 kB / 0.5449 GB, free: 4.762 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.886e-05/0.4672, allocations: 12 kB / 0.5449 GB, free: 4.75 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001206/0.4673, allocations: 43.84 kB / 0.545 GB, free: 4.707 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.438e-05/0.4673, allocations: 11.94 kB / 0.545 GB, free: 4.695 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001403/0.4675, allocations: 27.84 kB / 0.545 GB, free: 4.668 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.149e-05/0.4675, allocations: 20 kB / 0.545 GB, free: 4.648 MB / 362.7 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,$PRE.step4.oldActive,step4.oldActive,$PRE.step3.oldActive,step3.oldActive,$PRE.step2.oldActive,step2.oldActive,$PRE.initialStep.oldActive,initialStep.oldActive,$whenCondition2,$whenCondition1,initialStep.active,$PRE.initialStep.newActive,initialStep.newActive,initialStep.inport_fire,T1.condition,T1.enableFire,$PRE.step2.newActive,step2.newActive,step2.inport_fire,step2.activePort,T2.enableFire,T2.conditionPort,$PRE.step3.newActive,step3.newActive,step3.inport_fire,step3.activePort,T3.enableFire,$PRE.timer1.entryTime,timer1.entryTime,$PRE.step4.newActive,step4.newActive,step4.inport_fire,step4.outport_fire,T4.enableFire,T4.conditionPort,$PRE.timer2.entryTime,timer2.entryTime,step3.outPort[1].checkOneDelayedTransitionPerLoop,step4.outPort[1].checkOneDelayedTransitionPerLoop,initialStep.connectorNode.node.resume,initialStep.connectorNode.node.suspend,T3.condition,step4.inPort[1].checkUnaryConnection,T3.outPort.checkOneDelayedTransitionPerLoop,initialStep.outPort[1].checkOneDelayedTransitionPerLoop,step2.outPort[1].checkOneDelayedTransitionPerLoop,step3.inPort[1].checkUnaryConnection,step2.inPort[1].checkUnaryConnection,initialStep.inPort[1].checkUnaryConnection,T4.condition,T2.condition) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000124/0.4676, allocations: 166 kB / 0.5452 GB, free: 4.477 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.134e-05/0.4677, allocations: 31.58 kB / 0.5452 GB, free: 4.445 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003413/0.468, allocations: 229.2 kB / 0.5454 GB, free: 4.211 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/0.468, allocations: 4 kB / 0.5455 GB, free: 4.207 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.468, allocations: 0 / 0.5455 GB, free: 4.207 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.509e-06/0.468, allocations: 0 / 0.5455 GB, free: 4.207 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007817/0.4688, allocations: 0.7212 MB / 0.5462 GB, free: 3.43 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.4688, allocations: 8 kB / 0.5462 GB, free: 3.422 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.09e-05/0.4689, allocations: 7.938 kB / 0.5462 GB, free: 3.414 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.4689, allocations: 0 / 0.5462 GB, free: 3.414 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.547e-05/0.4689, allocations: 11.94 kB / 0.5462 GB, free: 3.402 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.205e-06/0.4689, allocations: 3.984 kB / 0.5462 GB, free: 3.398 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.4689, allocations: 0 / 0.5462 GB, free: 3.398 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002901/0.4692, allocations: 303.6 kB / 0.5465 GB, free: 3.086 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.571e-05/0.4693, allocations: 120.7 kB / 0.5466 GB, free: 2.949 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.071e-05/0.4694, allocations: 12 kB / 0.5466 GB, free: 2.938 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.745e-05/0.4695, allocations: 4 kB / 0.5466 GB, free: 2.934 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.864e-05/0.4695, allocations: 23.95 kB / 0.5466 GB, free: 2.91 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.583e-05/0.4696, allocations: 12 kB / 0.5466 GB, free: 2.898 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001316/0.4697, allocations: 171.1 kB / 0.5468 GB, free: 2.734 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4697, allocations: 0 / 0.5468 GB, free: 2.734 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003367/0.4701, allocations: 68 kB / 0.5469 GB, free: 2.668 MB / 362.7 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.activePort,step2.activePort,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,T1.condition,T1.enableFire,step2.newActive,step2.oldActive,step2.inport_fire,T2.enableFire,T2.conditionPort,step3.newActive,step3.oldActive,step3.inport_fire,T3.enableFire,timer1.entryTime,step4.newActive,step4.oldActive,step4.inport_fire,step4.outport_fire,T4.enableFire,T4.conditionPort,timer2.entryTime) * Number of discrete states: 4 (initialStep.newActive,step2.newActive,step3.newActive,step4.newActive) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001836/0.4702, allocations: 125.4 kB / 0.547 GB, free: 2.535 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003513/0.4706, allocations: 241.2 kB / 0.5472 GB, free: 2.301 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.4706, allocations: 0 / 0.5472 GB, free: 2.301 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001242/0.4707, allocations: 91.86 kB / 0.5473 GB, free: 2.211 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002017/0.471, allocations: 36.5 kB / 0.5473 GB, free: 2.172 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007133/0.4717, allocations: 467.8 kB / 0.5478 GB, free: 1.691 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003812/0.4721, allocations: 0.846 MB / 0.5486 GB, free: 0.8203 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001269/0.4722, allocations: 51.25 kB / 0.5487 GB, free: 0.7695 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.998e-05/0.4723, allocations: 31.42 kB / 0.5487 GB, free: 0.7383 MB / 362.7 MB Notification: Performance of SimCode: time 4.61e-07/0.4723, allocations: 0 / 0.5487 GB, free: 0.7383 MB / 362.7 MB Notification: Performance of Templates: time 0.005995/0.4783, allocations: 2.188 MB / 0.5508 GB, free: 14.57 MB / 378.7 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)