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.00115/0.00115, allocations: 109.9 kB / 16.41 MB, free: 6.027 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.001138/0.001138, allocations: 186.6 kB / 17.34 MB, free: 5.633 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.386/1.386, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05759/0.05759, allocations: 10.75 MB / 281.3 MB, free: 1.293 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.001461/0.001461, allocations: 66.67 kB / 391.5 MB, free: 45.98 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.105, allocations: 49.03 MB / 440.5 MB, free: 3.848 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ControlProblems.CascadeControl): time 0.003218/0.1083, allocations: 2.344 MB / 442.9 MB, free: 1.488 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001524/0.1098, allocations: 0.6662 MB / 443.5 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001914/0.11, allocations: 15.88 kB / 443.5 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002464/0.1103, allocations: 79.19 kB / 443.6 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001126/0.1104, allocations: 47.48 kB / 443.7 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000855/0.1113, allocations: 347.3 kB / 444 MB, free: 348 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000698/0.112, allocations: 0.6707 MB / 444.7 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000248/0.1123, allocations: 89.61 kB / 444.8 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003159/0.1126, allocations: 243.1 kB / 445 MB, free: 15.34 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003235/0.1129, allocations: 234.9 kB / 445.2 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.539e-05/0.113, allocations: 36 kB / 445.3 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001341/0.1131, allocations: 59.97 kB / 445.3 MB, free: 15.01 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001811/0.1133, allocations: 143.6 kB / 445.5 MB, free: 14.87 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002281/0.1136, allocations: 230.5 kB / 445.7 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000503/0.1141, allocations: 470.2 kB / 446.2 MB, free: 14.18 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.097e-06/0.1141, allocations: 4 kB / 446.2 MB, free: 14.18 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.1141, allocations: 0 / 446.2 MB, free: 14.18 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.104e-05/0.1141, allocations: 4 kB / 446.2 MB, free: 14.18 MB / 334.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.001578/0.1157, allocations: 0.8324 MB / 447 MB, free: 13.29 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.5e-05/0.1158, allocations: 12.03 kB / 447 MB, free: 13.28 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001297/0.1159, allocations: 64.19 kB / 447.1 MB, free: 13.21 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006121/0.1165, allocations: 453.7 kB / 447.5 MB, free: 12.73 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.719e-05/0.1166, allocations: 41.34 kB / 447.5 MB, free: 12.69 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.936e-05/0.1167, allocations: 48.28 kB / 447.6 MB, free: 12.64 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007731/0.1174, allocations: 488.2 kB / 448.1 MB, free: 12.15 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.306e-05/0.1175, allocations: 8.188 kB / 448.1 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.757e-05/0.1175, allocations: 23.92 kB / 448.1 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.258e-05/0.1176, allocations: 12 kB / 448.1 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005707/0.1181, allocations: 315.7 kB / 448.4 MB, free: 11.8 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002348/0.1205, allocations: 1.598 MB / 450 MB, free: 10.11 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005391/0.121, allocations: 259.3 kB / 450.3 MB, free: 9.852 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002037/0.1213, allocations: 113.2 kB / 450.4 MB, free: 9.738 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.857e-05/0.1213, allocations: 4.234 kB / 450.4 MB, free: 9.734 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003646/0.1217, allocations: 199.5 kB / 450.6 MB, free: 9.52 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.753e-06/0.1217, allocations: 4 kB / 450.6 MB, free: 9.516 MB / 334.1 MB Notification: Performance of matching and sorting (n=30): time 0.0008527/0.1225, allocations: 470.2 kB / 451 MB, free: 9.051 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.441e-05/0.1226, allocations: 67.28 kB / 451.1 MB, free: 8.973 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005033/0.1231, allocations: 493.8 kB / 451.6 MB, free: 8.48 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.922e-05/0.1231, allocations: 37.69 kB / 451.6 MB, free: 8.438 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002146/0.1234, allocations: 303.5 kB / 451.9 MB, free: 8.133 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.12e-05/0.1235, allocations: 102.7 kB / 452 MB, free: 8.031 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001386/0.1236, allocations: 114.1 kB / 452.1 MB, free: 7.914 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001621/0.1238, allocations: 362.8 kB / 452.5 MB, free: 7.551 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002248/0.124, allocations: 113.1 kB / 452.6 MB, free: 7.438 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004732/0.1245, allocations: 422.7 kB / 453 MB, free: 6.883 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001461/0.126, allocations: 0.8186 MB / 453.8 MB, free: 5.922 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.592e-06/0.126, allocations: 0 / 453.8 MB, free: 5.922 MB / 334.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.0009765/0.127, allocations: 0.6293 MB / 454.5 MB, free: 5.285 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.367e-05/0.127, allocations: 8 kB / 454.5 MB, free: 5.277 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.554e-05/0.127, allocations: 12 kB / 454.5 MB, free: 5.266 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.706e-05/0.1271, allocations: 16.69 kB / 454.5 MB, free: 5.25 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000391/0.1275, allocations: 135.8 kB / 454.6 MB, free: 5.117 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.218e-05/0.1275, allocations: 23.92 kB / 454.7 MB, free: 5.094 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002504/0.1277, allocations: 67.28 kB / 454.7 MB, free: 5.027 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.646e-05/0.1278, allocations: 35.94 kB / 454.8 MB, free: 4.992 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.0003013/0.1281, allocations: 247.3 kB / 455 MB, free: 4.738 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.657e-05/0.1282, allocations: 55.33 kB / 455.1 MB, free: 4.684 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.906e-05/0.1283, allocations: 57.06 kB / 455.1 MB, free: 4.625 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.71e-06/0.1283, allocations: 11.88 kB / 455.1 MB, free: 4.613 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.1283, allocations: 0 / 455.1 MB, free: 4.613 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.834e-06/0.1283, allocations: 3.984 kB / 455.1 MB, free: 4.609 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004165/0.1287, allocations: 421.2 kB / 455.5 MB, free: 4.148 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.1287, allocations: 0 / 455.5 MB, free: 4.148 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002952/0.129, allocations: 47.97 kB / 455.6 MB, free: 4.102 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.4e-06/0.1291, allocations: 4 kB / 455.6 MB, free: 4.098 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.058e-05/0.1291, allocations: 11.98 kB / 455.6 MB, free: 4.086 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.386e-06/0.1291, allocations: 7.938 kB / 455.6 MB, free: 4.078 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1291, allocations: 3.938 kB / 455.6 MB, free: 4.074 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008467/0.13, allocations: 0.5473 MB / 456.2 MB, free: 3.508 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001074/0.1301, allocations: 124.4 kB / 456.3 MB, free: 3.367 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.83e-05/0.1302, allocations: 15.92 kB / 456.3 MB, free: 3.352 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001457/0.1303, allocations: 19.98 kB / 456.3 MB, free: 3.332 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.553e-05/0.1304, allocations: 19.97 kB / 456.3 MB, free: 3.312 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.082e-05/0.1304, allocations: 8 kB / 456.3 MB, free: 3.305 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003442/0.1308, allocations: 326.8 kB / 456.7 MB, free: 2.988 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1308, allocations: 0 / 456.7 MB, free: 2.988 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004228/0.1312, allocations: 91.78 kB / 456.8 MB, free: 2.898 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.0001823/0.1314, allocations: 123.1 kB / 456.9 MB, free: 2.77 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006309/0.132, allocations: 398.9 kB / 457.3 MB, free: 2.383 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.132, allocations: 8.125 kB / 457.3 MB, free: 2.375 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002298/0.1323, allocations: 135.8 kB / 457.4 MB, free: 2.242 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003292/0.1326, allocations: 61.19 kB / 457.5 MB, free: 2.188 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001313/0.1339, allocations: 0.9265 MB / 458.4 MB, free: 1.234 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004697/0.1344, allocations: 0.8698 MB / 459.3 MB, free: 348 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.445e-05/0.1345, allocations: 43.44 kB / 459.3 MB, free: 304 kB / 334.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1345, allocations: 0 / 459.3 MB, free: 304 kB / 334.1 MB Notification: Performance of Templates: time 0.009103/0.1436, allocations: 5.706 MB / 465 MB, free: 10.59 MB / 350.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)