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.0009286/0.0009286, allocations: 93.06 kB / 19.65 MB, free: 280 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.0009571/0.0009571, allocations: 169 kB / 23.02 MB, free: 1.551 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 0.9625/0.9625, allocations: 177.1 MB / 203.4 MB, free: 5.609 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.03674/0.03674, allocations: 8.604 MB / 268.6 MB, free: 4.895 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 1.873e-06/1.873e-06, allocations: 0 / 340.9 MB, free: 8.398 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.735e-05/2.922e-05, allocations: 10.25 kB / 340.9 MB, free: 8.387 MB / 266.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ControlProblems.CascadeControl): time 0.003314/0.003344, allocations: 2.469 MB / 343.3 MB, free: 5.898 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001435/0.004778, allocations: 0.7381 MB / 344.1 MB, free: 5.16 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003164/0.005095, allocations: 35.69 kB / 344.1 MB, free: 5.125 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00029/0.005385, allocations: 91 kB / 344.2 MB, free: 5.035 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001755/0.00556, allocations: 51.36 kB / 344.2 MB, free: 4.984 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001081/0.006642, allocations: 463 kB / 344.7 MB, free: 4.531 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006934/0.007335, allocations: 0.68 MB / 345.4 MB, free: 3.852 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001965/0.007531, allocations: 77.53 kB / 345.5 MB, free: 3.77 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000356/0.007887, allocations: 307.3 kB / 345.8 MB, free: 3.469 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002558/0.008143, allocations: 199.3 kB / 345.9 MB, free: 3.273 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.633e-05/0.00822, allocations: 40 kB / 346 MB, free: 3.234 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001229/0.008342, allocations: 63.97 kB / 346.1 MB, free: 3.172 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001402/0.008483, allocations: 163.4 kB / 346.2 MB, free: 3.012 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001265/0.008609, allocations: 147.4 kB / 346.4 MB, free: 2.867 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004441/0.009053, allocations: 414.2 kB / 346.8 MB, free: 2.461 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.009058, allocations: 4 kB / 346.8 MB, free: 2.457 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.00906, allocations: 4 kB / 346.8 MB, free: 2.453 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.063e-05/0.00907, allocations: 0 / 346.8 MB, free: 2.453 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.001135/0.01021, allocations: 0.9307 MB / 347.7 MB, free: 1.484 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.041e-05/0.01025, allocations: 16.03 kB / 347.7 MB, free: 1.469 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000151/0.0104, allocations: 108.5 kB / 347.8 MB, free: 1.363 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005493/0.01095, allocations: 436.8 kB / 348.2 MB, free: 0.9102 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.998e-05/0.01099, allocations: 41.38 kB / 348.3 MB, free: 0.8711 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.462e-05/0.01106, allocations: 56.31 kB / 348.3 MB, free: 0.8164 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006424/0.0117, allocations: 0.5356 MB / 348.9 MB, free: 204 kB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.476e-05/0.01173, allocations: 16.11 kB / 348.9 MB, free: 188 kB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.679e-05/0.01176, allocations: 24.38 kB / 348.9 MB, free: 164 kB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.641e-05/0.01178, allocations: 12.38 kB / 348.9 MB, free: 152 kB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004006/0.01218, allocations: 205.7 kB / 349.1 MB, free: 15.95 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002746/0.01493, allocations: 3.148 MB / 352.3 MB, free: 12.66 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004542/0.01538, allocations: 175.9 kB / 352.4 MB, free: 12.48 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000108/0.01549, allocations: 52.83 kB / 352.5 MB, free: 12.42 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.709e-05/0.01551, allocations: 4.234 kB / 352.5 MB, free: 12.42 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000255/0.01576, allocations: 165.6 kB / 352.7 MB, free: 12.24 MB / 282.7 MB Notification: Performance of pre-optimization done (n=30): time 2.525e-06/0.01576, allocations: 0 / 352.7 MB, free: 12.24 MB / 282.7 MB Notification: Performance of matching and sorting (n=30): time 0.0006385/0.0164, allocations: 353.1 kB / 353 MB, free: 11.89 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.429e-05/0.01645, allocations: 55.41 kB / 353.1 MB, free: 11.82 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004806/0.01693, allocations: 0.5373 MB / 353.6 MB, free: 11.27 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.585e-05/0.01696, allocations: 41.69 kB / 353.6 MB, free: 11.22 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002516/0.01722, allocations: 410.5 kB / 354 MB, free: 10.81 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.53e-05/0.01731, allocations: 107.2 kB / 354.1 MB, free: 10.71 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001533/0.01746, allocations: 143.9 kB / 354.3 MB, free: 10.56 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001759/0.01764, allocations: 0.5391 MB / 354.8 MB, free: 10.01 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001396/0.01778, allocations: 61.61 kB / 354.9 MB, free: 9.949 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004202/0.0182, allocations: 0.5901 MB / 355.5 MB, free: 9.117 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007901/0.01899, allocations: 0.786 MB / 356.3 MB, free: 8.086 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.218e-05/0.019, allocations: 4 kB / 356.3 MB, free: 8.082 MB / 282.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.0009351/0.01994, allocations: 0.5941 MB / 356.9 MB, free: 7.484 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.633e-05/0.01996, allocations: 14.66 kB / 356.9 MB, free: 7.473 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.838e-05/0.01998, allocations: 12 kB / 356.9 MB, free: 7.461 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.209e-05/0.02001, allocations: 16 kB / 356.9 MB, free: 7.445 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004354/0.02045, allocations: 159.7 kB / 357.1 MB, free: 7.289 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.545e-05/0.02048, allocations: 27.81 kB / 357.1 MB, free: 7.262 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002957/0.02077, allocations: 83.44 kB / 357.2 MB, free: 7.18 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.506e-05/0.02082, allocations: 36.34 kB / 357.2 MB, free: 7.145 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.0003072/0.02112, allocations: 274.7 kB / 357.5 MB, free: 6.863 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.084e-05/0.02121, allocations: 71.61 kB / 357.5 MB, free: 6.793 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.15e-05/0.02131, allocations: 53.23 kB / 357.6 MB, free: 6.738 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.472e-06/0.02131, allocations: 7.984 kB / 357.6 MB, free: 6.73 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/0.02132, allocations: 0 / 357.6 MB, free: 6.73 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.712e-06/0.02132, allocations: 7.938 kB / 357.6 MB, free: 6.723 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003865/0.02171, allocations: 332.3 kB / 357.9 MB, free: 6.363 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.02172, allocations: 0 / 357.9 MB, free: 6.363 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002193/0.02194, allocations: 47.97 kB / 358 MB, free: 6.316 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.809e-06/0.02194, allocations: 4 kB / 358 MB, free: 6.312 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.762e-05/0.02198, allocations: 7.984 kB / 358 MB, free: 6.305 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.02198, allocations: 0 / 358 MB, free: 6.305 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.02198, allocations: 4 kB / 358 MB, free: 6.301 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006938/0.02268, allocations: 420.8 kB / 358.4 MB, free: 5.867 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.618e-05/0.02274, allocations: 47.56 kB / 358.5 MB, free: 5.82 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.917e-05/0.0228, allocations: 23.98 kB / 358.5 MB, free: 5.797 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001059/0.02291, allocations: 4 kB / 358.5 MB, free: 5.793 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.226e-05/0.02297, allocations: 27.89 kB / 358.5 MB, free: 5.766 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.294e-05/0.02299, allocations: 12 kB / 358.5 MB, free: 5.754 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002828/0.02328, allocations: 314.8 kB / 358.8 MB, free: 5.449 MB / 282.7 MB Notification: Performance of sort global known variables: time 1e-07/0.02328, allocations: 0 / 358.8 MB, free: 5.449 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005524/0.02383, allocations: 107.8 kB / 358.9 MB, free: 5.344 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.0001898/0.02402, allocations: 127.7 kB / 359.1 MB, free: 5.211 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000527/0.02455, allocations: 312.7 kB / 359.4 MB, free: 4.906 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.02455, allocations: 0 / 359.4 MB, free: 4.906 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001572/0.0247, allocations: 95.83 kB / 359.5 MB, free: 4.809 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003273/0.02503, allocations: 64.23 kB / 359.5 MB, free: 4.746 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001361/0.02639, allocations: 0.8828 MB / 360.4 MB, free: 3.828 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001127/0.02651, allocations: 145.2 kB / 360.5 MB, free: 3.664 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001944/0.0267, allocations: 92.73 kB / 360.6 MB, free: 3.574 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.566e-05/0.02678, allocations: 36.5 kB / 360.7 MB, free: 3.539 MB / 282.7 MB Notification: Performance of SimCode: time 8.92e-07/0.02678, allocations: 0 / 360.7 MB, free: 3.539 MB / 282.7 MB Notification: Performance of Templates: time 0.008205/0.03498, allocations: 3.343 MB / 364 MB, free: 248 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.140278785955161]