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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(IndustrialControlSystems.Applications.ControlProblems.CascadeControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl") translateModel(IndustrialControlSystems.Applications.ControlProblems.CascadeControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001832/0.001832, allocations: 182.8 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.08201/0.08201, allocations: 10.75 MB / 27.48 MB, free: 1.875 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.404/1.404, allocations: 205.1 MB / 235.7 MB, free: 11.73 MB / 202.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009798/0.0009799, allocations: 94.31 kB / 285.5 MB, free: 12.87 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 0.0009739/0.0009739, allocations: 47.92 kB / 345.3 MB, free: 0.9805 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1937/0.1947, allocations: 49.01 MB / 394.3 MB, free: 35.59 MB / 298.8 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ControlProblems.CascadeControl): time 0.002526/0.1973, allocations: 2.38 MB / 396.7 MB, free: 33.19 MB / 298.8 MB Notification: Performance of NFInst.instExpressions: time 0.0008851/0.1982, allocations: 0.6699 MB / 397.3 MB, free: 32.52 MB / 298.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000151/0.1983, allocations: 19.81 kB / 397.4 MB, free: 32.5 MB / 298.8 MB Notification: Performance of NFTyping.typeComponents: time 0.0001904/0.1985, allocations: 51.58 kB / 397.4 MB, free: 32.45 MB / 298.8 MB Notification: Performance of NFTyping.typeBindings: time 9.641e-05/0.1986, allocations: 31.67 kB / 397.4 MB, free: 32.42 MB / 298.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005096/0.1992, allocations: 299.5 kB / 397.7 MB, free: 32.12 MB / 298.8 MB Notification: Performance of NFFlatten.flatten: time 0.0003967/0.1996, allocations: 0.6431 MB / 398.4 MB, free: 31.48 MB / 298.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001494/0.1997, allocations: 81.77 kB / 398.5 MB, free: 31.4 MB / 298.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000162/0.1999, allocations: 223 kB / 398.7 MB, free: 31.18 MB / 298.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001859/0.2001, allocations: 230.9 kB / 398.9 MB, free: 30.95 MB / 298.8 MB Notification: Performance of NFPackage.collectConstants: time 4.841e-05/0.2001, allocations: 20 kB / 398.9 MB, free: 30.93 MB / 298.8 MB Notification: Performance of NFFlatten.collectFunctions: time 8.638e-05/0.2002, allocations: 39.98 kB / 399 MB, free: 30.89 MB / 298.8 MB Notification: Performance of NFScalarize.scalarize: time 0.0001081/0.2003, allocations: 143.5 kB / 399.1 MB, free: 30.75 MB / 298.8 MB Notification: Performance of NFVerifyModel.verify: time 0.000113/0.2005, allocations: 206.5 kB / 399.3 MB, free: 30.55 MB / 298.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0002661/0.2007, allocations: 440.5 kB / 399.7 MB, free: 30.12 MB / 298.8 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.2007, allocations: 4 kB / 399.7 MB, free: 30.12 MB / 298.8 MB Notification: Performance of FrontEnd: time 1.022e-06/0.2008, allocations: 0 / 399.7 MB, free: 30.12 MB / 298.8 MB Notification: Performance of Transformations before backend: time 5.43e-06/0.2008, allocations: 0 / 399.7 MB, free: 30.12 MB / 298.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 101 * Number of variables: 101 Notification: Performance of Generate backend data structure: time 0.001014/0.2018, allocations: 0.8286 MB / 400.6 MB, free: 29.23 MB / 298.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.16e-05/0.2018, allocations: 12.03 kB / 400.6 MB, free: 29.22 MB / 298.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.64e-05/0.2019, allocations: 60.19 kB / 400.6 MB, free: 29.16 MB / 298.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004631/0.2024, allocations: 433.8 kB / 401.1 MB, free: 28.7 MB / 298.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.541e-05/0.2024, allocations: 33.36 kB / 401.1 MB, free: 28.67 MB / 298.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.708e-05/0.2025, allocations: 52.28 kB / 401.1 MB, free: 28.62 MB / 298.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005815/0.2031, allocations: 492.2 kB / 401.6 MB, free: 28.11 MB / 298.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.966e-05/0.2031, allocations: 4.188 kB / 401.6 MB, free: 28.11 MB / 298.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.363e-05/0.2031, allocations: 27.86 kB / 401.7 MB, free: 28.08 MB / 298.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.124e-06/0.2031, allocations: 8 kB / 401.7 MB, free: 28.07 MB / 298.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000452/0.2036, allocations: 327.7 kB / 402 MB, free: 27.76 MB / 298.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00179/0.2054, allocations: 1.598 MB / 403.6 MB, free: 26.07 MB / 298.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004301/0.2058, allocations: 260 kB / 403.8 MB, free: 25.8 MB / 298.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001581/0.206, allocations: 117.2 kB / 404 MB, free: 25.69 MB / 298.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.93e-05/0.206, allocations: 4.234 kB / 404 MB, free: 25.68 MB / 298.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002963/0.2063, allocations: 195.5 kB / 404.1 MB, free: 25.48 MB / 298.8 MB Notification: Performance of pre-optimization done (n=30): time 2.375e-06/0.2064, allocations: 0 / 404.1 MB, free: 25.48 MB / 298.8 MB Notification: Performance of matching and sorting (n=30): time 0.0006781/0.207, allocations: 473.4 kB / 404.6 MB, free: 25.01 MB / 298.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.86e-05/0.2071, allocations: 75.25 kB / 404.7 MB, free: 24.93 MB / 298.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000326/0.2074, allocations: 493.7 kB / 405.2 MB, free: 24.43 MB / 298.8 MB Notification: Performance of collectPreVariables (initialization): time 1.943e-05/0.2074, allocations: 41.69 kB / 405.2 MB, free: 24.38 MB / 298.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001187/0.2076, allocations: 295.6 kB / 405.5 MB, free: 24.09 MB / 298.8 MB Notification: Performance of collectInitialBindings (initialization): time 4.86e-05/0.2076, allocations: 102.7 kB / 405.6 MB, free: 23.99 MB / 298.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.503e-05/0.2077, allocations: 118 kB / 405.7 MB, free: 23.87 MB / 298.8 MB Notification: Performance of setup shared object (initialization): time 6.59e-05/0.2078, allocations: 362.8 kB / 406.1 MB, free: 23.5 MB / 298.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001696/0.208, allocations: 117.1 kB / 406.2 MB, free: 23.39 MB / 298.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002369/0.2082, allocations: 418.7 kB / 406.6 MB, free: 22.84 MB / 298.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001005/0.2092, allocations: 0.8225 MB / 407.4 MB, free: 21.88 MB / 298.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.2092, allocations: 0 / 407.4 MB, free: 21.88 MB / 298.8 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.0007044/0.2099, allocations: 0.6295 MB / 408 MB, free: 21.24 MB / 298.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.655e-05/0.21, allocations: 8 kB / 408 MB, free: 21.23 MB / 298.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/0.21, allocations: 8 kB / 408.1 MB, free: 21.22 MB / 298.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.957e-05/0.21, allocations: 16 kB / 408.1 MB, free: 21.21 MB / 298.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003662/0.2104, allocations: 131.7 kB / 408.2 MB, free: 21.08 MB / 298.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.374e-05/0.2104, allocations: 20.53 kB / 408.2 MB, free: 21.06 MB / 298.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002139/0.2106, allocations: 83.2 kB / 408.3 MB, free: 20.98 MB / 298.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.747e-05/0.2107, allocations: 32 kB / 408.3 MB, free: 20.95 MB / 298.8 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: 46 * Number of states: 0 () * Number of discrete variables: 32 (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.ATreq_in,R_outer.ATreq_in,R.ATreq_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (80): * Single equations (assignments): 80 * 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.000223/0.2109, allocations: 255.2 kB / 408.6 MB, free: 20.69 MB / 298.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.338e-05/0.2109, allocations: 47.34 kB / 408.6 MB, free: 20.64 MB / 298.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.682e-05/0.211, allocations: 57.05 kB / 408.7 MB, free: 20.58 MB / 298.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.211, allocations: 7.938 kB / 408.7 MB, free: 20.57 MB / 298.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.211, allocations: 0 / 408.7 MB, free: 20.57 MB / 298.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.211, allocations: 3.984 kB / 408.7 MB, free: 20.57 MB / 298.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002806/0.2113, allocations: 421.2 kB / 409.1 MB, free: 20.11 MB / 298.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.2113, allocations: 0 / 409.1 MB, free: 20.11 MB / 298.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002437/0.2116, allocations: 47.97 kB / 409.2 MB, free: 20.06 MB / 298.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.2116, allocations: 0 / 409.2 MB, free: 20.06 MB / 298.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.708e-05/0.2116, allocations: 15.98 kB / 409.2 MB, free: 20.05 MB / 298.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.2116, allocations: 3.938 kB / 409.2 MB, free: 20.04 MB / 298.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.2116, allocations: 4 kB / 409.2 MB, free: 20.04 MB / 298.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004169/0.2158, allocations: 3.093 MB / 412.3 MB, free: 16.8 MB / 298.8 MB Notification: Performance of postOpt removeConstants (simulation): time 6.071e-05/0.2159, allocations: 124.3 kB / 412.4 MB, free: 16.66 MB / 298.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.576e-05/0.216, allocations: 19.98 kB / 412.4 MB, free: 16.64 MB / 298.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001167/0.2161, allocations: 7.984 kB / 412.4 MB, free: 16.63 MB / 298.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.978e-05/0.2161, allocations: 19.92 kB / 412.4 MB, free: 16.61 MB / 298.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.98e-05/0.2162, allocations: 15.98 kB / 412.5 MB, free: 16.6 MB / 298.8 MB Notification: Performance of sorting global known variables: time 0.000216/0.2164, allocations: 330.8 kB / 412.8 MB, free: 16.28 MB / 298.8 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2164, allocations: 0 / 412.8 MB, free: 16.28 MB / 298.8 MB Notification: Performance of remove unused functions: time 0.0005004/0.2169, allocations: 127.7 kB / 412.9 MB, free: 16.15 MB / 298.8 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.0001204/0.217, allocations: 125.5 kB / 413 MB, free: 16.02 MB / 298.8 MB Notification: Performance of simCode: created initialization part: time 0.0005021/0.2175, allocations: 402.5 kB / 413.4 MB, free: 15.63 MB / 298.8 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.2175, allocations: 0 / 413.4 MB, free: 15.63 MB / 298.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0001859/0.2177, allocations: 144.6 kB / 413.6 MB, free: 15.49 MB / 298.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002862/0.218, allocations: 54.81 kB / 413.6 MB, free: 15.44 MB / 298.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001075/0.2191, allocations: 1.241 MB / 414.9 MB, free: 14.15 MB / 298.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002135/0.2193, allocations: 0.8818 MB / 415.7 MB, free: 13.24 MB / 298.8 MB Notification: Performance of simCode: alias equations: time 0.0001992/0.2195, allocations: 92.39 kB / 415.8 MB, free: 13.15 MB / 298.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.58e-05/0.2196, allocations: 39.44 kB / 415.9 MB, free: 13.11 MB / 298.8 MB Notification: Performance of SimCode: time 2.2e-07/0.2196, allocations: 0 / 415.9 MB, free: 13.11 MB / 298.8 MB Notification: Performance of Templates: time 0.005939/0.2256, allocations: 3.617 MB / 419.5 MB, free: 9.5 MB / 298.8 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl.makefile (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)