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.0008752/0.000875, allocations: 91.77 kB / 15.06 MB, free: 1.098 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.000916/0.0009162, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.526/1.526, allocations: 205.4 MB / 222.1 MB, free: 5.512 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05477/0.05477, allocations: 10.75 MB / 281.1 MB, free: 10.41 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.0004748/0.000475, allocations: 19.98 kB / 341.6 MB, free: 23.8 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08907/0.08956, allocations: 50 MB / 391.6 MB, free: 5.73 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ControlProblems.CascadeControl): time 0.002395/0.092, allocations: 1.917 MB / 393.6 MB, free: 3.801 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001153/0.09318, allocations: 0.6546 MB / 394.2 MB, free: 3.145 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001631/0.09336, allocations: 15.81 kB / 394.2 MB, free: 3.129 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001986/0.09357, allocations: 51.52 kB / 394.3 MB, free: 3.078 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001089/0.09369, allocations: 35.72 kB / 394.3 MB, free: 3.043 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006727/0.09437, allocations: 271.5 kB / 394.6 MB, free: 2.777 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005775/0.09496, allocations: 0.5806 MB / 395.2 MB, free: 2.195 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001836/0.09515, allocations: 69.75 kB / 395.2 MB, free: 2.125 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002668/0.09543, allocations: 211.1 kB / 395.4 MB, free: 1.918 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00029/0.09572, allocations: 223 kB / 395.7 MB, free: 1.699 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.857e-05/0.09578, allocations: 16 kB / 395.7 MB, free: 1.684 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001241/0.09591, allocations: 39.97 kB / 395.7 MB, free: 1.645 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001553/0.09608, allocations: 127.6 kB / 395.8 MB, free: 1.52 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001039/0.09619, allocations: 93.45 kB / 395.9 MB, free: 1.422 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003225/0.09652, allocations: 323.6 kB / 396.2 MB, free: 1.105 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.09653, allocations: 3.938 kB / 396.2 MB, free: 1.102 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.09654, allocations: 3.938 kB / 396.2 MB, free: 1.098 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.474e-06/0.09656, allocations: 4 kB / 396.3 MB, free: 1.094 MB / 286.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.001308/0.09787, allocations: 0.7423 MB / 397 MB, free: 312 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.186e-05/0.09792, allocations: 8.031 kB / 397 MB, free: 304 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001108/0.09803, allocations: 67.19 kB / 397.1 MB, free: 236 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005626/0.09861, allocations: 420.7 kB / 397.5 MB, free: 15.78 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.289e-05/0.09866, allocations: 32.98 kB / 397.5 MB, free: 15.75 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.877e-05/0.09873, allocations: 40 kB / 397.5 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007933/0.09953, allocations: 495.7 kB / 398 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.388e-05/0.09957, allocations: 11.89 kB / 398 MB, free: 15.19 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.051e-05/0.09962, allocations: 16 kB / 398.1 MB, free: 15.17 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.899e-06/0.09963, allocations: 8 kB / 398.1 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000574/0.1002, allocations: 331.7 kB / 398.4 MB, free: 14.84 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002259/0.1025, allocations: 1.598 MB / 400 MB, free: 13.15 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005396/0.103, allocations: 266 kB / 400.2 MB, free: 12.89 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001969/0.1032, allocations: 109.2 kB / 400.4 MB, free: 12.78 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.956e-05/0.1033, allocations: 8.234 kB / 400.4 MB, free: 12.77 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003633/0.1036, allocations: 203.4 kB / 400.6 MB, free: 12.56 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.984e-06/0.1037, allocations: 4 kB / 400.6 MB, free: 12.55 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.0008316/0.1045, allocations: 493.6 kB / 401 MB, free: 12.06 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.307e-05/0.1045, allocations: 63.41 kB / 401.1 MB, free: 11.99 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004507/0.105, allocations: 493.8 kB / 401.6 MB, free: 11.49 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.206e-05/0.105, allocations: 37.7 kB / 401.6 MB, free: 11.45 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001994/0.1052, allocations: 299.5 kB / 401.9 MB, free: 11.15 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.008e-05/0.1053, allocations: 98.7 kB / 402 MB, free: 11.05 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.522e-05/0.1054, allocations: 12 kB / 402 MB, free: 11.04 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001385/0.1055, allocations: 370.8 kB / 402.4 MB, free: 10.67 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002021/0.1057, allocations: 117.1 kB / 402.5 MB, free: 10.56 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000376/0.1061, allocations: 414.7 kB / 402.9 MB, free: 10.02 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003092/0.1064, allocations: 211.6 kB / 403.1 MB, free: 9.809 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.552e-06/0.1064, allocations: 4 kB / 403.1 MB, free: 9.805 MB / 302.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.0009219/0.1074, allocations: 0.6371 MB / 403.8 MB, free: 9.16 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.237e-05/0.1074, allocations: 8 kB / 403.8 MB, free: 9.152 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.677e-05/0.1074, allocations: 15.95 kB / 403.8 MB, free: 9.137 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.603e-05/0.1074, allocations: 16.72 kB / 403.8 MB, free: 9.121 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003895/0.1078, allocations: 135.8 kB / 403.9 MB, free: 8.988 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.92e-05/0.1079, allocations: 15.94 kB / 403.9 MB, free: 8.973 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002463/0.1081, allocations: 75.27 kB / 404 MB, free: 8.898 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.826e-05/0.1082, allocations: 32 kB / 404.1 MB, free: 8.867 MB / 302.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.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] P_outer.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] P_outer.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real P2.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] P2.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] P2.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real 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 ($PRE.R.FBout,R.FBout,$PRE.R.cs,R.cs,$PRE.R.satin,R.satin,$PRE.R_outer.CS,R_outer.CS,$PRE.R_outer.FBout,R_outer.FBout,$PRE.R_outer.cs,R_outer.cs,$PRE.R_outer.satin,R_outer.satin,$PRE.R_inner.FBout,R_inner.FBout,$PRE.R_inner.cs,R_inner.cs,$PRE.R_inner.satin,R_inner.satin,$whenCondition2,$whenCondition1,$PRE.R.CS,R.CS,$PRE.R_inner.CS,R_inner.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003391/0.1085, allocations: 251.2 kB / 404.3 MB, free: 8.609 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.425e-05/0.1086, allocations: 47.44 kB / 404.3 MB, free: 8.562 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.961e-05/0.1087, allocations: 57.05 kB / 404.4 MB, free: 8.504 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.853e-06/0.1087, allocations: 7.953 kB / 404.4 MB, free: 8.496 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.1087, allocations: 0 / 404.4 MB, free: 8.496 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.1087, allocations: 3.984 kB / 404.4 MB, free: 8.492 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000449/0.1092, allocations: 421.2 kB / 404.8 MB, free: 8.031 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.1092, allocations: 0 / 404.8 MB, free: 8.031 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002762/0.1095, allocations: 55.91 kB / 404.9 MB, free: 7.977 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/0.1095, allocations: 4 kB / 404.9 MB, free: 7.973 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.418e-05/0.1095, allocations: 15.98 kB / 404.9 MB, free: 7.957 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.1095, allocations: 0 / 404.9 MB, free: 7.957 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.1095, allocations: 3.953 kB / 404.9 MB, free: 7.953 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008648/0.1104, allocations: 0.5513 MB / 405.5 MB, free: 7.383 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.889e-05/0.1105, allocations: 120.5 kB / 405.6 MB, free: 7.246 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.439e-05/0.1106, allocations: 19.98 kB / 405.6 MB, free: 7.227 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000127/0.1107, allocations: 11.92 kB / 405.6 MB, free: 7.215 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.01e-05/0.1108, allocations: 19.94 kB / 405.6 MB, free: 7.195 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.472e-05/0.1108, allocations: 15.98 kB / 405.6 MB, free: 7.18 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003223/0.1111, allocations: 322.8 kB / 406 MB, free: 6.867 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1111, allocations: 7.938 kB / 406 MB, free: 6.859 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004344/0.1116, allocations: 87.84 kB / 406 MB, free: 6.773 MB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001572/0.1118, allocations: 123.2 kB / 406.2 MB, free: 6.645 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006607/0.1124, allocations: 402.4 kB / 406.6 MB, free: 6.254 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1124, allocations: 4.812 kB / 406.6 MB, free: 6.25 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002322/0.1127, allocations: 139.9 kB / 406.7 MB, free: 6.113 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003153/0.113, allocations: 62.38 kB / 406.8 MB, free: 6.055 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001276/0.1143, allocations: 1.013 MB / 407.8 MB, free: 5.012 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003934/0.1147, allocations: 0.8701 MB / 408.6 MB, free: 4.117 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002264/0.1149, allocations: 88.39 kB / 408.7 MB, free: 4.031 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.933e-05/0.115, allocations: 31.44 kB / 408.8 MB, free: 4 MB / 302.1 MB Notification: Performance of SimCode: time 5.81e-07/0.115, allocations: 7.938 kB / 408.8 MB, free: 3.992 MB / 302.1 MB Notification: Performance of Templates: time 0.006983/0.122, allocations: 2.963 MB / 411.7 MB, free: 1.023 MB / 302.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: