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.0009871/0.0009871, allocations: 92.2 kB / 20.19 MB, free: 4.363 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.001016/0.001016, allocations: 173.3 kB / 23.5 MB, free: 1.059 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.065/1.065, allocations: 177.1 MB / 203.8 MB, free: 5.645 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.03742/0.03742, allocations: 8.609 MB / 268.9 MB, free: 4.996 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.834e-06/1.834e-06, allocations: 0 / 340.9 MB, free: 9.938 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.793e-05/2.977e-05, allocations: 4.562 kB / 340.9 MB, free: 9.934 MB / 314.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ControlProblems.CascadeControl): time 0.004274/0.004303, allocations: 2.467 MB / 343.3 MB, free: 7.445 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001662/0.005966, allocations: 0.7303 MB / 344.1 MB, free: 6.715 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003011/0.006267, allocations: 31.62 kB / 344.1 MB, free: 6.684 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003178/0.006584, allocations: 98.98 kB / 344.2 MB, free: 6.586 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001715/0.006756, allocations: 47.44 kB / 344.2 MB, free: 6.539 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001187/0.007943, allocations: 467 kB / 344.7 MB, free: 6.082 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008471/0.00879, allocations: 0.6757 MB / 345.4 MB, free: 5.406 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002155/0.009006, allocations: 81.91 kB / 345.5 MB, free: 5.324 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004013/0.009407, allocations: 311.2 kB / 345.8 MB, free: 5.02 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003105/0.009717, allocations: 203.3 kB / 346 MB, free: 4.82 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 9.063e-05/0.009808, allocations: 40 kB / 346 MB, free: 4.781 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001318/0.00994, allocations: 55.98 kB / 346 MB, free: 4.727 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001968/0.01014, allocations: 171.4 kB / 346.2 MB, free: 4.559 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000161/0.0103, allocations: 147.4 kB / 346.4 MB, free: 4.414 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006093/0.01091, allocations: 406.3 kB / 346.8 MB, free: 4.016 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.01091, allocations: 0 / 346.8 MB, free: 4.016 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.01091, allocations: 0 / 346.8 MB, free: 4.016 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.094e-05/0.01092, allocations: 0 / 346.8 MB, free: 4.016 MB / 314.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.001528/0.01245, allocations: 0.9346 MB / 347.7 MB, free: 3.039 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.708e-05/0.0125, allocations: 12.03 kB / 347.7 MB, free: 3.027 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001915/0.01269, allocations: 120.5 kB / 347.8 MB, free: 2.91 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006898/0.01338, allocations: 440.8 kB / 348.3 MB, free: 2.453 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.46e-05/0.01343, allocations: 41.36 kB / 348.3 MB, free: 2.414 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.93e-05/0.01352, allocations: 56.31 kB / 348.3 MB, free: 2.359 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008164/0.01434, allocations: 0.5434 MB / 348.9 MB, free: 1.734 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.607e-05/0.01437, allocations: 4.125 kB / 348.9 MB, free: 1.73 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.343e-05/0.01442, allocations: 24.38 kB / 348.9 MB, free: 1.707 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.121e-05/0.01444, allocations: 16.38 kB / 348.9 MB, free: 1.691 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004556/0.0149, allocations: 209.6 kB / 349.1 MB, free: 1.488 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002999/0.0179, allocations: 3.136 MB / 352.3 MB, free: 14.2 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004659/0.01836, allocations: 179.9 kB / 352.5 MB, free: 14.02 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001201/0.01848, allocations: 57.05 kB / 352.5 MB, free: 13.96 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.533e-05/0.0185, allocations: 8.172 kB / 352.5 MB, free: 13.95 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002747/0.01877, allocations: 153.2 kB / 352.7 MB, free: 13.79 MB / 330.7 MB Notification: Performance of pre-optimization done (n=30): time 3.296e-06/0.01877, allocations: 0 / 352.7 MB, free: 13.79 MB / 330.7 MB Notification: Performance of matching and sorting (n=30): time 0.0009631/0.01974, allocations: 353.1 kB / 353 MB, free: 13.43 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.297e-05/0.01979, allocations: 63.41 kB / 353.1 MB, free: 13.36 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005224/0.02031, allocations: 0.5373 MB / 353.6 MB, free: 12.8 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.059e-05/0.02034, allocations: 33.7 kB / 353.6 MB, free: 12.77 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000262/0.02061, allocations: 414.5 kB / 354 MB, free: 12.36 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.681e-05/0.02069, allocations: 107.2 kB / 354.1 MB, free: 12.25 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001587/0.02085, allocations: 143.9 kB / 354.3 MB, free: 12.1 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001921/0.02104, allocations: 0.5391 MB / 354.8 MB, free: 11.55 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000145/0.02119, allocations: 57.61 kB / 354.9 MB, free: 11.5 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004245/0.02161, allocations: 0.5901 MB / 355.5 MB, free: 10.67 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000824/0.02244, allocations: 0.8002 MB / 356.3 MB, free: 9.625 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.08e-05/0.02245, allocations: 4 kB / 356.3 MB, free: 9.621 MB / 330.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.0009232/0.02337, allocations: 0.5873 MB / 356.9 MB, free: 9.027 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.503e-05/0.0234, allocations: 12 kB / 356.9 MB, free: 9.016 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.667e-05/0.02341, allocations: 12 kB / 356.9 MB, free: 9.004 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.308e-05/0.02345, allocations: 20 kB / 356.9 MB, free: 8.984 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004509/0.0239, allocations: 159.7 kB / 357.1 MB, free: 8.828 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.845e-05/0.02393, allocations: 27.86 kB / 357.1 MB, free: 8.801 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003041/0.02423, allocations: 83.41 kB / 357.2 MB, free: 8.719 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.733e-05/0.02428, allocations: 40 kB / 357.2 MB, free: 8.68 MB / 330.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.000302/0.02458, allocations: 270.9 kB / 357.5 MB, free: 8.402 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.048e-05/0.02466, allocations: 71.55 kB / 357.5 MB, free: 8.332 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.66e-05/0.02475, allocations: 53.28 kB / 357.6 MB, free: 8.281 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-06/0.02475, allocations: 4 kB / 357.6 MB, free: 8.277 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.02476, allocations: 0 / 357.6 MB, free: 8.277 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.775e-06/0.02476, allocations: 3.938 kB / 357.6 MB, free: 8.273 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003843/0.02515, allocations: 332.3 kB / 357.9 MB, free: 7.914 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.02515, allocations: 4 kB / 357.9 MB, free: 7.91 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002558/0.02541, allocations: 51.97 kB / 358 MB, free: 7.859 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.02541, allocations: 0 / 358 MB, free: 7.859 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.856e-05/0.02545, allocations: 11.98 kB / 358 MB, free: 7.848 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.952e-06/0.02546, allocations: 7.938 kB / 358 MB, free: 7.84 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.02546, allocations: 0 / 358 MB, free: 7.84 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006944/0.02615, allocations: 408.9 kB / 358.4 MB, free: 7.418 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.274e-05/0.02622, allocations: 51.56 kB / 358.5 MB, free: 7.367 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.794e-05/0.02628, allocations: 11.98 kB / 358.5 MB, free: 7.355 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001261/0.02641, allocations: 15.98 kB / 358.5 MB, free: 7.34 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.055e-05/0.02648, allocations: 19.91 kB / 358.5 MB, free: 7.32 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.662e-05/0.02651, allocations: 15.98 kB / 358.5 MB, free: 7.305 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003094/0.02682, allocations: 314.8 kB / 358.8 MB, free: 7 MB / 330.7 MB Notification: Performance of sort global known variables: time 9e-08/0.02682, allocations: 0 / 358.8 MB, free: 7 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005812/0.0274, allocations: 107.8 kB / 358.9 MB, free: 6.895 MB / 330.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.0002145/0.02761, allocations: 131.1 kB / 359.1 MB, free: 6.754 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005593/0.02817, allocations: 313.1 kB / 359.4 MB, free: 6.449 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.02817, allocations: 0 / 359.4 MB, free: 6.449 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001742/0.02835, allocations: 103.5 kB / 359.5 MB, free: 6.344 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00035/0.0287, allocations: 61.23 kB / 359.5 MB, free: 6.285 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001639/0.03034, allocations: 0.8834 MB / 360.4 MB, free: 5.367 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001151/0.03045, allocations: 141.2 kB / 360.5 MB, free: 5.207 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002225/0.03067, allocations: 92.55 kB / 360.6 MB, free: 5.113 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.826e-05/0.03075, allocations: 36.5 kB / 360.7 MB, free: 5.078 MB / 330.7 MB Notification: Performance of SimCode: time 1.072e-06/0.03075, allocations: 0 / 360.7 MB, free: 5.078 MB / 330.7 MB Notification: Performance of Templates: time 0.008632/0.03939, allocations: 3.343 MB / 364 MB, free: 1.781 MB / 330.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.1902572398539633]