Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(IndustrialControlSystems.Applications.ControlProblems.CascadeControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl") translateModel(IndustrialControlSystems.Applications.ControlProblems.CascadeControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.006306/0.006306, allocations: 172 kB / 15.11 MB, free: 5.969 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.0592/0.0592, allocations: 10.73 MB / 26.59 MB, free: 2.238 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.749/1.749, allocations: 205.4 MB / 235.2 MB, free: 184 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009808/0.000981, allocations: 91.2 kB / 285.9 MB, free: 10.61 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003601/0.0003601, allocations: 8 kB / 346.4 MB, free: 5.172 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.121/0.1214, allocations: 50 MB / 396.4 MB, free: 3.078 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4223/0.5437, allocations: 78.66 MB / 475.1 MB, free: 16.9 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002559/0.544, allocations: 76.64 kB / 475.1 MB, free: 16.87 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01525/0.5593, allocations: 6.14 MB / 481.3 MB, free: 12.39 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.305e-06/0.5594, allocations: 0 / 481.3 MB, free: 12.39 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.871e-05/0.5594, allocations: 19.61 kB / 481.3 MB, free: 12.38 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 101 * Number of variables: 101 Notification: Performance of Generate backend data structure: time 0.001116/0.5605, allocations: 0.757 MB / 482 MB, free: 11.61 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.165e-05/0.5606, allocations: 12.03 kB / 482.1 MB, free: 11.6 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001044/0.5607, allocations: 59.25 kB / 482.1 MB, free: 11.54 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007589/0.5615, allocations: 470.8 kB / 482.6 MB, free: 11.08 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.246e-05/0.5615, allocations: 35.3 kB / 482.6 MB, free: 11.06 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.771e-05/0.5616, allocations: 42.12 kB / 482.7 MB, free: 11.03 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000695/0.5623, allocations: 0.5072 MB / 483.2 MB, free: 10.61 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.301e-05/0.5623, allocations: 7.906 kB / 483.2 MB, free: 10.61 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.289e-05/0.5624, allocations: 18 kB / 483.2 MB, free: 10.6 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.628e-06/0.5624, allocations: 12 kB / 483.2 MB, free: 10.59 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005429/0.563, allocations: 325.2 kB / 483.5 MB, free: 10.35 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002161/0.5651, allocations: 1.604 MB / 485.1 MB, free: 8.898 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005009/0.5656, allocations: 264.2 kB / 485.4 MB, free: 8.695 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.364e-05/0.5657, allocations: 4.234 kB / 485.4 MB, free: 8.691 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003093/0.566, allocations: 210.5 kB / 485.6 MB, free: 8.516 MB / 346.7 MB Notification: Performance of pre-optimization done (n=31): time 1.934e-06/0.566, allocations: 0 / 485.6 MB, free: 8.516 MB / 346.7 MB Notification: Performance of matching and sorting (n=31): time 0.0007821/0.5668, allocations: 499.8 kB / 486.1 MB, free: 8.117 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.713e-05/0.5668, allocations: 63.38 kB / 486.1 MB, free: 8.043 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003778/0.5672, allocations: 438.7 kB / 486.6 MB, free: 7.691 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.89e-05/0.5673, allocations: 35.14 kB / 486.6 MB, free: 7.656 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001446/0.5674, allocations: 294 kB / 486.9 MB, free: 7.438 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.836e-05/0.5675, allocations: 104.5 kB / 487 MB, free: 7.352 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.564e-05/0.5675, allocations: 14.44 kB / 487 MB, free: 7.348 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.254e-05/0.5676, allocations: 360.7 kB / 487.4 MB, free: 7.008 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001882/0.5678, allocations: 125.4 kB / 487.5 MB, free: 6.918 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002809/0.5681, allocations: 419 kB / 487.9 MB, free: 6.422 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002746/0.5684, allocations: 215 kB / 488.1 MB, free: 6.27 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/0.5684, allocations: 0 / 488.1 MB, free: 6.27 MB / 346.7 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.0007767/0.5692, allocations: 0.643 MB / 488.7 MB, free: 5.754 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.183e-05/0.5692, allocations: 10.03 kB / 488.7 MB, free: 5.746 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.082e-05/0.5692, allocations: 12 kB / 488.8 MB, free: 5.734 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.722e-05/0.5692, allocations: 16 kB / 488.8 MB, free: 5.719 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003667/0.5696, allocations: 131.8 kB / 488.9 MB, free: 5.594 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.926e-05/0.5696, allocations: 23.94 kB / 488.9 MB, free: 5.57 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002353/0.5699, allocations: 70.48 kB / 489 MB, free: 5.512 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.523e-05/0.5699, allocations: 31.25 kB / 489 MB, free: 5.484 MB / 346.7 MB Warning: Assuming fixed start value for the following 17 variables: R.cs:DISCRETE(fixed = true ) "Pre-biased Control Signal" type: Real R.satin:DISCRETE(fixed = true ) "input of the saturation block" type: Real R_outer.CS:DISCRETE(fixed = true ) "Control signal" type: Real R_outer.cs:DISCRETE(fixed = true ) "Pre-biased Control Signal" type: Real R_outer.satin:DISCRETE(fixed = true ) "input of the saturation block" type: Real R_inner.cs:DISCRETE(fixed = true ) "Pre-biased Control Signal" type: Real R_inner.satin:DISCRETE(fixed = true ) "input of the saturation block" type: Real P_outer.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] P_outer.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] P_outer.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real P2.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] P2.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] P2.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real R_inner.CS:DISCRETE(fixed = true ) "Control signal" type: Real P_inner.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real R.CS:DISCRETE(fixed = true ) "Control signal" type: Real P1.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 33 ($PRE.R.FBout,R.FBout,$PRE.R.cs,R.cs,$PRE.R.satin,R.satin,$PRE.R_outer.CS,R_outer.CS,$PRE.R_outer.FBout,R_outer.FBout,$PRE.R_outer.cs,R_outer.cs,$PRE.R_outer.satin,R_outer.satin,$PRE.R_inner.FBout,R_inner.FBout,$PRE.R_inner.cs,R_inner.cs,$PRE.R_inner.satin,R_inner.satin,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.R.CS,R.CS,$PRE.R_inner.CS,R_inner.CS,R_inner.TS_in,R_outer.TS_in,R.TS_in,R_inner.ATreq_in,R_outer.ATreq_in,R.ATreq_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (81): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * 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.000282/0.5702, allocations: 259.9 kB / 489.3 MB, free: 5.262 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.037e-05/0.5703, allocations: 51.92 kB / 489.3 MB, free: 5.211 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.87e-05/0.5704, allocations: 54.55 kB / 489.4 MB, free: 5.18 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.5704, allocations: 4 kB / 489.4 MB, free: 5.176 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.5704, allocations: 0 / 489.4 MB, free: 5.176 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.74e-06/0.5704, allocations: 3.984 kB / 489.4 MB, free: 5.172 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003814/0.5708, allocations: 423.8 kB / 489.8 MB, free: 4.785 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.5708, allocations: 0.8125 kB / 489.8 MB, free: 4.785 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002653/0.5711, allocations: 51.28 kB / 489.9 MB, free: 4.738 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.907e-06/0.5711, allocations: 7.953 kB / 489.9 MB, free: 4.73 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.036e-05/0.5711, allocations: 19.8 kB / 489.9 MB, free: 4.715 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.5711, allocations: 0 / 489.9 MB, free: 4.715 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.5711, allocations: 5.484 kB / 489.9 MB, free: 4.711 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007439/0.5719, allocations: 0.563 MB / 490.5 MB, free: 4.25 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.197e-05/0.572, allocations: 124.4 kB / 490.6 MB, free: 4.109 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.87e-05/0.572, allocations: 18.5 kB / 490.6 MB, free: 4.098 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000139/0.5722, allocations: 15.42 kB / 490.6 MB, free: 4.086 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.946e-05/0.5723, allocations: 15.97 kB / 490.6 MB, free: 4.07 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.317e-05/0.5723, allocations: 15.23 kB / 490.6 MB, free: 4.059 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002508/0.5725, allocations: 316.4 kB / 490.9 MB, free: 3.812 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5725, allocations: 4 kB / 490.9 MB, free: 3.809 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004023/0.573, allocations: 107.4 kB / 491.1 MB, free: 3.719 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (P1.w,P2.Y[3],P2.U[2],P2.w,P_inner.w,P_outer.Y[3],P_outer.U[2],P_outer.w) * Number of discrete variables: 15 ($whenCondition3,$whenCondition2,$whenCondition1,R.CS,R.FBout,R.cs,R.satin,R_outer.CS,R_outer.FBout,R_outer.cs,R_outer.satin,R_inner.CS,R_inner.FBout,R_inner.cs,R_inner.satin) * Number of discrete states: 6 (R_inner.FBout,R_inner.cs,R_outer.FBout,R_outer.cs,R.FBout,R.cs) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 12 * 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.0001644/0.5731, allocations: 133.5 kB / 491.2 MB, free: 3.582 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005605/0.5737, allocations: 402.9 kB / 491.6 MB, free: 3.273 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.5737, allocations: 4.688 kB / 491.6 MB, free: 3.27 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002092/0.5739, allocations: 150 kB / 491.7 MB, free: 3.156 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002588/0.5742, allocations: 42.45 kB / 491.8 MB, free: 3.137 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001172/0.5754, allocations: 1.015 MB / 492.8 MB, free: 2.16 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003368/0.5757, allocations: 0.8808 MB / 493.7 MB, free: 1.258 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002045/0.5759, allocations: 88.48 kB / 493.8 MB, free: 1.172 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.384e-05/0.576, allocations: 39.44 kB / 493.8 MB, free: 1.133 MB / 346.7 MB Notification: Performance of SimCode: time 3.11e-07/0.576, allocations: 3.938 kB / 493.8 MB, free: 1.129 MB / 346.7 MB Notification: Performance of Templates: time 0.007208/0.5832, allocations: 2.974 MB / 496.8 MB, free: 14.18 MB / 362.7 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl.makefile (rm -f IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl.sim & ./IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl.pipe 2>&1)