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/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_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/Complex 4.0.0+maint.om/package.mo): time 0.001332/0.001332, allocations: 174.1 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.28/1.28, 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.0008113/0.0008114, allocations: 91.39 kB / 285.6 MB, free: 13 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.0754/0.0754, allocations: 13.58 MB / 350.1 MB, free: 12.43 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 2.631e-05/2.633e-05, allocations: 0 / 411.6 MB, free: 55.76 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09158/0.09162, allocations: 53.72 MB / 465.3 MB, free: 2.004 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3613/0.453, allocations: 77.06 MB / 0.5297 GB, free: 3.617 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001398/0.4532, allocations: 52.17 kB / 0.5297 GB, free: 3.598 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.01235/0.4655, allocations: 5.255 MB / 0.5349 GB, free: 15.11 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.4656, allocations: 0 / 0.5349 GB, free: 15.11 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.51e-05/0.4656, allocations: 12 kB / 0.5349 GB, free: 15.1 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: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.0007113/0.4663, allocations: 0.5631 MB / 0.5354 GB, free: 14.51 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.041e-05/0.4664, allocations: 12.03 kB / 0.5354 GB, free: 14.5 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.892e-05/0.4665, allocations: 43.53 kB / 0.5355 GB, free: 14.46 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004624/0.467, allocations: 325.5 kB / 0.5358 GB, free: 14.14 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.325e-05/0.467, allocations: 57.64 kB / 0.5359 GB, free: 14.09 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.656e-05/0.4671, allocations: 46.12 kB / 0.5359 GB, free: 14.05 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007366/0.4679, allocations: 483.5 kB / 0.5364 GB, free: 13.67 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.37e-05/0.4679, allocations: 0 / 0.5364 GB, free: 13.67 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.23e-05/0.4679, allocations: 19.69 kB / 0.5364 GB, free: 13.66 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.315e-05/0.4679, allocations: 8 kB / 0.5364 GB, free: 13.65 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004759/0.4684, allocations: 289.9 kB / 0.5367 GB, free: 13.46 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002191/0.4706, allocations: 1.887 MB / 0.5385 GB, free: 11.67 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004444/0.4711, allocations: 420.1 kB / 0.5389 GB, free: 11.19 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001184/0.4712, allocations: 77.89 kB / 0.539 GB, free: 11.11 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007945/0.472, allocations: 0.725 MB / 0.5397 GB, free: 10.32 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002434/0.4723, allocations: 166.8 kB / 0.5398 GB, free: 10.13 MB / 362.7 MB Notification: Performance of pre-optimization done (n=23): time 1.653e-06/0.4723, allocations: 3.938 kB / 0.5398 GB, free: 10.12 MB / 362.7 MB Notification: Performance of matching and sorting (n=23): time 0.000373/0.4727, allocations: 216.8 kB / 0.5401 GB, free: 9.902 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001084/0.4728, allocations: 162.4 kB / 0.5402 GB, free: 9.707 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002141/0.473, allocations: 229.7 kB / 0.5404 GB, free: 9.477 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.91e-05/0.473, allocations: 33.81 kB / 0.5405 GB, free: 9.438 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001358/0.4732, allocations: 216.1 kB / 0.5407 GB, free: 9.219 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.697e-05/0.4732, allocations: 55.41 kB / 0.5407 GB, free: 9.164 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.437e-05/0.4733, allocations: 8 kB / 0.5407 GB, free: 9.156 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001254/0.4734, allocations: 334.8 kB / 0.541 GB, free: 8.82 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001159/0.4735, allocations: 68.86 kB / 0.5411 GB, free: 8.75 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002314/0.4738, allocations: 215.8 kB / 0.5413 GB, free: 8.473 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00016/0.4739, allocations: 121.6 kB / 0.5414 GB, free: 8.348 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.15e-06/0.4739, allocations: 4 kB / 0.5414 GB, free: 8.344 MB / 362.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0004686/0.4744, allocations: 347.5 kB / 0.5418 GB, free: 7.992 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.254e-05/0.4745, allocations: 37.66 kB / 0.5418 GB, free: 7.949 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.153e-05/0.4745, allocations: 7.984 kB / 0.5418 GB, free: 7.941 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.482e-05/0.4745, allocations: 8 kB / 0.5418 GB, free: 7.934 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001036/0.4746, allocations: 31.86 kB / 0.5419 GB, free: 7.902 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.496e-05/0.4746, allocations: 8 kB / 0.5419 GB, free: 7.895 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001495/0.4748, allocations: 24.48 kB / 0.5419 GB, free: 7.871 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.847e-05/0.4748, allocations: 16 kB / 0.5419 GB, free: 7.855 MB / 362.7 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,$PRE.step3.oldActive,step3.oldActive,$PRE.step2.oldActive,step2.oldActive,$PRE.initialStep.oldActive,initialStep.oldActive,$whenCondition1,$whenCondition2,$whenCondition3,initialStep.active,$PRE.initialStep.newActive,initialStep.newActive,T1.condition,T1.enableFire,$PRE.step2.newActive,step2.newActive,step2.inport_fire,T2.enableFire,T2.conditionPort,$PRE.step3.newActive,step3.newActive,step3.inport_fire,step3.outport_fire,T3.fire,T3.enableFire,$PRE.T3.t_start,T3.t_start,onDelay.u,$PRE.onDelay.delaySignal,onDelay.delaySignal,$PRE.onDelay.t_next,onDelay.t_next,step3.outPort[1].checkOneDelayedTransitionPerLoop,initialStep.connectorNode.node.resume,initialStep.connectorNode.node.suspend,T3.condition,step3.inPort[1].checkUnaryConnection,T3.outPort.checkOneDelayedTransitionPerLoop,initialStep.outPort[1].checkOneDelayedTransitionPerLoop,step2.outPort[1].checkOneDelayedTransitionPerLoop,step2.inPort[1].checkUnaryConnection,initialStep.inPort[1].checkUnaryConnection,T2.condition) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001553/0.475, allocations: 183.7 kB / 0.5421 GB, free: 7.66 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.306e-05/0.475, allocations: 23.72 kB / 0.5421 GB, free: 7.637 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003469/0.4754, allocations: 236.8 kB / 0.5423 GB, free: 7.395 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.4754, allocations: 4 kB / 0.5423 GB, free: 7.391 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.644e-06/0.4754, allocations: 4 kB / 0.5423 GB, free: 7.387 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.685e-06/0.4754, allocations: 3.984 kB / 0.5423 GB, free: 7.383 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007378/0.4762, allocations: 0.66 MB / 0.543 GB, free: 6.664 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.4762, allocations: 0 / 0.543 GB, free: 6.664 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2e-05/0.4762, allocations: 7.938 kB / 0.543 GB, free: 6.656 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.4762, allocations: 0 / 0.543 GB, free: 6.656 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.857e-05/0.4763, allocations: 12 kB / 0.543 GB, free: 6.645 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.4763, allocations: 0 / 0.543 GB, free: 6.645 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.4763, allocations: 4 kB / 0.543 GB, free: 6.641 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003256/0.4766, allocations: 324.7 kB / 0.5433 GB, free: 6.301 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.064e-05/0.4767, allocations: 112.7 kB / 0.5434 GB, free: 6.172 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.658e-05/0.4767, allocations: 11.95 kB / 0.5434 GB, free: 6.16 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001156/0.4769, allocations: 15.98 kB / 0.5434 GB, free: 6.145 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.169e-05/0.477, allocations: 19.97 kB / 0.5435 GB, free: 6.125 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.727e-05/0.477, allocations: 12 kB / 0.5435 GB, free: 6.113 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001037/0.4771, allocations: 144.6 kB / 0.5436 GB, free: 5.973 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4771, allocations: 0 / 0.5436 GB, free: 5.973 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003146/0.4774, allocations: 56 kB / 0.5437 GB, free: 5.918 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: 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,T2.conditionPort,step3.newActive,step3.oldActive,step3.inport_fire,step3.outport_fire,T3.fire,T3.t_start,onDelay.u,onDelay.delaySignal,onDelay.t_next) * Number of discrete states: 7 (initialStep.newActive,step2.newActive,step3.newActive,onDelay.t_next,onDelay.delaySignal,$whenCondition3,$whenCondition2) * 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 (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.0001569/0.4776, allocations: 123.8 kB / 0.5438 GB, free: 5.789 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003478/0.4779, allocations: 255.6 kB / 0.544 GB, free: 5.527 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.4779, allocations: 0 / 0.544 GB, free: 5.527 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001486/0.4781, allocations: 153.2 kB / 0.5442 GB, free: 5.367 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001883/0.4783, allocations: 28.61 kB / 0.5442 GB, free: 5.336 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005887/0.4789, allocations: 359.5 kB / 0.5445 GB, free: 4.961 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003261/0.4792, allocations: 0.8043 MB / 0.5453 GB, free: 4.133 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001033/0.4793, allocations: 38.95 kB / 0.5454 GB, free: 4.09 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.404e-05/0.4794, allocations: 23.44 kB / 0.5454 GB, free: 4.066 MB / 362.7 MB Notification: Performance of SimCode: time 3.7e-07/0.4794, allocations: 0 / 0.5454 GB, free: 4.066 MB / 362.7 MB Notification: Performance of Templates: time 0.005231/0.4846, allocations: 1.93 MB / 0.5473 GB, free: 2.16 MB / 362.7 MB make -j1 -f Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3.makefile (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)