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.00113/0.00113, 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.001284/0.001283, 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.596/1.596, allocations: 223.2 MB / 239.9 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.2763/0.2763, allocations: 13.56 MB / 304.5 MB, free: 1.453 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003406/0.0003407, allocations: 12 kB / 368.8 MB, free: 6.609 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.14/0.1404, allocations: 53.7 MB / 422.5 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3): time 0.2439/0.3843, allocations: 1.523 MB / 424 MB, free: 41.95 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001285/0.3857, allocations: 0.7767 MB / 424.8 MB, free: 41.86 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001277/0.3858, allocations: 10.34 kB / 424.8 MB, free: 41.86 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001686/0.386, allocations: 45.2 kB / 424.8 MB, free: 41.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.35e-05/0.3861, allocations: 28.17 kB / 424.8 MB, free: 41.83 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.0005677/0.3867, allocations: 196.7 kB / 425 MB, free: 41.83 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003425/0.387, allocations: 275.8 kB / 425.3 MB, free: 41.81 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008258/0.3878, allocations: 0.7266 MB / 426 MB, free: 41.59 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001505/0.388, allocations: 133.1 kB / 426.2 MB, free: 41.55 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001134/0.3881, allocations: 114.1 kB / 426.3 MB, free: 41.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.024e-05/0.3882, allocations: 16.44 kB / 426.3 MB, free: 41.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.258e-05/0.3882, allocations: 29.67 kB / 426.3 MB, free: 41.52 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.92e-05/0.3883, allocations: 70.55 kB / 426.4 MB, free: 41.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.453e-05/0.3884, allocations: 84.95 kB / 426.5 MB, free: 41.46 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002504/0.3887, allocations: 283.4 kB / 426.7 MB, free: 41.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.3887, allocations: 2.812 kB / 426.7 MB, free: 41.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3887, allocations: 0 / 426.7 MB, free: 41.45 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.941e-06/0.3887, allocations: 0.6562 kB / 426.7 MB, free: 41.45 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.000739/0.3894, allocations: 0.5946 MB / 427.3 MB, free: 40.96 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.623e-05/0.3895, allocations: 10.94 kB / 427.4 MB, free: 40.96 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.428e-05/0.3896, allocations: 40.94 kB / 427.4 MB, free: 40.95 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003462/0.3899, allocations: 310.5 kB / 427.7 MB, free: 40.72 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.199e-05/0.39, allocations: 58.08 kB / 427.8 MB, free: 40.69 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.726e-05/0.3901, allocations: 43.75 kB / 427.8 MB, free: 40.69 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005929/0.3907, allocations: 475.3 kB / 428.3 MB, free: 40.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.594e-05/0.3907, allocations: 3.422 kB / 428.3 MB, free: 40.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.806e-05/0.3907, allocations: 19.59 kB / 428.3 MB, free: 40.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.145e-05/0.3907, allocations: 9.062 kB / 428.3 MB, free: 40.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004282/0.3912, allocations: 298.2 kB / 428.6 MB, free: 40.56 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001559/0.3927, allocations: 1.929 MB / 430.5 MB, free: 39.26 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003242/0.3931, allocations: 412.1 kB / 430.9 MB, free: 38.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005746/0.3937, allocations: 0.7232 MB / 431.6 MB, free: 38.3 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002398/0.3939, allocations: 169.8 kB / 431.8 MB, free: 38.19 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.593e-06/0.3939, allocations: 0 / 431.8 MB, free: 38.19 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004558/0.3944, allocations: 350 kB / 432.1 MB, free: 38.01 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.598e-05/0.3945, allocations: 165.9 kB / 432.3 MB, free: 37.82 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001822/0.3947, allocations: 247.7 kB / 432.6 MB, free: 37.71 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.283e-05/0.3947, allocations: 38.31 kB / 432.6 MB, free: 37.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.817e-05/0.3948, allocations: 203.5 kB / 432.8 MB, free: 37.54 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.432e-05/0.3948, allocations: 56.64 kB / 432.8 MB, free: 37.51 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.195e-05/0.3948, allocations: 9.156 kB / 432.9 MB, free: 37.51 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.252e-05/0.3949, allocations: 336.4 kB / 433.2 MB, free: 37.2 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.905e-05/0.395, allocations: 74.03 kB / 433.3 MB, free: 37.19 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001568/0.3952, allocations: 220 kB / 433.5 MB, free: 37 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001343/0.3953, allocations: 117.2 kB / 433.6 MB, free: 36.96 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.015e-06/0.3953, allocations: 0 / 433.6 MB, free: 36.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0004024/0.3957, allocations: 357.2 kB / 433.9 MB, free: 36.86 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.366e-05/0.3958, allocations: 34.67 kB / 434 MB, free: 36.83 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.3958, allocations: 3.594 kB / 434 MB, free: 36.83 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.858e-05/0.3958, allocations: 9.625 kB / 434 MB, free: 36.83 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.184e-05/0.3959, allocations: 29.23 kB / 434 MB, free: 36.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.262e-05/0.3959, allocations: 13.36 kB / 434 MB, free: 36.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001595/0.3961, allocations: 36.34 kB / 434.1 MB, free: 36.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.03e-05/0.3961, allocations: 17.88 kB / 434.1 MB, free: 36.8 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,$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,$PRE.step3.newActive,step3.newActive,step3.inport_fire,step3.outport_fire,T3.fire,T3.enableFire,$PRE.T3.t_start,T3.t_start,onDelay.y,onDelay.u,$PRE.onDelay.delaySignal,onDelay.delaySignal,$PRE.onDelay.t_next,onDelay.t_next,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002299/0.3964, allocations: 240.7 kB / 434.3 MB, free: 36.63 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.802e-05/0.3964, allocations: 26.34 kB / 434.3 MB, free: 36.62 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003739/0.3968, allocations: 239.6 kB / 434.6 MB, free: 36.54 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.109e-06/0.3968, allocations: 3.125 kB / 434.6 MB, free: 36.54 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.3968, allocations: 0 / 434.6 MB, free: 36.54 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.3968, allocations: 3.188 kB / 434.6 MB, free: 36.54 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007862/0.3976, allocations: 0.6824 MB / 435.3 MB, free: 36.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.876e-06/0.3976, allocations: 3.953 kB / 435.3 MB, free: 36.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.497e-05/0.3977, allocations: 7.219 kB / 435.3 MB, free: 36.19 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.049e-06/0.3977, allocations: 2.906 kB / 435.3 MB, free: 36.19 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.707e-05/0.3977, allocations: 9.984 kB / 435.3 MB, free: 36.19 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.3977, allocations: 0 / 435.3 MB, free: 36.19 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.3977, allocations: 0 / 435.3 MB, free: 36.19 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002974/0.398, allocations: 328.2 kB / 435.6 MB, free: 36.01 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.322e-05/0.3981, allocations: 111.5 kB / 435.7 MB, free: 35.9 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.548e-05/0.3981, allocations: 6.406 kB / 435.7 MB, free: 35.9 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000109/0.3982, allocations: 17.64 kB / 435.7 MB, free: 35.9 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.417e-05/0.3983, allocations: 21.94 kB / 435.8 MB, free: 35.9 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.687e-05/0.3984, allocations: 5.938 kB / 435.8 MB, free: 35.9 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.113e-05/0.3984, allocations: 143.3 kB / 435.9 MB, free: 35.82 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3985, allocations: 0 / 435.9 MB, free: 35.82 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003728/0.3988, allocations: 82.19 kB / 436 MB, free: 35.81 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 (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.0001647/0.399, allocations: 120.8 kB / 436.1 MB, free: 35.71 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003395/0.3994, allocations: 268.4 kB / 436.4 MB, free: 35.62 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3994, allocations: 0 / 436.4 MB, free: 35.62 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001299/0.3995, allocations: 150.4 kB / 436.5 MB, free: 35.56 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002119/0.3997, allocations: 19.22 kB / 436.5 MB, free: 35.55 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00077/0.4005, allocations: 0.5911 MB / 437.1 MB, free: 35.2 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000215/0.4007, allocations: 0.8087 MB / 437.9 MB, free: 34.49 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.329e-05/0.4008, allocations: 33.84 kB / 438 MB, free: 34.49 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.298e-05/0.4009, allocations: 26.94 kB / 438 MB, free: 34.48 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.4009, allocations: 0 / 438 MB, free: 34.48 MB / 350.1 MB Notification: Performance of Templates: time 0.004996/0.4059, allocations: 1.918 MB / 439.9 MB, free: 34.32 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: