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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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/IndustrialControlSystems 1.1.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001474/0.001475, allocations: 101.6 kB / 16.35 MB, free: 5.875 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001371/0.001371, allocations: 191.8 kB / 17.29 MB, free: 5.516 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.652/1.652, allocations: 205.1 MB / 223.2 MB, free: 12.12 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05718/0.05718, allocations: 10.74 MB / 281.3 MB, free: 1.289 MB / 222.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001486/0.001486, allocations: 72.09 kB / 342 MB, free: 4.43 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3205/0.322, allocations: 49 MB / 391 MB, free: 49.91 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ControlProblems.CascadeControl): time 0.003454/0.3255, allocations: 2.341 MB / 393.3 MB, free: 48.25 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001292/0.3268, allocations: 0.6738 MB / 394 MB, free: 47.79 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00016/0.327, allocations: 15.78 kB / 394 MB, free: 47.78 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002372/0.3272, allocations: 75.83 kB / 394.1 MB, free: 47.73 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001093/0.3273, allocations: 46.11 kB / 394.1 MB, free: 47.69 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007993/0.3281, allocations: 344.9 kB / 394.5 MB, free: 47.51 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007272/0.3289, allocations: 0.6658 MB / 395.1 MB, free: 47.23 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001943/0.3291, allocations: 103.3 kB / 395.2 MB, free: 47.18 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002454/0.3293, allocations: 224.7 kB / 395.5 MB, free: 47.08 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002982/0.3296, allocations: 239.6 kB / 395.7 MB, free: 46.97 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.335e-05/0.3297, allocations: 34.38 kB / 395.7 MB, free: 46.97 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001244/0.3298, allocations: 60.23 kB / 395.8 MB, free: 46.96 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001578/0.33, allocations: 153.5 kB / 395.9 MB, free: 46.89 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001635/0.3302, allocations: 221.7 kB / 396.2 MB, free: 46.73 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000469/0.3306, allocations: 473.7 kB / 396.6 MB, free: 46.52 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.3307, allocations: 0 / 396.6 MB, free: 46.52 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.3307, allocations: 0.5156 kB / 396.6 MB, free: 46.52 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.556e-06/0.3307, allocations: 4 kB / 396.6 MB, free: 46.52 MB / 318.1 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.001661/0.3323, allocations: 0.8279 MB / 397.4 MB, free: 45.9 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.729e-05/0.3324, allocations: 9.906 kB / 397.5 MB, free: 45.9 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001386/0.3325, allocations: 65.73 kB / 397.5 MB, free: 45.86 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007969/0.3333, allocations: 461.4 kB / 398 MB, free: 45.54 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.338e-05/0.3334, allocations: 32.33 kB / 398 MB, free: 45.53 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001088/0.3335, allocations: 46.58 kB / 398 MB, free: 45.52 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009534/0.3345, allocations: 495.9 kB / 398.5 MB, free: 45.31 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.316e-05/0.3345, allocations: 2.406 kB / 398.5 MB, free: 45.31 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.306e-05/0.3346, allocations: 21.75 kB / 398.6 MB, free: 45.29 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.318e-05/0.3346, allocations: 9.062 kB / 398.6 MB, free: 45.29 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006168/0.3352, allocations: 322.6 kB / 398.9 MB, free: 45.19 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002137/0.3374, allocations: 1.595 MB / 400.5 MB, free: 43.91 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005419/0.3379, allocations: 256.2 kB / 400.7 MB, free: 43.79 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001889/0.3381, allocations: 110.2 kB / 400.8 MB, free: 43.73 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.296e-05/0.3381, allocations: 3.266 kB / 400.8 MB, free: 43.73 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003309/0.3385, allocations: 205.5 kB / 401 MB, free: 43.59 MB / 318.1 MB Notification: Performance of pre-optimization done (n=30): time 2.114e-06/0.3385, allocations: 1.344 kB / 401 MB, free: 43.59 MB / 318.1 MB Notification: Performance of matching and sorting (n=30): time 0.0008165/0.3393, allocations: 469 kB / 401.5 MB, free: 43.38 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.565e-05/0.3394, allocations: 66.56 kB / 401.6 MB, free: 43.31 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004776/0.3399, allocations: 498.4 kB / 402 MB, free: 43 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.78e-05/0.3399, allocations: 42.05 kB / 402.1 MB, free: 42.96 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001568/0.3401, allocations: 307.8 kB / 402.4 MB, free: 42.68 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.963e-05/0.3401, allocations: 101.1 kB / 402.5 MB, free: 42.6 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001231/0.3403, allocations: 115.5 kB / 402.6 MB, free: 42.52 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.884e-05/0.3403, allocations: 372.9 kB / 403 MB, free: 42.16 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002008/0.3406, allocations: 117.1 kB / 403.1 MB, free: 42.11 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003479/0.3409, allocations: 420.9 kB / 403.5 MB, free: 41.65 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00125/0.3422, allocations: 0.8098 MB / 404.3 MB, free: 40.98 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.937e-06/0.3422, allocations: 2.688 kB / 404.3 MB, free: 40.98 MB / 318.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.0009064/0.3431, allocations: 0.6219 MB / 404.9 MB, free: 40.66 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.515e-05/0.3431, allocations: 9.25 kB / 404.9 MB, free: 40.66 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.604e-05/0.3432, allocations: 12.22 kB / 404.9 MB, free: 40.66 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.195e-05/0.3432, allocations: 17.44 kB / 405 MB, free: 40.66 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004021/0.3436, allocations: 134.2 kB / 405.1 MB, free: 40.62 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.816e-05/0.3436, allocations: 21.48 kB / 405.1 MB, free: 40.61 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002712/0.3439, allocations: 74.83 kB / 405.2 MB, free: 40.56 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.209e-05/0.344, allocations: 35.94 kB / 405.2 MB, free: 40.55 MB / 318.1 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.0002973/0.3443, allocations: 250.8 kB / 405.5 MB, free: 40.35 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.875e-05/0.3443, allocations: 53.91 kB / 405.5 MB, free: 40.32 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.029e-05/0.3444, allocations: 52.7 kB / 405.6 MB, free: 40.28 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.953e-06/0.3444, allocations: 7.156 kB / 405.6 MB, free: 40.28 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.075e-06/0.3445, allocations: 0 / 405.6 MB, free: 40.28 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.3445, allocations: 1.031 kB / 405.6 MB, free: 40.28 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003739/0.3448, allocations: 422 kB / 406 MB, free: 39.92 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.936e-06/0.3449, allocations: 3.984 kB / 406 MB, free: 39.92 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002777/0.3451, allocations: 49.88 kB / 406 MB, free: 39.91 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/0.3451, allocations: 2.312 kB / 406 MB, free: 39.91 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.169e-05/0.3452, allocations: 21.3 kB / 406.1 MB, free: 39.89 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.868e-06/0.3452, allocations: 5.188 kB / 406.1 MB, free: 39.89 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.3452, allocations: 0 / 406.1 MB, free: 39.89 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000861/0.3461, allocations: 0.5403 MB / 406.6 MB, free: 39.6 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.955e-05/0.3462, allocations: 126.7 kB / 406.7 MB, free: 39.47 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.202e-05/0.3462, allocations: 17.5 kB / 406.8 MB, free: 39.46 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001357/0.3464, allocations: 13.05 kB / 406.8 MB, free: 39.45 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.071e-05/0.3464, allocations: 24.61 kB / 406.8 MB, free: 39.44 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.541e-05/0.3465, allocations: 16.2 kB / 406.8 MB, free: 39.43 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003106/0.3468, allocations: 320.4 kB / 407.1 MB, free: 39.24 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3468, allocations: 0 / 407.1 MB, free: 39.24 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004765/0.3473, allocations: 91.77 kB / 407.2 MB, free: 39.22 MB / 318.1 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.0001624/0.3475, allocations: 131.9 kB / 407.3 MB, free: 39.11 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006965/0.3482, allocations: 395.2 kB / 407.7 MB, free: 38.95 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.3482, allocations: 0 / 407.7 MB, free: 38.95 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002366/0.3484, allocations: 136.5 kB / 407.9 MB, free: 38.89 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003438/0.3488, allocations: 60.47 kB / 407.9 MB, free: 38.86 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001107/0.3499, allocations: 0.865 MB / 408.8 MB, free: 38.12 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002303/0.3501, allocations: 0.8738 MB / 409.7 MB, free: 37.22 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001793/0.3503, allocations: 88.39 kB / 409.7 MB, free: 37.13 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.205e-05/0.3504, allocations: 39.42 kB / 409.8 MB, free: 37.09 MB / 318.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3504, allocations: 4 kB / 409.8 MB, free: 37.09 MB / 318.1 MB Notification: Performance of Templates: time 0.007369/0.3578, allocations: 3.268 MB / 413.1 MB, free: 33.85 MB / 318.1 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 -s cvode -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl.pipe 2>&1)