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.00119/0.00119, allocations: 175 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05826/0.05826, allocations: 10.66 MB / 23.92 MB, free: 1.375 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.724/1.724, allocations: 205.2 MB / 232.1 MB, free: 12.76 MB / 202.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008609/0.0008611, allocations: 93.16 kB / 282.6 MB, free: 13.58 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 4.766e-05/4.777e-05, allocations: 4 kB / 340.5 MB, free: 3.621 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3036/0.3037, allocations: 49.98 MB / 390.5 MB, free: 35.75 MB / 298.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1012/0.405, allocations: 78.57 MB / 469 MB, free: 5.062 MB / 346.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000238/0.4053, allocations: 75.95 kB / 469.1 MB, free: 4.988 MB / 346.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.01716/0.4225, allocations: 6.107 MB / 475.2 MB, free: 14.84 MB / 362.8 MB Notification: Performance of FrontEnd: time 1.954e-06/0.4225, allocations: 0 / 475.2 MB, free: 14.84 MB / 362.8 MB Notification: Performance of Transformations before backend: time 4.459e-05/0.4226, allocations: 16 kB / 475.2 MB, free: 14.83 MB / 362.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.001237/0.4238, allocations: 0.7083 MB / 475.9 MB, free: 14.08 MB / 362.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.753e-05/0.4239, allocations: 8.031 kB / 476 MB, free: 14.07 MB / 362.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001242/0.424, allocations: 67.23 kB / 476 MB, free: 14 MB / 362.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009292/0.4249, allocations: 456.1 kB / 476.5 MB, free: 13.52 MB / 362.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.527e-05/0.425, allocations: 37 kB / 476.5 MB, free: 13.48 MB / 362.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.352e-05/0.4251, allocations: 40 kB / 476.5 MB, free: 13.44 MB / 362.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008324/0.4259, allocations: 0.4909 MB / 477 MB, free: 12.91 MB / 362.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.575e-05/0.426, allocations: 7.906 kB / 477 MB, free: 12.91 MB / 362.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.103e-05/0.426, allocations: 20 kB / 477.1 MB, free: 12.89 MB / 362.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.166e-05/0.4261, allocations: 8 kB / 477.1 MB, free: 12.88 MB / 362.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000514/0.4266, allocations: 291 kB / 477.3 MB, free: 12.6 MB / 362.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002575/0.4292, allocations: 1.614 MB / 479 MB, free: 10.89 MB / 362.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005351/0.4297, allocations: 237.7 kB / 479.2 MB, free: 10.66 MB / 362.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001628/0.4299, allocations: 102.2 kB / 479.3 MB, free: 10.55 MB / 362.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.975e-05/0.4299, allocations: 4.234 kB / 479.3 MB, free: 10.55 MB / 362.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003213/0.4303, allocations: 200.5 kB / 479.5 MB, free: 10.34 MB / 362.8 MB Notification: Performance of pre-optimization done (n=31): time 2.925e-06/0.4303, allocations: 0 / 479.5 MB, free: 10.34 MB / 362.8 MB Notification: Performance of matching and sorting (n=31): time 0.0006305/0.4309, allocations: 357.2 kB / 479.8 MB, free: 9.984 MB / 362.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.615e-05/0.431, allocations: 63.39 kB / 479.9 MB, free: 9.91 MB / 362.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004688/0.4314, allocations: 427.7 kB / 480.3 MB, free: 9.488 MB / 362.8 MB Notification: Performance of collectPreVariables (initialization): time 3.202e-05/0.4315, allocations: 33.7 kB / 480.4 MB, free: 9.449 MB / 362.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.000225/0.4317, allocations: 299.6 kB / 480.6 MB, free: 9.148 MB / 362.8 MB Notification: Performance of collectInitialBindings (initialization): time 8.592e-05/0.4318, allocations: 110.6 kB / 480.8 MB, free: 9.039 MB / 362.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.779e-05/0.4318, allocations: 8 kB / 480.8 MB, free: 9.031 MB / 362.8 MB Notification: Performance of setup shared object (initialization): time 0.0002045/0.432, allocations: 370.7 kB / 481.1 MB, free: 8.66 MB / 362.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001791/0.4322, allocations: 105.3 kB / 481.2 MB, free: 8.559 MB / 362.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003817/0.4326, allocations: 401 kB / 481.6 MB, free: 8.02 MB / 362.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003049/0.4329, allocations: 198.3 kB / 481.8 MB, free: 7.828 MB / 362.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.598e-06/0.4329, allocations: 7.953 kB / 481.8 MB, free: 7.82 MB / 362.8 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.000901/0.4339, allocations: 0.6065 MB / 482.4 MB, free: 7.207 MB / 362.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.49e-05/0.4339, allocations: 10.34 kB / 482.4 MB, free: 7.199 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.428e-05/0.4339, allocations: 12 kB / 482.5 MB, free: 7.188 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.737e-05/0.4339, allocations: 20.03 kB / 482.5 MB, free: 7.168 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004452/0.4344, allocations: 131.8 kB / 482.6 MB, free: 7.039 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.699e-05/0.4344, allocations: 27.91 kB / 482.6 MB, free: 7.012 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002637/0.4347, allocations: 67.38 kB / 482.7 MB, free: 6.945 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.169e-05/0.4348, allocations: 35.94 kB / 482.7 MB, free: 6.91 MB / 362.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.000241/0.435, allocations: 178.3 kB / 482.9 MB, free: 6.727 MB / 362.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.335e-05/0.4351, allocations: 55.39 kB / 483 MB, free: 6.672 MB / 362.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001189/0.4352, allocations: 53.17 kB / 483 MB, free: 6.621 MB / 362.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.4352, allocations: 0 / 483 MB, free: 6.621 MB / 362.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.659e-06/0.4352, allocations: 4 kB / 483 MB, free: 6.617 MB / 362.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.593e-06/0.4352, allocations: 3.984 kB / 483 MB, free: 6.613 MB / 362.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004863/0.4357, allocations: 429.2 kB / 483.4 MB, free: 6.145 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.4357, allocations: 0 / 483.4 MB, free: 6.145 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002941/0.436, allocations: 59.86 kB / 483.5 MB, free: 6.086 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.611e-06/0.4361, allocations: 4 kB / 483.5 MB, free: 6.082 MB / 362.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.6e-05/0.4361, allocations: 15.98 kB / 483.5 MB, free: 6.066 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.4361, allocations: 0 / 483.5 MB, free: 6.066 MB / 362.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.4361, allocations: 0 / 483.5 MB, free: 6.066 MB / 362.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008272/0.437, allocations: 0.517 MB / 484 MB, free: 5.527 MB / 362.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001122/0.4371, allocations: 124.4 kB / 484.2 MB, free: 5.387 MB / 362.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.538e-05/0.4372, allocations: 19.94 kB / 484.2 MB, free: 5.367 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001442/0.4373, allocations: 15.92 kB / 484.2 MB, free: 5.352 MB / 362.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.367e-05/0.4374, allocations: 23.97 kB / 484.2 MB, free: 5.328 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.384e-05/0.4374, allocations: 8 kB / 484.2 MB, free: 5.32 MB / 362.8 MB Notification: Performance of sorting global known variables: time 0.0003439/0.4378, allocations: 321.5 kB / 484.5 MB, free: 5.008 MB / 362.8 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4378, allocations: 0 / 484.5 MB, free: 5.008 MB / 362.8 MB Notification: Performance of remove unused functions: time 0.0004279/0.4382, allocations: 95.83 kB / 484.6 MB, free: 4.914 MB / 362.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.0001982/0.4384, allocations: 133.8 kB / 484.8 MB, free: 4.777 MB / 362.8 MB Notification: Performance of simCode: created initialization part: time 0.0005709/0.439, allocations: 365.3 kB / 485.1 MB, free: 4.422 MB / 362.8 MB Notification: Performance of simCode: created event and clocks part: time 3.858e-06/0.439, allocations: 4.875 kB / 485.1 MB, free: 4.418 MB / 362.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0002129/0.4392, allocations: 131.9 kB / 485.2 MB, free: 4.289 MB / 362.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002473/0.4395, allocations: 53.98 kB / 485.3 MB, free: 4.238 MB / 362.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001072/0.4406, allocations: 0.6881 MB / 486 MB, free: 3.52 MB / 362.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004635/0.441, allocations: 0.8778 MB / 486.9 MB, free: 2.617 MB / 362.8 MB Notification: Performance of simCode: alias equations: time 0.0002316/0.4413, allocations: 92.5 kB / 487 MB, free: 2.527 MB / 362.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.682e-05/0.4414, allocations: 43.38 kB / 487 MB, free: 2.484 MB / 362.8 MB Notification: Performance of SimCode: time 3.6e-07/0.4414, allocations: 0 / 487 MB, free: 2.484 MB / 362.8 MB Notification: Performance of Templates: time 0.007177/0.4486, allocations: 2.975 MB / 490 MB, free: 15.54 MB / 378.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)