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.0008103/0.0008146, allocations: 91.69 kB / 15.06 MB, free: 1.098 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.0009756/0.0009757, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.489/1.489, allocations: 223.3 MB / 240 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.2826/0.2826, allocations: 13.56 MB / 304.6 MB, free: 1.523 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00035/0.0003502, allocations: 8 kB / 368.9 MB, free: 6.574 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1402/0.1406, allocations: 53.71 MB / 422.6 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4): time 0.2624/0.403, allocations: 1.728 MB / 424.3 MB, free: 41.98 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001527/0.4046, allocations: 0.9329 MB / 425.2 MB, free: 41.85 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001774/0.4048, allocations: 15.28 kB / 425.2 MB, free: 41.85 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002375/0.4051, allocations: 63.95 kB / 425.3 MB, free: 41.81 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.079e-05/0.4052, allocations: 24.19 kB / 425.3 MB, free: 41.8 MB / 350.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.0007261/0.4059, allocations: 253.5 kB / 425.6 MB, free: 41.79 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005311/0.4064, allocations: 0.5236 MB / 426.1 MB, free: 41.74 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001139/0.4076, allocations: 0.9279 MB / 427 MB, free: 41.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001666/0.4078, allocations: 168.7 kB / 427.2 MB, free: 41.46 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001506/0.4079, allocations: 159.4 kB / 427.4 MB, free: 41.4 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.045e-05/0.408, allocations: 17.59 kB / 427.4 MB, free: 41.4 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001097/0.4081, allocations: 37.12 kB / 427.4 MB, free: 41.4 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.76e-05/0.4082, allocations: 89.2 kB / 427.5 MB, free: 41.38 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.663e-05/0.4083, allocations: 102.6 kB / 427.6 MB, free: 41.33 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003373/0.4086, allocations: 366.8 kB / 428 MB, free: 41.3 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.4086, allocations: 0 / 428 MB, free: 41.3 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.4087, allocations: 2.781 kB / 428 MB, free: 41.3 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.977e-06/0.4087, allocations: 0.6562 kB / 428 MB, free: 41.3 MB / 350.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.0008053/0.4095, allocations: 0.6559 MB / 428.6 MB, free: 40.81 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.564e-05/0.4095, allocations: 16.2 kB / 428.6 MB, free: 40.81 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.994e-05/0.4096, allocations: 60.66 kB / 428.7 MB, free: 40.78 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004842/0.4101, allocations: 359.2 kB / 429 MB, free: 40.54 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.366e-05/0.4102, allocations: 46.53 kB / 429.1 MB, free: 40.54 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.416e-05/0.4103, allocations: 56.25 kB / 429.1 MB, free: 40.54 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001009/0.4113, allocations: 0.6135 MB / 429.8 MB, free: 40.39 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.799e-05/0.4113, allocations: 3.938 kB / 429.8 MB, free: 40.38 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.659e-05/0.4114, allocations: 25.02 kB / 429.8 MB, free: 40.38 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.618e-05/0.4114, allocations: 16.97 kB / 429.8 MB, free: 40.38 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006274/0.412, allocations: 403.2 kB / 430.2 MB, free: 40.37 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002491/0.4145, allocations: 2.589 MB / 432.8 MB, free: 38.67 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004553/0.415, allocations: 471 kB / 433.2 MB, free: 38.33 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001239/0.4151, allocations: 94.3 kB / 433.3 MB, free: 38.31 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006406/0.4158, allocations: 0.8522 MB / 434.2 MB, free: 37.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002439/0.416, allocations: 121.2 kB / 434.3 MB, free: 37.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 2.014e-06/0.4161, allocations: 3.094 kB / 434.3 MB, free: 37.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.0004524/0.4165, allocations: 265.2 kB / 434.6 MB, free: 37.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.214e-05/0.4166, allocations: 57.59 kB / 434.6 MB, free: 37.42 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002399/0.4168, allocations: 322.7 kB / 434.9 MB, free: 37.29 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.269e-05/0.4168, allocations: 39.61 kB / 435 MB, free: 37.25 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001456/0.417, allocations: 254.6 kB / 435.2 MB, free: 37.1 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.783e-05/0.417, allocations: 69.23 kB / 435.3 MB, free: 37.06 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.532e-05/0.4171, allocations: 13.53 kB / 435.3 MB, free: 37.06 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.869e-05/0.4172, allocations: 344.5 kB / 435.6 MB, free: 36.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001624/0.4173, allocations: 82.83 kB / 435.7 MB, free: 36.74 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002625/0.4176, allocations: 270.2 kB / 436 MB, free: 36.52 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001757/0.4178, allocations: 120.4 kB / 436.1 MB, free: 36.51 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.4178, allocations: 7 kB / 436.1 MB, free: 36.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0005222/0.4183, allocations: 403.2 kB / 436.5 MB, free: 36.41 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.519e-05/0.4184, allocations: 5.938 kB / 436.5 MB, free: 36.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.205e-05/0.4184, allocations: 5.969 kB / 436.5 MB, free: 36.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.369e-05/0.4184, allocations: 13.34 kB / 436.5 MB, free: 36.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001317/0.4186, allocations: 40.8 kB / 436.6 MB, free: 36.4 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.744e-05/0.4186, allocations: 13.09 kB / 436.6 MB, free: 36.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001574/0.4188, allocations: 42.83 kB / 436.6 MB, free: 36.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.753e-05/0.4188, allocations: 20.81 kB / 436.6 MB, free: 36.38 MB / 350.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,$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,step2.active,$PRE.step2.newActive,step2.newActive,step2.inport_fire,T2.enableFire,step3.active,$PRE.step3.newActive,step3.newActive,step3.inport_fire,T3.enableFire,$PRE.timer1.entryTime,timer1.entryTime,greaterEqual.y,$PRE.step4.newActive,step4.newActive,step4.inport_fire,step4.outport_fire,T4.enableFire,$PRE.timer2.entryTime,timer2.entryTime,greaterEqual1.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002302/0.419, allocations: 232.2 kB / 436.9 MB, free: 36.24 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.763e-05/0.4191, allocations: 28.94 kB / 436.9 MB, free: 36.22 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003519/0.4194, allocations: 221.4 kB / 437.1 MB, free: 36.17 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.913e-06/0.4195, allocations: 5.281 kB / 437.1 MB, free: 36.17 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.154e-06/0.4195, allocations: 0 / 437.1 MB, free: 36.17 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/0.4195, allocations: 7.281 kB / 437.1 MB, free: 36.17 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008902/0.4204, allocations: 0.7335 MB / 437.9 MB, free: 35.85 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.4204, allocations: 0 / 437.9 MB, free: 35.85 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.097e-05/0.4204, allocations: 8.594 kB / 437.9 MB, free: 35.85 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.507e-06/0.4204, allocations: 3.375 kB / 437.9 MB, free: 35.85 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.051e-05/0.4205, allocations: 6.328 kB / 437.9 MB, free: 35.85 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.4205, allocations: 3.438 kB / 437.9 MB, free: 35.85 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.4205, allocations: 0 / 437.9 MB, free: 35.85 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003341/0.4208, allocations: 311.1 kB / 438.2 MB, free: 35.69 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.22e-05/0.4209, allocations: 122 kB / 438.3 MB, free: 35.57 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.638e-05/0.421, allocations: 14.3 kB / 438.3 MB, free: 35.56 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.679e-05/0.4211, allocations: 7.156 kB / 438.3 MB, free: 35.56 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.93e-05/0.4212, allocations: 22.72 kB / 438.3 MB, free: 35.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.594e-05/0.4212, allocations: 9.641 kB / 438.4 MB, free: 35.55 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001366/0.4213, allocations: 173.5 kB / 438.5 MB, free: 35.45 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4213, allocations: 4 kB / 438.5 MB, free: 35.44 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004021/0.4217, allocations: 108.2 kB / 438.6 MB, free: 35.4 MB / 350.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 (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.0001784/0.4219, allocations: 119.6 kB / 438.8 MB, free: 35.3 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004063/0.4223, allocations: 248.6 kB / 439 MB, free: 35.23 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.4224, allocations: 0 / 439 MB, free: 35.23 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001389/0.4225, allocations: 92.86 kB / 439.1 MB, free: 35.2 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003106/0.4228, allocations: 34.94 kB / 439.1 MB, free: 35.18 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000957/0.4238, allocations: 0.7601 MB / 439.9 MB, free: 34.69 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002861/0.4241, allocations: 0.8372 MB / 440.7 MB, free: 33.98 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001322/0.4242, allocations: 58 kB / 440.8 MB, free: 33.97 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.188e-05/0.4243, allocations: 29.95 kB / 440.8 MB, free: 33.96 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.4243, allocations: 0 / 440.8 MB, free: 33.96 MB / 350.1 MB Notification: Performance of Templates: time 0.006835/0.4311, allocations: 2.183 MB / 443 MB, free: 33.77 MB / 350.1 MB make -j1 -f Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: