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.002356/0.002356, allocations: 85.48 kB / 19.44 MB, free: 344 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.002923/0.002923, allocations: 173.2 kB / 22.76 MB, free: 1.664 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.638/1.638, allocations: 177.1 MB / 203.1 MB, free: 5.617 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.07058/0.07058, allocations: 8.618 MB / 268.2 MB, free: 4.953 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.1 MB, free: 8.762 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.533e-05/2.72e-05, allocations: 10.25 kB / 340.1 MB, free: 8.75 MB / 266.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ControlProblems.CascadeControl): time 0.003086/0.003113, allocations: 2.449 MB / 342.6 MB, free: 6.285 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001237/0.004351, allocations: 0.7303 MB / 343.3 MB, free: 5.555 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001912/0.004542, allocations: 27.69 kB / 343.3 MB, free: 5.527 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002324/0.004774, allocations: 103 kB / 343.4 MB, free: 5.426 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000128/0.004902, allocations: 51.36 kB / 343.5 MB, free: 5.375 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008409/0.005743, allocations: 463 kB / 343.9 MB, free: 4.922 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005042/0.006247, allocations: 0.6723 MB / 344.6 MB, free: 4.25 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001691/0.006417, allocations: 77.91 kB / 344.7 MB, free: 4.164 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002445/0.006661, allocations: 307.2 kB / 345 MB, free: 3.863 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002095/0.006871, allocations: 203.3 kB / 345.2 MB, free: 3.664 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.946e-05/0.00694, allocations: 40 kB / 345.2 MB, free: 3.625 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001125/0.007053, allocations: 63.97 kB / 345.3 MB, free: 3.562 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001302/0.007183, allocations: 167.4 kB / 345.5 MB, free: 3.398 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001355/0.007318, allocations: 143.5 kB / 345.6 MB, free: 3.258 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004237/0.007742, allocations: 0.5293 MB / 346.1 MB, free: 2.727 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.007746, allocations: 0 / 346.1 MB, free: 2.727 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.007747, allocations: 0 / 346.1 MB, free: 2.727 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.985e-06/0.007755, allocations: 8 kB / 346.1 MB, free: 2.719 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.001209/0.008963, allocations: 0.9616 MB / 347.1 MB, free: 1.719 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.897e-05/0.009002, allocations: 12.03 kB / 347.1 MB, free: 1.707 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001523/0.009155, allocations: 112.5 kB / 347.2 MB, free: 1.598 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005819/0.009737, allocations: 440.8 kB / 347.6 MB, free: 1.141 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.578e-05/0.009772, allocations: 37.38 kB / 347.7 MB, free: 1.105 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.573e-05/0.009838, allocations: 56.36 kB / 347.7 MB, free: 1.051 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006611/0.0105, allocations: 0.5818 MB / 348.3 MB, free: 400 kB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.579e-05/0.01052, allocations: 4.141 kB / 348.3 MB, free: 396 kB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.096e-05/0.01057, allocations: 32.36 kB / 348.4 MB, free: 364 kB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.031e-05/0.01058, allocations: 16.36 kB / 348.4 MB, free: 348 kB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004395/0.01102, allocations: 267.5 kB / 348.6 MB, free: 84 kB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003987/0.015, allocations: 3.238 MB / 351.9 MB, free: 12.7 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005892/0.01559, allocations: 219.9 kB / 352.1 MB, free: 12.48 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001765/0.01577, allocations: 72.75 kB / 352.2 MB, free: 12.4 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.285e-05/0.01579, allocations: 12.17 kB / 352.2 MB, free: 12.39 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003903/0.01618, allocations: 177.7 kB / 352.3 MB, free: 12.2 MB / 282.7 MB Notification: Performance of pre-optimization done (n=30): time 2.535e-06/0.01618, allocations: 0 / 352.3 MB, free: 12.2 MB / 282.7 MB Notification: Performance of matching and sorting (n=30): time 0.0009218/0.01711, allocations: 405.2 kB / 352.7 MB, free: 11.8 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003135/0.01742, allocations: 67.34 kB / 352.8 MB, free: 11.72 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007539/0.01817, allocations: 0.6272 MB / 353.4 MB, free: 11.08 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.085e-05/0.01821, allocations: 37.7 kB / 353.5 MB, free: 11.04 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003807/0.01859, allocations: 430.5 kB / 353.9 MB, free: 10.61 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001217/0.01872, allocations: 115.2 kB / 354 MB, free: 10.49 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002253/0.01894, allocations: 163.9 kB / 354.2 MB, free: 10.32 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0003753/0.01932, allocations: 0.5665 MB / 354.7 MB, free: 9.746 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002171/0.01953, allocations: 93.59 kB / 354.8 MB, free: 9.656 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007408/0.02027, allocations: 0.6292 MB / 355.4 MB, free: 8.785 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001257/0.02153, allocations: 0.8837 MB / 356.3 MB, free: 7.656 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.422e-06/0.02154, allocations: 4 kB / 356.3 MB, free: 7.652 MB / 282.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001183/0.02272, allocations: 0.6557 MB / 357 MB, free: 6.992 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.778e-05/0.02275, allocations: 12 kB / 357 MB, free: 6.98 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.016e-05/0.02277, allocations: 12 kB / 357 MB, free: 6.969 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.313e-05/0.0228, allocations: 16 kB / 357 MB, free: 6.953 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005184/0.02332, allocations: 155.8 kB / 357.2 MB, free: 6.801 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.607e-05/0.02336, allocations: 36.36 kB / 357.2 MB, free: 6.766 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003212/0.02368, allocations: 91.39 kB / 357.3 MB, free: 6.676 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.332e-05/0.02373, allocations: 36 kB / 357.3 MB, free: 6.641 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.0003996/0.02413, allocations: 270.8 kB / 357.6 MB, free: 6.363 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001027/0.02423, allocations: 71.56 kB / 357.7 MB, free: 6.293 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001184/0.02435, allocations: 57.22 kB / 357.7 MB, free: 6.234 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.02436, allocations: 4.125 kB / 357.7 MB, free: 6.23 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.13e-05/0.02437, allocations: 8 kB / 357.7 MB, free: 6.223 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.878e-06/0.02438, allocations: 7.922 kB / 357.7 MB, free: 6.215 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005507/0.02493, allocations: 384.3 kB / 358.1 MB, free: 5.805 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.02493, allocations: 0 / 358.1 MB, free: 5.805 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003039/0.02523, allocations: 51.97 kB / 358.2 MB, free: 5.754 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.02524, allocations: 0 / 358.2 MB, free: 5.754 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.523e-05/0.02528, allocations: 11.98 kB / 358.2 MB, free: 5.742 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.08e-06/0.02529, allocations: 4 kB / 358.2 MB, free: 5.738 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.02529, allocations: 0 / 358.2 MB, free: 5.738 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009626/0.02625, allocations: 488.8 kB / 358.7 MB, free: 5.238 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.087e-05/0.02634, allocations: 47.56 kB / 358.7 MB, free: 5.191 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.787e-05/0.02641, allocations: 19.98 kB / 358.7 MB, free: 5.172 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001299/0.02654, allocations: 4 kB / 358.7 MB, free: 5.168 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.649e-05/0.02662, allocations: 27.89 kB / 358.8 MB, free: 5.141 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.934e-05/0.02665, allocations: 12 kB / 358.8 MB, free: 5.129 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004383/0.02708, allocations: 358.8 kB / 359.1 MB, free: 4.781 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02708, allocations: 0 / 359.1 MB, free: 4.781 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005171/0.0276, allocations: 107.8 kB / 359.2 MB, free: 4.676 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.0002173/0.02782, allocations: 127.1 kB / 359.4 MB, free: 4.543 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001046/0.02886, allocations: 391.6 kB / 359.7 MB, free: 4.16 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.02887, allocations: 0 / 359.7 MB, free: 4.16 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002504/0.02912, allocations: 111.8 kB / 359.8 MB, free: 4.047 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003778/0.02949, allocations: 68.25 kB / 359.9 MB, free: 3.984 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001613/0.03111, allocations: 0.9219 MB / 360.8 MB, free: 3.027 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000331/0.03144, allocations: 286.7 kB / 361.1 MB, free: 2.719 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002299/0.03167, allocations: 84.61 kB / 361.2 MB, free: 2.637 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.878e-05/0.03176, allocations: 36.5 kB / 361.2 MB, free: 2.602 MB / 282.7 MB Notification: Performance of SimCode: time 6.11e-07/0.03176, allocations: 0 / 361.2 MB, free: 2.602 MB / 282.7 MB Notification: Performance of Templates: time 0.00964/0.0414, allocations: 3.338 MB / 364.6 MB, free: 15.31 MB / 298.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: 5.008818308007903]