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.001843/0.001843, allocations: 169 kB / 7.645 MB, free: 1.434 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06868/0.06868, allocations: 10.66 MB / 18.73 MB, free: 1.32 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.941/1.941, allocations: 205.3 MB / 226.9 MB, free: 7.98 MB / 186.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000993/0.0009929, allocations: 102.4 kB / 277.3 MB, free: 5.508 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 2.617e-05/2.62e-05, allocations: 0 / 333.5 MB, free: 28.51 MB / 250.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1352/0.1352, allocations: 50.01 MB / 383.5 MB, free: 10.46 MB / 282.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3968/0.5322, allocations: 78.2 MB / 461.7 MB, free: 6.656 MB / 330.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001819/0.5324, allocations: 80.08 kB / 461.8 MB, free: 6.613 MB / 330.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.01615/0.5486, allocations: 6.064 MB / 467.9 MB, free: 1.418 MB / 330.8 MB Notification: Performance of FrontEnd: time 1.132e-06/0.5486, allocations: 4 kB / 467.9 MB, free: 1.414 MB / 330.8 MB Notification: Performance of Transformations before backend: time 3.711e-05/0.5486, allocations: 16 kB / 467.9 MB, free: 1.398 MB / 330.8 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.00111/0.5498, allocations: 0.7007 MB / 468.6 MB, free: 0.6914 MB / 330.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.157e-05/0.5498, allocations: 12.03 kB / 468.6 MB, free: 0.6797 MB / 330.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001111/0.5499, allocations: 59.25 kB / 468.7 MB, free: 0.6211 MB / 330.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007811/0.5507, allocations: 461.8 kB / 469.1 MB, free: 176 kB / 330.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.996e-05/0.5508, allocations: 12 kB / 469.1 MB, free: 164 kB / 330.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.943e-05/0.5508, allocations: 39.42 kB / 469.2 MB, free: 128 kB / 330.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004657/0.5513, allocations: 264 kB / 469.4 MB, free: 15.95 MB / 346.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006356/0.552, allocations: 447.5 kB / 469.9 MB, free: 15.57 MB / 346.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.389e-05/0.552, allocations: 7.906 kB / 469.9 MB, free: 15.56 MB / 346.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.619e-05/0.552, allocations: 4 kB / 469.9 MB, free: 15.56 MB / 346.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.088e-05/0.5521, allocations: 8 kB / 469.9 MB, free: 15.55 MB / 346.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002256/0.5543, allocations: 1.528 MB / 471.4 MB, free: 14.16 MB / 346.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003979/0.5547, allocations: 234.1 kB / 471.6 MB, free: 13.98 MB / 346.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000131/0.5549, allocations: 92.36 kB / 471.7 MB, free: 13.92 MB / 346.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.682e-05/0.5549, allocations: 240 / 471.7 MB, free: 13.92 MB / 346.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002665/0.5552, allocations: 181.7 kB / 471.9 MB, free: 13.77 MB / 346.8 MB Notification: Performance of pre-optimization done (n=31): time 1.694e-06/0.5552, allocations: 0 / 471.9 MB, free: 13.77 MB / 346.8 MB Notification: Performance of matching and sorting (n=31): time 0.0006585/0.5558, allocations: 370.1 kB / 472.3 MB, free: 13.46 MB / 346.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.877e-05/0.5559, allocations: 59.39 kB / 472.3 MB, free: 13.39 MB / 346.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003497/0.5563, allocations: 376.7 kB / 472.7 MB, free: 13.08 MB / 346.8 MB Notification: Performance of collectPreVariables (initialization): time 2.788e-05/0.5563, allocations: 33.38 kB / 472.7 MB, free: 13.05 MB / 346.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001878/0.5565, allocations: 305.8 kB / 473 MB, free: 12.82 MB / 346.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.000102/0.5566, allocations: 95.16 kB / 473.1 MB, free: 12.74 MB / 346.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.369e-05/0.5566, allocations: 7.125 kB / 473.1 MB, free: 12.74 MB / 346.8 MB Notification: Performance of setup shared object (initialization): time 0.0001411/0.5568, allocations: 368.6 kB / 473.5 MB, free: 12.39 MB / 346.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000138/0.5569, allocations: 88.08 kB / 473.6 MB, free: 12.34 MB / 346.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003313/0.5572, allocations: 392.5 kB / 474 MB, free: 11.86 MB / 346.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002285/0.5575, allocations: 181.7 kB / 474.1 MB, free: 11.72 MB / 346.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.553e-06/0.5575, allocations: 4 kB / 474.1 MB, free: 11.72 MB / 346.8 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.0007137/0.5582, allocations: 0.5314 MB / 474.7 MB, free: 11.27 MB / 346.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.125e-05/0.5583, allocations: 12 kB / 474.7 MB, free: 11.25 MB / 346.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.279e-05/0.5583, allocations: 8.094 kB / 474.7 MB, free: 11.25 MB / 346.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.514e-05/0.5583, allocations: 23.98 kB / 474.7 MB, free: 11.22 MB / 346.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004169/0.5587, allocations: 131.6 kB / 474.8 MB, free: 11.1 MB / 346.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.854e-05/0.5588, allocations: 23.92 kB / 474.9 MB, free: 11.07 MB / 346.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000234/0.559, allocations: 51.42 kB / 474.9 MB, free: 11.02 MB / 346.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.287e-05/0.559, allocations: 35.31 kB / 474.9 MB, free: 11 MB / 346.8 MB Warning: Assuming fixed start value for the following 17 variables: R.cs:DISCRETE(fixed = false ) "Pre-biased Control Signal" type: Real R.satin:DISCRETE(fixed = false ) "input of the saturation block" type: Real R_outer.CS:DISCRETE(fixed = false ) "Control signal" type: Real R_outer.cs:DISCRETE(fixed = false ) "Pre-biased Control Signal" type: Real R_outer.satin:DISCRETE(fixed = false ) "input of the saturation block" type: Real R_inner.cs:DISCRETE(fixed = false ) "Pre-biased Control Signal" type: Real R_inner.satin:DISCRETE(fixed = false ) "input of the saturation block" type: Real P_outer.Y[3]:VARIABLE(protected = true ) type: Real [3] P_outer.U[2]:VARIABLE(protected = true ) type: Real [2] P_outer.w:VARIABLE(protected = true ) "proper part of the output" type: Real P2.Y[3]:VARIABLE(protected = true ) type: Real [3] P2.U[2]:VARIABLE(protected = true ) type: Real [2] P2.w:VARIABLE(protected = true ) "proper part of the output" type: Real R_inner.CS:DISCRETE(fixed = false ) "Control signal" type: Real P_inner.w:VARIABLE(protected = true ) "proper part of the output" type: Real R.CS:DISCRETE(fixed = false ) "Control signal" type: Real P1.w:VARIABLE(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 () * 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.0002137/0.5593, allocations: 155.1 kB / 475.1 MB, free: 10.84 MB / 346.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.614e-05/0.5593, allocations: 62.91 kB / 475.2 MB, free: 10.78 MB / 346.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.632e-05/0.5594, allocations: 47.11 kB / 475.2 MB, free: 10.75 MB / 346.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.5594, allocations: 4.062 kB / 475.2 MB, free: 10.75 MB / 346.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.5595, allocations: 4 kB / 475.2 MB, free: 10.75 MB / 346.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.5595, allocations: 11.92 kB / 475.2 MB, free: 10.73 MB / 346.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003713/0.5598, allocations: 369.2 kB / 475.6 MB, free: 10.4 MB / 346.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.5599, allocations: 4 kB / 475.6 MB, free: 10.4 MB / 346.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002904/0.5602, allocations: 55.91 kB / 475.6 MB, free: 10.34 MB / 346.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.5602, allocations: 0 / 475.6 MB, free: 10.34 MB / 346.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.007e-05/0.5602, allocations: 11.61 kB / 475.7 MB, free: 10.34 MB / 346.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.22e-06/0.5602, allocations: 7.953 kB / 475.7 MB, free: 10.33 MB / 346.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.5602, allocations: 0 / 475.7 MB, free: 10.33 MB / 346.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000774/0.561, allocations: 0.5151 MB / 476.2 MB, free: 9.902 MB / 346.8 MB Notification: Performance of postOpt removeConstants (simulation): time 8.882e-05/0.5611, allocations: 124.5 kB / 476.3 MB, free: 9.762 MB / 346.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.816e-05/0.5612, allocations: 7.688 kB / 476.3 MB, free: 9.758 MB / 346.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001326/0.5613, allocations: 11.98 kB / 476.3 MB, free: 9.746 MB / 346.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.33e-05/0.5614, allocations: 26.8 kB / 476.3 MB, free: 9.723 MB / 346.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.422e-05/0.5614, allocations: 15.23 kB / 476.4 MB, free: 9.711 MB / 346.8 MB Notification: Performance of sorting global known variables: time 0.0002494/0.5617, allocations: 268.4 kB / 476.6 MB, free: 9.504 MB / 346.8 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5617, allocations: 3.938 kB / 476.6 MB, free: 9.5 MB / 346.8 MB Notification: Performance of remove unused functions: time 0.0004056/0.5621, allocations: 79.78 kB / 476.7 MB, free: 9.422 MB / 346.8 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) * 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.0001849/0.5623, allocations: 128.4 kB / 476.8 MB, free: 9.289 MB / 346.8 MB Notification: Performance of simCode: created initialization part: time 0.0004633/0.5628, allocations: 341.3 kB / 477.2 MB, free: 9.035 MB / 346.8 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.5628, allocations: 0 / 477.2 MB, free: 9.035 MB / 346.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0001563/0.5629, allocations: 123.8 kB / 477.3 MB, free: 8.949 MB / 346.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002373/0.5632, allocations: 38.39 kB / 477.3 MB, free: 8.93 MB / 346.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009694/0.5642, allocations: 0.675 MB / 478 MB, free: 8.297 MB / 346.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004192/0.5646, allocations: 0.8882 MB / 478.9 MB, free: 7.391 MB / 346.8 MB Notification: Performance of simCode: alias equations: time 0.0002245/0.5648, allocations: 92.28 kB / 479 MB, free: 7.297 MB / 346.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.243e-05/0.5649, allocations: 31.44 kB / 479 MB, free: 7.266 MB / 346.8 MB Notification: Performance of SimCode: time 2.81e-07/0.5649, allocations: 4 kB / 479 MB, free: 7.262 MB / 346.8 MB Notification: Performance of Templates: time 0.006339/0.5712, allocations: 2.709 MB / 481.7 MB, free: 4.57 MB / 346.8 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)