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.001444/0.001444, allocations: 168.8 kB / 7.645 MB, free: 1.434 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.446/1.446, allocations: 221.5 MB / 229.6 MB, free: 7.574 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009367/0.0009367, allocations: 88.88 kB / 280.5 MB, free: 5.324 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.08816/0.08816, allocations: 13.57 MB / 344.8 MB, free: 1.5 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.83e-05/1.833e-05, allocations: 2.625 kB / 404.7 MB, free: 45.7 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.109, allocations: 53.73 MB / 458.5 MB, free: 11.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3982/0.5073, allocations: 76.4 MB / 0.5223 GB, free: 23.23 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001468/0.5075, allocations: 47.2 kB / 0.5224 GB, free: 23.23 MB / 362.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.01485/0.5223, allocations: 5.195 MB / 0.5275 GB, free: 22.58 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.5224, allocations: 0 / 0.5275 GB, free: 22.58 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.488e-05/0.5224, allocations: 18.11 kB / 0.5275 GB, free: 22.58 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.001062/0.5235, allocations: 0.5681 MB / 0.528 GB, free: 22.13 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.017e-05/0.5236, allocations: 9.406 kB / 0.528 GB, free: 22.13 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002165/0.5238, allocations: 43.34 kB / 0.5281 GB, free: 22.11 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006096/0.5244, allocations: 321.4 kB / 0.5284 GB, free: 21.88 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.913e-05/0.5245, allocations: 50.53 kB / 0.5284 GB, free: 21.85 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.252e-05/0.5246, allocations: 26.58 kB / 0.5285 GB, free: 21.85 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006483/0.5252, allocations: 258.1 kB / 0.5287 GB, free: 21.84 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000787/0.526, allocations: 433.2 kB / 0.5291 GB, free: 21.68 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.723e-05/0.5261, allocations: 1.344 kB / 0.5291 GB, free: 21.68 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.062e-05/0.5261, allocations: 2.141 kB / 0.5291 GB, free: 21.68 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.765e-05/0.5261, allocations: 14.34 kB / 0.5291 GB, free: 21.67 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002239/0.5284, allocations: 1.797 MB / 0.5309 GB, free: 20.43 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003407/0.5287, allocations: 396 kB / 0.5313 GB, free: 20.09 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001366/0.5289, allocations: 76.61 kB / 0.5313 GB, free: 20.07 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006952/0.5296, allocations: 0.7092 MB / 0.532 GB, free: 19.45 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002263/0.5298, allocations: 161.6 kB / 0.5322 GB, free: 19.34 MB / 362.7 MB Notification: Performance of pre-optimization done (n=23): time 2.314e-06/0.5299, allocations: 1.219 kB / 0.5322 GB, free: 19.34 MB / 362.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004433/0.5303, allocations: 171.6 kB / 0.5323 GB, free: 19.29 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.224e-05/0.5304, allocations: 168.4 kB / 0.5325 GB, free: 19.1 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000248/0.5306, allocations: 221.1 kB / 0.5327 GB, free: 18.99 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.106e-05/0.5307, allocations: 31.17 kB / 0.5328 GB, free: 18.96 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001343/0.5308, allocations: 208.2 kB / 0.5329 GB, free: 18.82 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.946e-05/0.5309, allocations: 56.77 kB / 0.533 GB, free: 18.79 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.092e-05/0.5309, allocations: 0 / 0.533 GB, free: 18.79 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.466e-05/0.531, allocations: 333.8 kB / 0.5333 GB, free: 18.48 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001375/0.5311, allocations: 59.41 kB / 0.5334 GB, free: 18.48 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002004/0.5313, allocations: 207.2 kB / 0.5336 GB, free: 18.3 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002281/0.5316, allocations: 89.72 kB / 0.5337 GB, free: 18.28 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.651e-06/0.5316, allocations: 1.094 kB / 0.5337 GB, free: 18.28 MB / 362.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0005558/0.5322, allocations: 278.9 kB / 0.5339 GB, free: 18.21 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.904e-05/0.5322, allocations: 35.27 kB / 0.534 GB, free: 18.18 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.24e-05/0.5322, allocations: 4.5 kB / 0.534 GB, free: 18.18 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.659e-05/0.5323, allocations: 8.094 kB / 0.534 GB, free: 18.18 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001118/0.5324, allocations: 35.06 kB / 0.534 GB, free: 18.17 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.394e-05/0.5324, allocations: 9.453 kB / 0.534 GB, free: 18.17 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001953/0.5326, allocations: 14.81 kB / 0.534 GB, free: 18.16 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.709e-05/0.5327, allocations: 15.88 kB / 0.534 GB, free: 18.16 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.0001398/0.5328, allocations: 180.7 kB / 0.5342 GB, free: 18 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.108e-05/0.5329, allocations: 25.17 kB / 0.5342 GB, free: 17.99 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003842/0.5333, allocations: 197.4 kB / 0.5344 GB, free: 17.93 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.51e-06/0.5333, allocations: 5.062 kB / 0.5344 GB, free: 17.93 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.5333, allocations: 1.156 kB / 0.5344 GB, free: 17.93 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.5333, allocations: 4 kB / 0.5344 GB, free: 17.92 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001482/0.5348, allocations: 0.5363 MB / 0.535 GB, free: 33.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.5348, allocations: 0 / 0.535 GB, free: 33.66 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.403e-05/0.5348, allocations: 10.08 kB / 0.535 GB, free: 33.65 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.092e-06/0.5349, allocations: 1.156 kB / 0.535 GB, free: 33.65 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.883e-05/0.5349, allocations: 5.109 kB / 0.535 GB, free: 33.65 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.855e-06/0.5349, allocations: 1.031 kB / 0.535 GB, free: 33.65 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.5349, allocations: 1.094 kB / 0.535 GB, free: 33.65 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004963/0.5354, allocations: 281.6 kB / 0.5352 GB, free: 33.5 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001387/0.5356, allocations: 111.5 kB / 0.5354 GB, free: 33.39 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.451e-05/0.5356, allocations: 4.5 kB / 0.5354 GB, free: 33.39 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001774/0.5358, allocations: 8.891 kB / 0.5354 GB, free: 33.39 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001228/0.5359, allocations: 23.92 kB / 0.5354 GB, free: 33.39 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.064e-05/0.536, allocations: 9.75 kB / 0.5354 GB, free: 33.39 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001935/0.5362, allocations: 142.4 kB / 0.5355 GB, free: 33.31 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.3e-07/0.5362, allocations: 0 / 0.5355 GB, free: 33.31 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004415/0.5366, allocations: 46.09 kB / 0.5356 GB, free: 33.31 MB / 378.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.0001983/0.5368, allocations: 115.8 kB / 0.5357 GB, free: 33.21 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004149/0.5373, allocations: 234.5 kB / 0.5359 GB, free: 33.14 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.5373, allocations: 5.219 kB / 0.5359 GB, free: 33.14 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001778/0.5375, allocations: 141.6 kB / 0.5361 GB, free: 33.07 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002415/0.5377, allocations: 27.41 kB / 0.5361 GB, free: 33.06 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000777/0.5385, allocations: 351.5 kB / 0.5364 GB, free: 32.91 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004167/0.5389, allocations: 0.8017 MB / 0.5372 GB, free: 32.21 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001376/0.5391, allocations: 36.78 kB / 0.5372 GB, free: 32.21 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.758e-05/0.5391, allocations: 30.5 kB / 0.5373 GB, free: 32.19 MB / 378.7 MB Notification: Performance of SimCode: time 3.71e-07/0.5391, allocations: 0 / 0.5373 GB, free: 32.19 MB / 378.7 MB Notification: Performance of Templates: time 0.006529/0.5457, allocations: 1.849 MB / 0.5391 GB, free: 32.02 MB / 378.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)