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/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009456/0.0009456, allocations: 82.05 kB / 19.87 MB, free: 4.621 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001052/0.001052, allocations: 169.7 kB / 23.27 MB, free: 1.223 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.045/1.045, allocations: 177.1 MB / 203.7 MB, free: 5.52 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo): time 0.03909/0.03909, allocations: 8.61 MB / 268.9 MB, free: 4.777 MB / 250.7 MB " [Timeout remaining time 180] Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(IndustrialControlSystems.Applications.ControlProblems.CascadeControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl") translateModel(IndustrialControlSystems.Applications.ControlProblems.CascadeControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.014e-06/2.014e-06, allocations: 0 / 341.3 MB, free: 8.137 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.465e-05/1.666e-05, allocations: 10.25 kB / 341.3 MB, free: 8.125 MB / 266.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ControlProblems.CascadeControl): time 0.002327/0.002344, allocations: 2.435 MB / 343.8 MB, free: 5.672 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009323/0.003276, allocations: 0.7264 MB / 344.5 MB, free: 4.945 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001563/0.003433, allocations: 31.69 kB / 344.5 MB, free: 4.914 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002074/0.00364, allocations: 98.98 kB / 344.6 MB, free: 4.816 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 9.968e-05/0.00374, allocations: 51.38 kB / 344.7 MB, free: 4.766 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006386/0.004378, allocations: 467 kB / 345.1 MB, free: 4.309 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003776/0.004756, allocations: 0.6684 MB / 345.8 MB, free: 3.641 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001327/0.004889, allocations: 77.91 kB / 345.9 MB, free: 3.555 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001818/0.00507, allocations: 311.2 kB / 346.2 MB, free: 3.25 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001504/0.005221, allocations: 203.3 kB / 346.4 MB, free: 3.051 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.497e-05/0.005266, allocations: 40 kB / 346.4 MB, free: 3.012 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.837e-05/0.005344, allocations: 55.98 kB / 346.5 MB, free: 2.957 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.18e-05/0.005436, allocations: 167.4 kB / 346.6 MB, free: 2.793 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.475e-05/0.005521, allocations: 151.4 kB / 346.8 MB, free: 2.645 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002701/0.005791, allocations: 406.2 kB / 347.2 MB, free: 2.246 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.993e-06/0.005793, allocations: 0 / 347.2 MB, free: 2.246 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.005794, allocations: 4 kB / 347.2 MB, free: 2.242 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.829e-06/0.005799, allocations: 4 kB / 347.2 MB, free: 2.238 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 125 * Number of variables: 125 Notification: Performance of Generate backend data structure: time 0.0007023/0.006501, allocations: 0.9305 MB / 348.1 MB, free: 1.27 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.312e-05/0.006544, allocations: 8.031 kB / 348.1 MB, free: 1.262 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.864e-05/0.006643, allocations: 116.5 kB / 348.2 MB, free: 1.148 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003438/0.006986, allocations: 424.8 kB / 348.6 MB, free: 0.707 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.865e-05/0.007015, allocations: 41.38 kB / 348.7 MB, free: 0.668 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.571e-05/0.007061, allocations: 56.31 kB / 348.7 MB, free: 0.6133 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000347/0.007408, allocations: 0.5198 MB / 349.3 MB, free: 12 kB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.778e-05/0.007426, allocations: 12.17 kB / 349.3 MB, free: 0 / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.216e-05/0.007468, allocations: 16.45 kB / 349.3 MB, free: 15.98 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.273e-05/0.007481, allocations: 16.38 kB / 349.3 MB, free: 15.96 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002033/0.007684, allocations: 178.5 kB / 349.5 MB, free: 15.79 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001872/0.009556, allocations: 3.027 MB / 352.5 MB, free: 12.64 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002834/0.009839, allocations: 168.6 kB / 352.7 MB, free: 12.46 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.661e-05/0.009896, allocations: 44.12 kB / 352.7 MB, free: 12.41 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.429e-05/0.00991, allocations: 8.234 kB / 352.7 MB, free: 12.41 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003555/0.01027, allocations: 149.6 kB / 352.9 MB, free: 12.25 MB / 282.7 MB Notification: Performance of pre-optimization done (n=30): time 1.623e-06/0.01027, allocations: 0 / 352.9 MB, free: 12.25 MB / 282.7 MB Notification: Performance of matching and sorting (n=30): time 0.000397/0.01066, allocations: 313.2 kB / 353.2 MB, free: 11.93 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.934e-05/0.0107, allocations: 71.33 kB / 353.2 MB, free: 11.85 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002915/0.011, allocations: 0.5293 MB / 353.8 MB, free: 11.3 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.039e-05/0.01102, allocations: 33.7 kB / 353.8 MB, free: 11.27 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001912/0.01121, allocations: 422.4 kB / 354.2 MB, free: 10.84 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.232e-05/0.01127, allocations: 111.2 kB / 354.3 MB, free: 10.73 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001055/0.01137, allocations: 147.8 kB / 354.5 MB, free: 10.58 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001592/0.01153, allocations: 0.5546 MB / 355 MB, free: 10.02 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.139e-05/0.0116, allocations: 45.61 kB / 355.1 MB, free: 9.973 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002879/0.01188, allocations: 0.5745 MB / 355.6 MB, free: 9.156 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008403/0.01272, allocations: 0.7625 MB / 356.4 MB, free: 8.148 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.581e-06/0.01273, allocations: 4 kB / 356.4 MB, free: 8.145 MB / 282.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.0004835/0.01321, allocations: 0.548 MB / 357 MB, free: 7.59 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/0.01323, allocations: 11.94 kB / 357 MB, free: 7.578 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.657e-05/0.01325, allocations: 16 kB / 357 MB, free: 7.562 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.91e-05/0.01327, allocations: 16 kB / 357 MB, free: 7.547 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002535/0.01352, allocations: 159.7 kB / 357.2 MB, free: 7.391 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.462e-05/0.01353, allocations: 28.39 kB / 357.2 MB, free: 7.363 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001529/0.01369, allocations: 79.39 kB / 357.3 MB, free: 7.285 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.552e-05/0.01371, allocations: 40 kB / 357.3 MB, free: 7.246 MB / 282.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(flow=false 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.w:VARIABLE(fixed = true protected = true ) \"proper part of the output\" type: Real P_outer.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] P_outer.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] P2.w:VARIABLE(fixed = true protected = true ) \"proper part of the output\" type: Real P2.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] P2.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] R_inner.CS:DISCRETE(flow=false fixed = true ) \"Control signal\" type: Real P_inner.w:VARIABLE(fixed = true protected = true ) \"proper part of the output\" type: Real R.CS:DISCRETE(flow=false 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: 58 * Number of states: 0 () * Number of discrete variables: 38 (R.FBout,$PRE.R.FBout,$PRE.R.cs,R.cs,$PRE.R.satin,R.satin,$PRE.R_outer.CS,R_outer.CS,R_outer.FBout,$PRE.R_outer.FBout,$PRE.R_outer.cs,R_outer.cs,$PRE.R_outer.satin,R_outer.satin,R_inner.FBout,$PRE.R_inner.FBout,$PRE.R_inner.cs,R_inner.cs,$PRE.R_inner.satin,R_inner.satin,$whenCondition2,$whenCondition1,$PRE.R_inner.CS,$PRE.R.CS,R_inner.CS,R.CS,R.ATreq_in,R.satHIGH_in,R.satLOW_in,R_outer.ATreq_in,R_outer.satHIGH_in,R_outer.satLOW_in,R_inner.ATreq_in,R_inner.satHIGH_in,R_inner.satLOW_in,R.TS_in,R_outer.TS_in,R_inner.TS_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (92): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000197/0.01391, allocations: 254.7 kB / 357.5 MB, free: 6.984 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.957e-05/0.01396, allocations: 67.61 kB / 357.6 MB, free: 6.918 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.012e-05/0.01402, allocations: 53.28 kB / 357.7 MB, free: 6.863 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.01402, allocations: 4 kB / 357.7 MB, free: 6.859 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.215e-06/0.01402, allocations: 4 kB / 357.7 MB, free: 6.855 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.01403, allocations: 0 / 357.7 MB, free: 6.855 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001998/0.01423, allocations: 264.8 kB / 357.9 MB, free: 6.57 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.965e-06/0.01423, allocations: 3.984 kB / 357.9 MB, free: 6.566 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001327/0.01436, allocations: 43.92 kB / 358 MB, free: 6.523 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.988e-06/0.01437, allocations: 4 kB / 358 MB, free: 6.52 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.495e-05/0.01439, allocations: 11.98 kB / 358 MB, free: 6.508 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.01439, allocations: 0 / 358 MB, free: 6.508 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.0144, allocations: 0 / 358 MB, free: 6.508 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003793/0.01478, allocations: 387.8 kB / 358.4 MB, free: 6.105 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.853e-05/0.01481, allocations: 63.5 kB / 358.4 MB, free: 6.043 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.394e-05/0.01485, allocations: 15.98 kB / 358.4 MB, free: 6.027 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.674e-05/0.0149, allocations: 8 kB / 358.5 MB, free: 6.02 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.159e-05/0.01495, allocations: 15.95 kB / 358.5 MB, free: 6.004 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.471e-05/0.01496, allocations: 12 kB / 358.5 MB, free: 5.992 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001456/0.01511, allocations: 298.7 kB / 358.8 MB, free: 5.703 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01511, allocations: 0 / 358.8 MB, free: 5.703 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002757/0.01538, allocations: 107.8 kB / 358.9 MB, free: 5.598 MB / 282.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: 14 ($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 (30): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 12 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001348/0.01552, allocations: 139 kB / 359 MB, free: 5.453 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002621/0.01578, allocations: 279.4 kB / 359.3 MB, free: 5.184 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 9.62e-07/0.01578, allocations: 0 / 359.3 MB, free: 5.184 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 8.611e-05/0.01587, allocations: 95.56 kB / 359.4 MB, free: 5.086 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002031/0.01607, allocations: 65.58 kB / 359.4 MB, free: 5.023 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007756/0.01684, allocations: 0.8711 MB / 360.3 MB, free: 4.117 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.45e-05/0.01692, allocations: 145.9 kB / 360.5 MB, free: 3.953 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001006/0.01702, allocations: 64.59 kB / 360.5 MB, free: 3.891 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.861e-05/0.01712, allocations: 126.2 kB / 360.6 MB, free: 3.766 MB / 282.7 MB Notification: Performance of SimCode: time 7.22e-07/0.01712, allocations: 3.938 kB / 360.6 MB, free: 3.762 MB / 282.7 MB Notification: Performance of Templates: time 0.006412/0.02353, allocations: 3.593 MB / 364.2 MB, free: 224 kB / 282.7 MB " [Timeout remaining time 660] make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl.makefile [Timeout 660] (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=240 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.068110837135464]