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.008385/0.008384, allocations: 101.6 kB / 15.73 MB, free: 6.059 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.001249/0.001249, allocations: 196.2 kB / 16.68 MB, free: 5.969 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.792/1.792, allocations: 205.1 MB / 222.6 MB, free: 4.207 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.0573/0.0573, allocations: 10.74 MB / 280.6 MB, free: 10.27 MB / 238.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.00135/0.00135, allocations: 72.53 kB / 390.8 MB, free: 5 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3779/0.3793, allocations: 49.02 MB / 439.9 MB, free: 5.301 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ControlProblems.CascadeControl): time 0.004901/0.3843, allocations: 2.33 MB / 442.2 MB, free: 3.633 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00161/0.3859, allocations: 0.6794 MB / 442.9 MB, free: 3.164 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002019/0.3862, allocations: 16.12 kB / 442.9 MB, free: 3.156 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003133/0.3865, allocations: 75.28 kB / 443 MB, free: 3.102 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001325/0.3866, allocations: 46.11 kB / 443 MB, free: 3.066 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009434/0.3876, allocations: 342 kB / 443.3 MB, free: 2.891 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008722/0.3885, allocations: 0.6755 MB / 444 MB, free: 2.605 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002276/0.3887, allocations: 103 kB / 444.1 MB, free: 2.547 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003147/0.389, allocations: 228.5 kB / 444.3 MB, free: 2.449 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003552/0.3894, allocations: 238.4 kB / 444.6 MB, free: 2.336 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.7e-05/0.3895, allocations: 34.91 kB / 444.6 MB, free: 2.336 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001546/0.3896, allocations: 60.33 kB / 444.7 MB, free: 2.328 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002027/0.3899, allocations: 157.6 kB / 444.8 MB, free: 2.25 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002314/0.3901, allocations: 213.5 kB / 445 MB, free: 2.098 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007053/0.3908, allocations: 481.3 kB / 445.5 MB, free: 1.887 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/0.3908, allocations: 7.938 kB / 445.5 MB, free: 1.879 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.3908, allocations: 0 / 445.5 MB, free: 1.879 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.021e-05/0.3908, allocations: 0 / 445.5 MB, free: 1.879 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.001549/0.3924, allocations: 0.8426 MB / 446.3 MB, free: 1.246 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.003e-05/0.3925, allocations: 10.62 kB / 446.4 MB, free: 1.246 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001256/0.3926, allocations: 65.78 kB / 446.4 MB, free: 1.211 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006774/0.3933, allocations: 473.6 kB / 446.9 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.85e-05/0.3933, allocations: 32.83 kB / 446.9 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001093/0.3935, allocations: 41.72 kB / 447 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001043/0.3945, allocations: 495.5 kB / 447.4 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.644e-05/0.3945, allocations: 2.469 kB / 447.4 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.854e-05/0.3946, allocations: 20.41 kB / 447.5 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.489e-05/0.3946, allocations: 9.094 kB / 447.5 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006637/0.3953, allocations: 325.5 kB / 447.8 MB, free: 452 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002472/0.3978, allocations: 1.597 MB / 449.4 MB, free: 15.17 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006059/0.3984, allocations: 257.6 kB / 449.6 MB, free: 15.04 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002344/0.3986, allocations: 113.9 kB / 449.8 MB, free: 14.98 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.805e-05/0.3987, allocations: 6.922 kB / 449.8 MB, free: 14.98 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000383/0.399, allocations: 206.3 kB / 450 MB, free: 14.84 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 2.053e-06/0.3991, allocations: 0 / 450 MB, free: 14.84 MB / 334.1 MB Notification: Performance of matching and sorting (n=30): time 0.0009529/0.4, allocations: 477.5 kB / 450.4 MB, free: 14.62 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.719e-05/0.4001, allocations: 62.22 kB / 450.5 MB, free: 14.55 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006206/0.4007, allocations: 495.9 kB / 451 MB, free: 14.25 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.016e-05/0.4008, allocations: 37.83 kB / 451 MB, free: 14.21 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002582/0.401, allocations: 307.6 kB / 451.3 MB, free: 13.93 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.914e-05/0.4011, allocations: 101.3 kB / 451.4 MB, free: 13.85 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001726/0.4013, allocations: 116.5 kB / 451.5 MB, free: 13.77 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000184/0.4015, allocations: 373.8 kB / 451.9 MB, free: 13.41 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002371/0.4018, allocations: 123.9 kB / 452 MB, free: 13.35 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004846/0.4023, allocations: 408.6 kB / 452.4 MB, free: 12.9 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001581/0.4039, allocations: 0.8191 MB / 453.2 MB, free: 12.22 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.158e-06/0.4039, allocations: 2.438 kB / 453.2 MB, free: 12.22 MB / 334.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001217/0.4051, allocations: 0.6313 MB / 453.9 MB, free: 11.89 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.387e-05/0.4051, allocations: 9.906 kB / 453.9 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.263e-05/0.4052, allocations: 9.469 kB / 453.9 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.684e-05/0.4052, allocations: 18.19 kB / 453.9 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004751/0.4057, allocations: 129.7 kB / 454 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.475e-05/0.4057, allocations: 22.02 kB / 454 MB, free: 11.85 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003356/0.4061, allocations: 75.39 kB / 454.1 MB, free: 11.8 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.176e-05/0.4061, allocations: 31.12 kB / 454.1 MB, free: 11.8 MB / 334.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.0004321/0.4066, allocations: 262.7 kB / 454.4 MB, free: 11.58 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.274e-05/0.4067, allocations: 49.73 kB / 454.5 MB, free: 11.55 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001104/0.4068, allocations: 53.45 kB / 454.5 MB, free: 11.51 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.205e-06/0.4068, allocations: 6.5 kB / 454.5 MB, free: 11.51 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.061e-05/0.4068, allocations: 5.25 kB / 454.5 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.582e-06/0.4068, allocations: 0 / 454.5 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005306/0.4074, allocations: 417.8 kB / 454.9 MB, free: 11.15 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.4074, allocations: 1.094 kB / 454.9 MB, free: 11.15 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002887/0.4077, allocations: 49.69 kB / 455 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.884e-06/0.4077, allocations: 4.984 kB / 455 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.742e-05/0.4077, allocations: 13.58 kB / 455 MB, free: 11.13 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.184e-06/0.4078, allocations: 9.125 kB / 455 MB, free: 11.12 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.4078, allocations: 0.9375 kB / 455 MB, free: 11.12 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001046/0.4088, allocations: 0.551 MB / 455.6 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001076/0.4089, allocations: 139.5 kB / 455.7 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.003e-05/0.409, allocations: 17.34 kB / 455.7 MB, free: 10.67 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001364/0.4092, allocations: 9.766 kB / 455.7 MB, free: 10.67 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.372e-05/0.4092, allocations: 21 kB / 455.7 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.187e-05/0.4093, allocations: 14.89 kB / 455.7 MB, free: 10.65 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000371/0.4097, allocations: 319.9 kB / 456.1 MB, free: 10.46 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4097, allocations: 4 kB / 456.1 MB, free: 10.46 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005002/0.4102, allocations: 96.17 kB / 456.2 MB, free: 10.43 MB / 334.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.0001889/0.4104, allocations: 128.2 kB / 456.3 MB, free: 10.32 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007646/0.4111, allocations: 388.1 kB / 456.7 MB, free: 10.17 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.4111, allocations: 0 / 456.7 MB, free: 10.17 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002721/0.4114, allocations: 141.5 kB / 456.8 MB, free: 10.11 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003635/0.4118, allocations: 54.09 kB / 456.9 MB, free: 10.08 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001612/0.4134, allocations: 0.8906 MB / 457.7 MB, free: 9.496 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004848/0.4139, allocations: 0.8662 MB / 458.6 MB, free: 8.719 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002384/0.4142, allocations: 91.23 kB / 458.7 MB, free: 8.676 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.01e-05/0.4142, allocations: 33.34 kB / 458.7 MB, free: 8.668 MB / 334.1 MB Notification: Performance of SimCode: time 6.91e-07/0.4143, allocations: 5.094 kB / 458.7 MB, free: 8.664 MB / 334.1 MB Notification: Performance of Templates: time 0.008869/0.4231, allocations: 3.346 MB / 462.1 MB, free: 6.109 MB / 334.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 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl.pipe 2>&1)