Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3.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_Variant3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3") translateModel(Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009528/0.0009529, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.009327/0.009328, allocations: 170.7 kB / 16.26 MB, free: 6.676 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.611/1.611, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.2931/0.2931, allocations: 13.56 MB / 305 MB, free: 1.457 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003136/0.0003136, allocations: 8 kB / 369.5 MB, free: 6.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1314/0.1318, allocations: 53.7 MB / 423.2 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3): time 0.2586/0.3904, allocations: 1.561 MB / 424.7 MB, free: 42.26 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001402/0.3918, allocations: 0.8194 MB / 425.6 MB, free: 42.16 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001369/0.392, allocations: 14.78 kB / 425.6 MB, free: 42.16 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000228/0.3922, allocations: 54.59 kB / 425.6 MB, free: 42.13 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.742e-05/0.3923, allocations: 23.5 kB / 425.6 MB, free: 42.12 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.0006091/0.3929, allocations: 217 kB / 425.9 MB, free: 42.12 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004123/0.3933, allocations: 428.1 kB / 426.3 MB, free: 42.08 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009065/0.3943, allocations: 0.7986 MB / 427.1 MB, free: 41.83 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001244/0.3944, allocations: 131.1 kB / 427.2 MB, free: 41.8 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001233/0.3945, allocations: 127.5 kB / 427.3 MB, free: 41.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.38e-05/0.3946, allocations: 15.31 kB / 427.3 MB, free: 41.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.832e-05/0.3947, allocations: 28.23 kB / 427.4 MB, free: 41.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.998e-05/0.3947, allocations: 78.73 kB / 427.4 MB, free: 41.74 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001257/0.3949, allocations: 173.7 kB / 427.6 MB, free: 41.65 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003283/0.3952, allocations: 362.5 kB / 428 MB, free: 41.58 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.3952, allocations: 3.938 kB / 428 MB, free: 41.58 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.3952, allocations: 0 / 428 MB, free: 41.58 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.121e-06/0.3952, allocations: 0 / 428 MB, free: 41.58 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: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.00072/0.396, allocations: 0.6025 MB / 428.6 MB, free: 41.1 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.689e-05/0.396, allocations: 9.094 kB / 428.6 MB, free: 41.1 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.865e-05/0.3961, allocations: 43.53 kB / 428.6 MB, free: 41.08 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003171/0.3964, allocations: 316 kB / 428.9 MB, free: 40.85 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.139e-05/0.3965, allocations: 58.23 kB / 429 MB, free: 40.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.58e-05/0.3966, allocations: 43.25 kB / 429 MB, free: 40.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007282/0.3973, allocations: 473.9 kB / 429.5 MB, free: 40.7 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.875e-05/0.3973, allocations: 6.625 kB / 429.5 MB, free: 40.7 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.472e-05/0.3974, allocations: 21.19 kB / 429.5 MB, free: 40.7 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.591e-05/0.3974, allocations: 9.625 kB / 429.5 MB, free: 40.7 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004772/0.3979, allocations: 300.4 kB / 429.8 MB, free: 40.69 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001728/0.3996, allocations: 1.93 MB / 431.8 MB, free: 39.38 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003272/0.4, allocations: 419.8 kB / 432.2 MB, free: 39.04 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001109/0.4001, allocations: 80.39 kB / 432.2 MB, free: 39.03 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005688/0.4007, allocations: 0.7221 MB / 433 MB, free: 38.4 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002547/0.4009, allocations: 171.5 kB / 433.1 MB, free: 38.29 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.693e-06/0.401, allocations: 0 / 433.1 MB, free: 38.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004265/0.4014, allocations: 267.9 kB / 433.4 MB, free: 38.21 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.642e-05/0.4015, allocations: 167 kB / 433.6 MB, free: 38.02 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001882/0.4017, allocations: 254.4 kB / 433.8 MB, free: 37.9 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.655e-05/0.4017, allocations: 33.34 kB / 433.8 MB, free: 37.87 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001171/0.4018, allocations: 201.5 kB / 434 MB, free: 37.74 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.394e-05/0.4019, allocations: 54.41 kB / 434.1 MB, free: 37.71 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.75e-05/0.402, allocations: 82.14 kB / 434.2 MB, free: 37.69 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.667e-05/0.4021, allocations: 333.2 kB / 434.5 MB, free: 37.38 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001216/0.4022, allocations: 72.92 kB / 434.6 MB, free: 37.38 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001874/0.4024, allocations: 219.5 kB / 434.8 MB, free: 37.2 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002949/0.4027, allocations: 342.8 kB / 435.1 MB, free: 36.94 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.4027, allocations: 3.938 kB / 435.1 MB, free: 36.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0004479/0.4031, allocations: 365 kB / 435.5 MB, free: 36.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.783e-05/0.4032, allocations: 32.02 kB / 435.5 MB, free: 36.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.628e-06/0.4032, allocations: 9.922 kB / 435.5 MB, free: 36.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.968e-05/0.4032, allocations: 6.156 kB / 435.5 MB, free: 36.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.038e-05/0.4033, allocations: 31.14 kB / 435.6 MB, free: 36.78 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.092e-05/0.4033, allocations: 6.281 kB / 435.6 MB, free: 36.78 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001489/0.4035, allocations: 39.84 kB / 435.6 MB, free: 36.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.804e-05/0.4035, allocations: 14.41 kB / 435.6 MB, free: 36.77 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 47 ($PRE.T1.enableFire,$PRE.T2.enableFire,$PRE.T3.enableFire,$PRE.onDelay.u,step3.oldActive,$PRE.step3.oldActive,step2.oldActive,$PRE.step2.oldActive,initialStep.oldActive,$PRE.initialStep.oldActive,onDelay.t_next,$PRE.onDelay.t_next,onDelay.delaySignal,$PRE.onDelay.delaySignal,onDelay.u,onDelay.y,T3.t_start,$PRE.T3.t_start,T3.enableFire,T3.fire,step3.outport_fire,step3.inport_fire,step3.newActive,$PRE.step3.newActive,T2.enableFire,step2.inport_fire,step2.newActive,$PRE.step2.newActive,T1.enableFire,T1.condition,initialStep.newActive,$PRE.initialStep.newActive,initialStep.active,$whenCondition3,$whenCondition2,$whenCondition1,step3.outPort[1].checkOneDelayedTransitionPerLoop,T3.condition,initialStep.connectorNode.node.suspend,initialStep.connectorNode.node.resume,T2.condition,T3.outPort.checkOneDelayedTransitionPerLoop,step2.inPort[1].checkOneDelayedTransitionPerLoop,step3.inPort[1].checkOneDelayedTransitionPerLoop,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 (48): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 1 * 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.0001977/0.4037, allocations: 239.6 kB / 435.9 MB, free: 36.6 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.963e-05/0.4038, allocations: 25.12 kB / 435.9 MB, free: 36.59 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003392/0.4041, allocations: 247.8 kB / 436.1 MB, free: 36.51 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.17e-06/0.4041, allocations: 2.969 kB / 436.1 MB, free: 36.51 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.4041, allocations: 0 / 436.1 MB, free: 36.51 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.4041, allocations: 0 / 436.1 MB, free: 36.51 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006524/0.4048, allocations: 0.6724 MB / 436.8 MB, free: 36.17 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.4048, allocations: 0 / 436.8 MB, free: 36.17 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.025e-05/0.4048, allocations: 13.14 kB / 436.8 MB, free: 36.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.4049, allocations: 0 / 436.8 MB, free: 36.16 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.578e-05/0.4049, allocations: 2.938 kB / 436.8 MB, free: 36.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.795e-06/0.4049, allocations: 1.188 kB / 436.8 MB, free: 36.16 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.4049, allocations: 3.281 kB / 436.8 MB, free: 36.16 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002983/0.4052, allocations: 331.2 kB / 437.1 MB, free: 35.98 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.906e-05/0.4053, allocations: 115.2 kB / 437.2 MB, free: 35.88 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.59e-05/0.4053, allocations: 6.562 kB / 437.3 MB, free: 35.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001081/0.4054, allocations: 8.688 kB / 437.3 MB, free: 35.88 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.135e-05/0.4055, allocations: 21.78 kB / 437.3 MB, free: 35.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.954e-05/0.4056, allocations: 9.391 kB / 437.3 MB, free: 35.88 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001097/0.4057, allocations: 147.7 kB / 437.4 MB, free: 35.8 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4057, allocations: 0 / 437.4 MB, free: 35.8 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003553/0.406, allocations: 87.16 kB / 437.5 MB, free: 35.77 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: 23 (T3.enableFire,$whenCondition1,$whenCondition2,$whenCondition3,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,step3.outport_fire,T3.fire,T3.t_start,onDelay.y,onDelay.u,onDelay.delaySignal,onDelay.t_next) * Number of discrete states: 7 (initialStep.newActive,step2.newActive,onDelay.t_next,onDelay.delaySignal,$whenCondition3,$whenCondition2,step3.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 4 * 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.0002005/0.4062, allocations: 125.2 kB / 437.6 MB, free: 35.67 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003905/0.4066, allocations: 271.3 kB / 437.9 MB, free: 35.58 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.4067, allocations: 4.062 kB / 437.9 MB, free: 35.58 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001381/0.4068, allocations: 147.8 kB / 438.1 MB, free: 35.51 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003287/0.4071, allocations: 32.42 kB / 438.1 MB, free: 35.5 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008684/0.408, allocations: 0.6156 MB / 438.7 MB, free: 35.13 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002342/0.4083, allocations: 0.7926 MB / 439.5 MB, free: 34.43 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001013/0.4084, allocations: 45.34 kB / 439.5 MB, free: 34.42 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.129e-05/0.4084, allocations: 22.78 kB / 439.6 MB, free: 34.41 MB / 350.1 MB Notification: Performance of SimCode: time 2.9e-07/0.4084, allocations: 0 / 439.6 MB, free: 34.41 MB / 350.1 MB Notification: Performance of Templates: time 0.00518/0.4136, allocations: 1.975 MB / 441.5 MB, free: 34.26 MB / 350.1 MB make -j1 -f Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3.makefile Environment - environmentSimulation: (rm -f Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3.pipe ; mkfifo Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3.pipe >> ../files/Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3.sim & ./Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3.pipe 2>&1) Environment - environmentSimulation: