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.00187/0.00187, allocations: 92.7 kB / 19.44 MB, free: 324 kB / 13.93 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.002471/0.002471, allocations: 161.7 kB / 22.75 MB, free: 1.656 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.482/1.482, allocations: 177.1 MB / 203.1 MB, free: 5.609 MB / 186.7 MB " [Timeout remaining time 178] 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.0674/0.0674, allocations: 8.606 MB / 268.2 MB, free: 4.949 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.475e-06/2.475e-06, allocations: 0 / 340.1 MB, free: 8.766 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.988e-05/3.235e-05, allocations: 2.312 kB / 340.1 MB, free: 8.762 MB / 266.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ControlProblems.CascadeControl): time 0.004759/0.004791, allocations: 2.388 MB / 342.5 MB, free: 6.355 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002284/0.007075, allocations: 0.7381 MB / 343.3 MB, free: 5.617 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000517/0.007592, allocations: 35.62 kB / 343.3 MB, free: 5.582 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004057/0.007998, allocations: 91 kB / 343.4 MB, free: 5.492 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000291/0.008289, allocations: 51.42 kB / 343.4 MB, free: 5.441 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001558/0.009847, allocations: 467 kB / 343.9 MB, free: 4.984 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001147/0.01099, allocations: 0.6761 MB / 344.6 MB, free: 4.309 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003023/0.0113, allocations: 69.92 kB / 344.6 MB, free: 4.23 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006515/0.01195, allocations: 315.2 kB / 344.9 MB, free: 3.922 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000441/0.01239, allocations: 199.3 kB / 345.1 MB, free: 3.727 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001371/0.01253, allocations: 40 kB / 345.2 MB, free: 3.688 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001863/0.01271, allocations: 59.97 kB / 345.2 MB, free: 3.629 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002075/0.01292, allocations: 171.4 kB / 345.4 MB, free: 3.461 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002402/0.01316, allocations: 143.5 kB / 345.5 MB, free: 3.32 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007057/0.01387, allocations: 0.5293 MB / 346.1 MB, free: 2.789 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.94e-06/0.01387, allocations: 0 / 346.1 MB, free: 2.789 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.01387, allocations: 0 / 346.1 MB, free: 2.789 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.547e-05/0.01389, allocations: 0 / 346.1 MB, free: 2.789 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.001914/0.0158, allocations: 0.8425 MB / 346.9 MB, free: 1.914 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.221e-05/0.01584, allocations: 8.031 kB / 346.9 MB, free: 1.906 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000175/0.01602, allocations: 112.5 kB / 347 MB, free: 1.797 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006669/0.01669, allocations: 450 kB / 347.5 MB, free: 1.332 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.521e-05/0.01673, allocations: 41.38 kB / 347.5 MB, free: 1.293 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001017/0.01683, allocations: 52.36 kB / 347.6 MB, free: 1.242 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001188/0.01802, allocations: 0.6118 MB / 348.2 MB, free: 0.5703 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.645e-05/0.01806, allocations: 12.08 kB / 348.2 MB, free: 0.5586 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.716e-05/0.01812, allocations: 24.38 kB / 348.2 MB, free: 0.5352 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.555e-05/0.01814, allocations: 12.38 kB / 348.2 MB, free: 0.5234 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008237/0.01896, allocations: 375.5 kB / 348.6 MB, free: 164 kB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005071/0.02403, allocations: 2.483 MB / 351.1 MB, free: 13.56 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009445/0.02498, allocations: 251.4 kB / 351.3 MB, free: 13.3 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000404/0.02538, allocations: 101.2 kB / 351.4 MB, free: 13.2 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.907e-05/0.02541, allocations: 4.234 kB / 351.4 MB, free: 13.2 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006379/0.02605, allocations: 204 kB / 351.6 MB, free: 12.99 MB / 282.7 MB Notification: Performance of pre-optimization done (n=30): time 2.574e-06/0.02605, allocations: 4 kB / 351.6 MB, free: 12.98 MB / 282.7 MB Notification: Performance of matching and sorting (n=30): time 0.001579/0.02763, allocations: 0.4892 MB / 352.1 MB, free: 12.49 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.444e-05/0.02772, allocations: 59.39 kB / 352.2 MB, free: 12.42 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009804/0.0287, allocations: 0.5219 MB / 352.7 MB, free: 11.88 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.325e-05/0.02875, allocations: 33.7 kB / 352.7 MB, free: 11.84 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005031/0.02925, allocations: 371.7 kB / 353.1 MB, free: 11.47 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001648/0.02942, allocations: 99.22 kB / 353.2 MB, free: 11.38 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002848/0.0297, allocations: 138.2 kB / 353.3 MB, free: 11.23 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0003066/0.03001, allocations: 366.8 kB / 353.7 MB, free: 10.87 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004687/0.03048, allocations: 133.6 kB / 353.8 MB, free: 10.74 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001003/0.03148, allocations: 0.4924 MB / 354.3 MB, free: 10.07 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002948/0.03443, allocations: 0.9108 MB / 355.2 MB, free: 8.98 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.604e-05/0.03444, allocations: 4 kB / 355.2 MB, free: 8.977 MB / 282.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002211/0.03666, allocations: 0.7502 MB / 356 MB, free: 8.223 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.991e-05/0.0367, allocations: 20.2 kB / 356 MB, free: 8.203 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.848e-05/0.03672, allocations: 12 kB / 356 MB, free: 8.191 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.494e-05/0.03678, allocations: 16 kB / 356 MB, free: 8.176 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007795/0.03756, allocations: 143.7 kB / 356.2 MB, free: 8.035 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.119e-05/0.03761, allocations: 31.86 kB / 356.2 MB, free: 8.004 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005936/0.0382, allocations: 79.45 kB / 356.3 MB, free: 7.926 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.309e-05/0.03829, allocations: 40 kB / 356.3 MB, free: 7.887 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_inner.TS_in,R_outer.TS_in,R.TS_in,R_inner.satLOW_in,R_inner.satHIGH_in,R_inner.ATreq_in,R_outer.satLOW_in,R_outer.satHIGH_in,R_outer.ATreq_in,R.satLOW_in,R.satHIGH_in,R.ATreq_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.000622/0.03891, allocations: 272 kB / 356.6 MB, free: 7.613 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001333/0.03904, allocations: 67.56 kB / 356.6 MB, free: 7.547 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000141/0.03918, allocations: 61.28 kB / 356.7 MB, free: 7.488 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.485e-06/0.03919, allocations: 4 kB / 356.7 MB, free: 7.484 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.0392, allocations: 0 / 356.7 MB, free: 7.484 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.867e-06/0.03921, allocations: 3.938 kB / 356.7 MB, free: 7.48 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006959/0.0399, allocations: 333 kB / 357 MB, free: 7.125 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.484e-06/0.03991, allocations: 3.984 kB / 357 MB, free: 7.121 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004813/0.04039, allocations: 55.97 kB / 357.1 MB, free: 7.066 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.481e-06/0.0404, allocations: 0 / 357.1 MB, free: 7.066 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.681e-05/0.04045, allocations: 15.98 kB / 357.1 MB, free: 7.051 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.04046, allocations: 0 / 357.1 MB, free: 7.051 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.197e-06/0.04046, allocations: 7.922 kB / 357.1 MB, free: 7.043 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001738/0.0422, allocations: 0.5596 MB / 357.7 MB, free: 6.465 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001175/0.04232, allocations: 47.56 kB / 357.7 MB, free: 6.418 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000106/0.04242, allocations: 15.98 kB / 357.7 MB, free: 6.402 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002352/0.04266, allocations: 11.98 kB / 357.7 MB, free: 6.391 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.229e-05/0.04275, allocations: 27.91 kB / 357.8 MB, free: 6.363 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.948e-05/0.0428, allocations: 11.98 kB / 357.8 MB, free: 6.352 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0006344/0.04343, allocations: 322.9 kB / 358.1 MB, free: 6.039 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.04343, allocations: 0 / 358.1 MB, free: 6.039 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007779/0.04421, allocations: 107.8 kB / 358.2 MB, free: 5.934 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.000305/0.04452, allocations: 131.2 kB / 358.3 MB, free: 5.797 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001297/0.04581, allocations: 415.8 kB / 358.7 MB, free: 5.395 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.04582, allocations: 0 / 358.7 MB, free: 5.395 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005041/0.04632, allocations: 139.8 kB / 358.9 MB, free: 5.258 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006048/0.04693, allocations: 62.47 kB / 358.9 MB, free: 5.199 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002391/0.04932, allocations: 0.9437 MB / 359.9 MB, free: 4.223 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000529/0.04985, allocations: 290.7 kB / 360.2 MB, free: 3.91 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0004335/0.05028, allocations: 100.5 kB / 360.3 MB, free: 3.809 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001394/0.05042, allocations: 40.5 kB / 360.3 MB, free: 3.77 MB / 282.7 MB Notification: Performance of SimCode: time 8.32e-07/0.05042, allocations: 0 / 360.3 MB, free: 3.77 MB / 282.7 MB Notification: Performance of Templates: time 0.01398/0.0644, allocations: 3.336 MB / 363.6 MB, free: 492 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=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.775013750069775]