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.001337/0.001337, allocations: 86.72 kB / 15.06 MB, free: 1.09 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.001212/0.001213, allocations: 168.7 kB / 15.95 MB, free: 204 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.473/1.473, allocations: 223.3 MB / 240 MB, free: 5.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.2696/0.2696, allocations: 13.56 MB / 304.7 MB, free: 1.52 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003331/0.0003332, allocations: 11.98 kB / 368.9 MB, free: 6.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1279/0.1282, allocations: 53.71 MB / 422.6 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3): time 0.268/0.3963, allocations: 1.521 MB / 424.1 MB, free: 42.04 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001395/0.3977, allocations: 0.7986 MB / 424.9 MB, free: 41.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001295/0.3979, allocations: 9.406 kB / 424.9 MB, free: 41.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002001/0.3981, allocations: 51.98 kB / 424.9 MB, free: 41.9 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.751e-05/0.3982, allocations: 23.75 kB / 425 MB, free: 41.89 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.0006121/0.3988, allocations: 199.2 kB / 425.2 MB, free: 41.89 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003889/0.3992, allocations: 399.6 kB / 425.6 MB, free: 41.85 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008686/0.4001, allocations: 0.7148 MB / 426.3 MB, free: 41.62 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001184/0.4002, allocations: 131.4 kB / 426.4 MB, free: 41.59 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001097/0.4003, allocations: 116.3 kB / 426.5 MB, free: 41.55 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.912e-05/0.4004, allocations: 14.31 kB / 426.5 MB, free: 41.55 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.981e-05/0.4004, allocations: 31.86 kB / 426.6 MB, free: 41.55 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.672e-05/0.4005, allocations: 69.14 kB / 426.6 MB, free: 41.54 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.46e-05/0.4006, allocations: 84.7 kB / 426.7 MB, free: 41.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002545/0.4008, allocations: 280.7 kB / 427 MB, free: 41.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.4009, allocations: 1.125 kB / 427 MB, free: 41.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.003e-06/0.4009, allocations: 0 / 427 MB, free: 41.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.801e-06/0.4009, allocations: 0 / 427 MB, free: 41.48 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.0006767/0.4016, allocations: 0.5983 MB / 427.6 MB, free: 41 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.607e-05/0.4016, allocations: 8.062 kB / 427.6 MB, free: 41 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.622e-05/0.4017, allocations: 42.62 kB / 427.6 MB, free: 40.98 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003181/0.402, allocations: 311.1 kB / 427.9 MB, free: 40.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.94e-05/0.4021, allocations: 61.45 kB / 428 MB, free: 40.72 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.379e-05/0.4021, allocations: 45.91 kB / 428 MB, free: 40.72 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006093/0.4028, allocations: 476 kB / 428.5 MB, free: 40.6 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.595e-05/0.4028, allocations: 0.5 kB / 428.5 MB, free: 40.6 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.657e-05/0.4028, allocations: 17.03 kB / 428.5 MB, free: 40.6 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.188e-05/0.4028, allocations: 8.875 kB / 428.5 MB, free: 40.6 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004485/0.4033, allocations: 301.3 kB / 428.8 MB, free: 40.59 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001778/0.4051, allocations: 1.932 MB / 430.8 MB, free: 39.3 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003231/0.4054, allocations: 407.3 kB / 431.2 MB, free: 38.96 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001405/0.4056, allocations: 79.31 kB / 431.2 MB, free: 38.95 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000598/0.4062, allocations: 0.726 MB / 432 MB, free: 38.32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002627/0.4065, allocations: 175.8 kB / 432.1 MB, free: 38.21 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.653e-06/0.4065, allocations: 0 / 432.1 MB, free: 38.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004216/0.4069, allocations: 264.4 kB / 432.4 MB, free: 38.12 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.605e-05/0.407, allocations: 166.2 kB / 432.5 MB, free: 37.94 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001945/0.4072, allocations: 253.4 kB / 432.8 MB, free: 37.82 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.541e-05/0.4072, allocations: 35.02 kB / 432.8 MB, free: 37.79 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001194/0.4073, allocations: 207.6 kB / 433 MB, free: 37.65 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.003e-05/0.4074, allocations: 58.91 kB / 433.1 MB, free: 37.62 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.491e-05/0.4074, allocations: 6.75 kB / 433.1 MB, free: 37.62 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.933e-05/0.4075, allocations: 337.1 kB / 433.4 MB, free: 37.3 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000116/0.4076, allocations: 69.7 kB / 433.5 MB, free: 37.3 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001933/0.4078, allocations: 220.5 kB / 433.7 MB, free: 37.12 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001592/0.408, allocations: 123.1 kB / 433.8 MB, free: 37.07 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.408, allocations: 2.844 kB / 433.8 MB, free: 37.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0005038/0.4085, allocations: 351.4 kB / 434.2 MB, free: 36.97 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.154e-05/0.4086, allocations: 35.23 kB / 434.2 MB, free: 36.94 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.178e-05/0.4086, allocations: 5.906 kB / 434.2 MB, free: 36.94 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.105e-05/0.4086, allocations: 5.812 kB / 434.2 MB, free: 36.94 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001028/0.4087, allocations: 25.12 kB / 434.2 MB, free: 36.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.36e-05/0.4087, allocations: 15.84 kB / 434.3 MB, free: 36.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001581/0.4089, allocations: 34.56 kB / 434.3 MB, free: 36.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.756e-05/0.409, allocations: 23.47 kB / 434.3 MB, free: 36.91 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.0002196/0.4092, allocations: 236.5 kB / 434.6 MB, free: 36.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.828e-05/0.4092, allocations: 19.66 kB / 434.6 MB, free: 36.74 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004025/0.4096, allocations: 239.8 kB / 434.8 MB, free: 36.66 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.456e-06/0.4096, allocations: 0 / 434.8 MB, free: 36.66 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.4096, allocations: 0 / 434.8 MB, free: 36.66 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.702e-06/0.4097, allocations: 11.56 kB / 434.8 MB, free: 36.66 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000711/0.4104, allocations: 0.6757 MB / 435.5 MB, free: 36.31 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.4104, allocations: 0 / 435.5 MB, free: 36.31 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.947e-05/0.4104, allocations: 6.531 kB / 435.5 MB, free: 36.31 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.318e-06/0.4104, allocations: 6.484 kB / 435.5 MB, free: 36.31 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.552e-05/0.4104, allocations: 3.156 kB / 435.5 MB, free: 36.31 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.4105, allocations: 0 / 435.5 MB, free: 36.31 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.4105, allocations: 4.953 kB / 435.5 MB, free: 36.31 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002844/0.4107, allocations: 338.3 kB / 435.8 MB, free: 36.12 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.563e-05/0.4108, allocations: 116.1 kB / 436 MB, free: 36.01 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.293e-05/0.4109, allocations: 6.219 kB / 436 MB, free: 36.01 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001085/0.411, allocations: 12.56 kB / 436 MB, free: 36.01 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.37e-05/0.4111, allocations: 22.81 kB / 436 MB, free: 36.01 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.5e-05/0.4111, allocations: 6.719 kB / 436 MB, free: 36.01 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.875e-05/0.4112, allocations: 140.5 kB / 436.1 MB, free: 35.94 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4112, allocations: 4 kB / 436.1 MB, free: 35.93 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003611/0.4115, allocations: 86.72 kB / 436.2 MB, free: 35.91 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.000182/0.4117, allocations: 121.9 kB / 436.3 MB, free: 35.82 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003619/0.4121, allocations: 270.4 kB / 436.6 MB, free: 35.73 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.4121, allocations: 3.938 kB / 436.6 MB, free: 35.72 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001312/0.4123, allocations: 150.8 kB / 436.8 MB, free: 35.66 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002761/0.4125, allocations: 25.89 kB / 436.8 MB, free: 35.65 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007489/0.4133, allocations: 0.5872 MB / 437.4 MB, free: 35.3 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002543/0.4136, allocations: 0.7969 MB / 438.2 MB, free: 34.6 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001008/0.4137, allocations: 44.2 kB / 438.2 MB, free: 34.59 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.212e-05/0.4137, allocations: 23.97 kB / 438.2 MB, free: 34.58 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.4137, allocations: 0 / 438.2 MB, free: 34.58 MB / 350.1 MB Notification: Performance of Templates: time 0.005478/0.4192, allocations: 1.918 MB / 440.2 MB, free: 34.42 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: