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.0009691/0.000969, allocations: 100.2 kB / 15.05 MB, free: 1.105 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.001012/0.001013, allocations: 177.3 kB / 15.95 MB, free: 216 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.481/1.481, allocations: 223.2 MB / 239.9 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.2559/0.2559, allocations: 13.56 MB / 304.6 MB, free: 1.488 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004141/0.0004141, allocations: 11.94 kB / 368.8 MB, free: 6.602 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.131/0.1315, allocations: 53.71 MB / 422.5 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4): time 0.2584/0.39, allocations: 1.727 MB / 424.2 MB, free: 41.86 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001606/0.3916, allocations: 0.9168 MB / 425.1 MB, free: 41.74 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001824/0.3918, allocations: 12.72 kB / 425.1 MB, free: 41.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002132/0.3921, allocations: 59.62 kB / 425.2 MB, free: 41.71 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001202/0.3922, allocations: 43.02 kB / 425.2 MB, free: 41.7 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.0009485/0.3931, allocations: 250.6 kB / 425.5 MB, free: 41.7 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005152/0.3937, allocations: 374.8 kB / 425.8 MB, free: 41.68 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001207/0.3949, allocations: 0.9278 MB / 426.8 MB, free: 41.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001826/0.3951, allocations: 167.4 kB / 426.9 MB, free: 41.39 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001565/0.3952, allocations: 159.5 kB / 427.1 MB, free: 41.33 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.068e-05/0.3953, allocations: 17.38 kB / 427.1 MB, free: 41.33 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000114/0.3954, allocations: 32.53 kB / 427.1 MB, free: 41.33 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001072/0.3955, allocations: 95.22 kB / 427.2 MB, free: 41.31 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001055/0.3956, allocations: 99.05 kB / 427.3 MB, free: 41.27 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004438/0.3961, allocations: 368.1 kB / 427.7 MB, free: 41.25 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.3961, allocations: 0 / 427.7 MB, free: 41.25 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.826e-06/0.3961, allocations: 0 / 427.7 MB, free: 41.25 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.123e-05/0.3961, allocations: 2.562 kB / 427.7 MB, free: 41.25 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.0009508/0.3971, allocations: 0.6581 MB / 428.3 MB, free: 40.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.423e-05/0.3971, allocations: 11.22 kB / 428.3 MB, free: 40.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001157/0.3973, allocations: 60.25 kB / 428.4 MB, free: 40.72 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004887/0.3978, allocations: 365.7 kB / 428.8 MB, free: 40.47 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.728e-05/0.3978, allocations: 47.81 kB / 428.8 MB, free: 40.47 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.846e-05/0.3979, allocations: 55.66 kB / 428.9 MB, free: 40.47 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008749/0.3988, allocations: 0.6085 MB / 429.5 MB, free: 40.32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.917e-05/0.3988, allocations: 3.938 kB / 429.5 MB, free: 40.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.142e-05/0.3989, allocations: 25.81 kB / 429.5 MB, free: 40.32 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.806e-05/0.3989, allocations: 15.12 kB / 429.5 MB, free: 40.32 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006077/0.3995, allocations: 399.4 kB / 429.9 MB, free: 40.31 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002361/0.4019, allocations: 2.59 MB / 432.5 MB, free: 38.6 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004571/0.4024, allocations: 472.6 kB / 433 MB, free: 38.26 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006866/0.4031, allocations: 0.8429 MB / 433.8 MB, free: 37.54 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002413/0.4033, allocations: 134.6 kB / 433.9 MB, free: 37.49 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.864e-06/0.4033, allocations: 0 / 433.9 MB, free: 37.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.0004577/0.4038, allocations: 265.4 kB / 434.2 MB, free: 37.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.248e-05/0.4039, allocations: 64.41 kB / 434.3 MB, free: 37.37 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002665/0.4041, allocations: 312.9 kB / 434.6 MB, free: 37.24 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.618e-05/0.4042, allocations: 39.83 kB / 434.6 MB, free: 37.2 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001556/0.4043, allocations: 252.2 kB / 434.8 MB, free: 37.05 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.218e-05/0.4044, allocations: 71 kB / 434.9 MB, free: 37.02 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.6e-05/0.4044, allocations: 13.31 kB / 434.9 MB, free: 37.02 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.918e-05/0.4045, allocations: 352 kB / 435.3 MB, free: 36.7 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001246/0.4047, allocations: 86.64 kB / 435.4 MB, free: 36.69 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000215/0.4049, allocations: 269 kB / 435.6 MB, free: 36.47 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002011/0.4051, allocations: 121.5 kB / 435.7 MB, free: 36.45 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.4051, allocations: 4 kB / 435.7 MB, free: 36.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0005178/0.4056, allocations: 401.9 kB / 436.1 MB, free: 36.36 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.543e-05/0.4057, allocations: 6.562 kB / 436.1 MB, free: 36.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.203e-05/0.4057, allocations: 6.688 kB / 436.1 MB, free: 36.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.447e-05/0.4057, allocations: 10.44 kB / 436.2 MB, free: 36.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000137/0.4058, allocations: 39.3 kB / 436.2 MB, free: 36.35 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.439e-05/0.4059, allocations: 16.91 kB / 436.2 MB, free: 36.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001517/0.406, allocations: 35.22 kB / 436.2 MB, free: 36.33 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.4e-05/0.4061, allocations: 25.53 kB / 436.3 MB, free: 36.33 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.0002051/0.4063, allocations: 234.6 kB / 436.5 MB, free: 36.19 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.667e-05/0.4063, allocations: 27.56 kB / 436.5 MB, free: 36.17 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003291/0.4066, allocations: 226.2 kB / 436.7 MB, free: 36.12 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.96e-06/0.4067, allocations: 3.281 kB / 436.8 MB, free: 36.12 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.7e-06/0.4067, allocations: 0 / 436.8 MB, free: 36.12 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.4067, allocations: 7.219 kB / 436.8 MB, free: 36.11 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007114/0.4074, allocations: 0.7255 MB / 437.5 MB, free: 35.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.4074, allocations: 0 / 437.5 MB, free: 35.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.851e-05/0.4075, allocations: 10.8 kB / 437.5 MB, free: 35.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.407e-06/0.4075, allocations: 3.344 kB / 437.5 MB, free: 35.8 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.631e-05/0.4075, allocations: 3.625 kB / 437.5 MB, free: 35.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.4075, allocations: 6.516 kB / 437.5 MB, free: 35.8 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.4075, allocations: 0.875 kB / 437.5 MB, free: 35.8 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002999/0.4078, allocations: 313.2 kB / 437.8 MB, free: 35.64 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.495e-05/0.4079, allocations: 116.5 kB / 437.9 MB, free: 35.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.521e-05/0.4079, allocations: 9.516 kB / 437.9 MB, free: 35.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.019e-05/0.408, allocations: 6.844 kB / 437.9 MB, free: 35.52 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.672e-05/0.4081, allocations: 25.95 kB / 438 MB, free: 35.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.678e-05/0.4081, allocations: 8.219 kB / 438 MB, free: 35.52 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001433/0.4083, allocations: 173.5 kB / 438.1 MB, free: 35.44 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.4083, allocations: 4 kB / 438.2 MB, free: 35.44 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003823/0.4087, allocations: 103.3 kB / 438.3 MB, free: 35.41 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.0001717/0.4089, allocations: 121 kB / 438.4 MB, free: 35.32 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003819/0.4092, allocations: 252.7 kB / 438.6 MB, free: 35.27 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.4093, allocations: 0 / 438.6 MB, free: 35.27 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001107/0.4094, allocations: 84.69 kB / 438.7 MB, free: 35.24 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000217/0.4096, allocations: 42.94 kB / 438.7 MB, free: 35.22 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009703/0.4106, allocations: 0.7633 MB / 439.5 MB, free: 34.72 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002779/0.4109, allocations: 0.8463 MB / 440.4 MB, free: 34.01 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001202/0.411, allocations: 54.98 kB / 440.4 MB, free: 34 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.833e-05/0.4111, allocations: 30.38 kB / 440.4 MB, free: 33.99 MB / 350.1 MB Notification: Performance of SimCode: time 1.783e-06/0.4111, allocations: 0 / 440.4 MB, free: 33.99 MB / 350.1 MB Notification: Performance of Templates: time 0.006191/0.4173, allocations: 2.179 MB / 442.6 MB, free: 33.79 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: