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: "" <> buildModelFMU(IndustrialControlSystems.Applications.ControlProblems.CascadeControl,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Applications_ControlProblems_CascadeControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Applications.ControlProblems.CascadeControl,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Applications_ControlProblems_CascadeControl",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001475/0.001475, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001644/0.001644, allocations: 195.6 kB / 16.53 MB, free: 6.664 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.387/1.387, allocations: 205.1 MB / 222.4 MB, free: 4.605 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05719/0.05719, allocations: 10.74 MB / 280.5 MB, free: 10.5 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.00143/0.001431, allocations: 71.88 kB / 340.7 MB, free: 23.22 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.083/0.08444, allocations: 49.01 MB / 389.7 MB, free: 6.145 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ControlProblems.CascadeControl): time 0.003464/0.08794, allocations: 2.334 MB / 392 MB, free: 3.789 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001213/0.08916, allocations: 0.6777 MB / 392.7 MB, free: 3.109 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001437/0.08932, allocations: 15.88 kB / 392.7 MB, free: 3.094 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002125/0.08954, allocations: 75.2 kB / 392.8 MB, free: 3.02 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001197/0.08968, allocations: 51.42 kB / 392.8 MB, free: 2.969 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006557/0.09034, allocations: 335.4 kB / 393.1 MB, free: 2.641 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006085/0.09096, allocations: 0.6743 MB / 393.8 MB, free: 1.965 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001743/0.09114, allocations: 90.03 kB / 393.9 MB, free: 1.875 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002309/0.09138, allocations: 239.2 kB / 394.1 MB, free: 1.641 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002639/0.09165, allocations: 234.9 kB / 394.4 MB, free: 1.41 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.534e-05/0.09173, allocations: 40 kB / 394.4 MB, free: 1.371 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001087/0.09184, allocations: 55.98 kB / 394.5 MB, free: 1.316 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001609/0.09201, allocations: 151.5 kB / 394.6 MB, free: 1.168 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001803/0.09219, allocations: 218.5 kB / 394.8 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004211/0.09262, allocations: 462.3 kB / 395.3 MB, free: 0.5 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.09263, allocations: 0 / 395.3 MB, free: 0.5 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.09264, allocations: 0 / 395.3 MB, free: 0.5 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.762e-06/0.09265, allocations: 0 / 395.3 MB, free: 0.5 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.001312/0.09397, allocations: 0.8363 MB / 396.1 MB, free: 15.61 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.665e-05/0.09401, allocations: 11.89 kB / 396.1 MB, free: 15.6 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.721e-05/0.09411, allocations: 90.64 kB / 396.2 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001026/0.09422, allocations: 64.19 kB / 396.3 MB, free: 15.44 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005143/0.09474, allocations: 429.7 kB / 396.7 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.762e-05/0.09477, allocations: 29.38 kB / 396.7 MB, free: 14.95 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.317e-05/0.09486, allocations: 52.36 kB / 396.8 MB, free: 14.9 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007284/0.09559, allocations: 484.2 kB / 397.2 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.335e-05/0.09562, allocations: 7.938 kB / 397.3 MB, free: 14.4 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.023e-05/0.09567, allocations: 20 kB / 397.3 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.089e-05/0.09569, allocations: 8 kB / 397.3 MB, free: 14.37 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005953/0.09629, allocations: 327.7 kB / 397.6 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002264/0.09856, allocations: 1.594 MB / 399.2 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005214/0.0991, allocations: 266.2 kB / 399.5 MB, free: 12.1 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002019/0.09931, allocations: 106.4 kB / 399.6 MB, free: 11.99 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.617e-05/0.09934, allocations: 4.234 kB / 399.6 MB, free: 11.99 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003323/0.09967, allocations: 199.4 kB / 399.8 MB, free: 11.78 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.743e-06/0.09969, allocations: 0 / 399.8 MB, free: 11.78 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.0008258/0.1005, allocations: 481.5 kB / 400.2 MB, free: 11.3 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.522e-05/0.1006, allocations: 71.38 kB / 400.3 MB, free: 11.22 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000514/0.1011, allocations: 497.8 kB / 400.8 MB, free: 10.72 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.942e-05/0.1012, allocations: 37.7 kB / 400.8 MB, free: 10.68 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001852/0.1013, allocations: 303.5 kB / 401.1 MB, free: 10.38 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.061e-05/0.1014, allocations: 98.7 kB / 401.2 MB, free: 10.28 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001218/0.1016, allocations: 110.2 kB / 401.3 MB, free: 10.17 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001378/0.1017, allocations: 362.8 kB / 401.7 MB, free: 9.805 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002182/0.1019, allocations: 117.1 kB / 401.8 MB, free: 9.691 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003774/0.1023, allocations: 426.6 kB / 402.2 MB, free: 9.133 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001321/0.1036, allocations: 0.8185 MB / 403 MB, free: 8.176 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.509e-06/0.1037, allocations: 0 / 403 MB, free: 8.176 MB / 302.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.0009435/0.1046, allocations: 0.6259 MB / 403.6 MB, free: 7.543 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.1046, allocations: 8.188 kB / 403.7 MB, free: 7.535 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.214e-05/0.1047, allocations: 12 kB / 403.7 MB, free: 7.523 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.044e-05/0.1047, allocations: 19.94 kB / 403.7 MB, free: 7.504 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004143/0.1051, allocations: 131.7 kB / 403.8 MB, free: 7.375 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.181e-05/0.1051, allocations: 19.94 kB / 403.8 MB, free: 7.355 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002484/0.1054, allocations: 75.27 kB / 403.9 MB, free: 7.281 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.773e-05/0.1054, allocations: 32 kB / 403.9 MB, free: 7.25 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.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.0003021/0.1058, allocations: 255 kB / 404.2 MB, free: 6.988 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.845e-05/0.1058, allocations: 43.44 kB / 404.2 MB, free: 6.945 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.41e-05/0.1059, allocations: 57.11 kB / 404.3 MB, free: 6.887 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.602e-06/0.1059, allocations: 7.938 kB / 404.3 MB, free: 6.879 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.782e-06/0.106, allocations: 7.938 kB / 404.3 MB, free: 6.871 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.106, allocations: 0 / 404.3 MB, free: 6.871 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004153/0.1064, allocations: 425.2 kB / 404.7 MB, free: 6.406 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.1064, allocations: 3.938 kB / 404.7 MB, free: 6.402 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002741/0.1067, allocations: 51.97 kB / 404.8 MB, free: 6.352 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.325e-06/0.1067, allocations: 0 / 404.8 MB, free: 6.352 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.14e-05/0.1067, allocations: 15.98 kB / 404.8 MB, free: 6.336 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.1067, allocations: 3.938 kB / 404.8 MB, free: 6.332 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.1067, allocations: 0 / 404.8 MB, free: 6.332 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008683/0.1076, allocations: 0.5473 MB / 405.3 MB, free: 5.766 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.203e-05/0.1077, allocations: 128.4 kB / 405.5 MB, free: 5.621 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.849e-05/0.1078, allocations: 15.92 kB / 405.5 MB, free: 5.605 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001405/0.1079, allocations: 11.98 kB / 405.5 MB, free: 5.594 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.172e-05/0.108, allocations: 19.98 kB / 405.5 MB, free: 5.574 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.349e-05/0.108, allocations: 11.98 kB / 405.5 MB, free: 5.562 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003054/0.1083, allocations: 326.8 kB / 405.8 MB, free: 5.246 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1083, allocations: 0 / 405.8 MB, free: 5.246 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000419/0.1088, allocations: 95.78 kB / 405.9 MB, free: 5.152 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 (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.00119/0.11, allocations: 1.123 MB / 407.1 MB, free: 4 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007022/0.1107, allocations: 417.2 kB / 407.5 MB, free: 3.594 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.1107, allocations: 0.8125 kB / 407.5 MB, free: 3.594 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002501/0.1109, allocations: 156.3 kB / 407.6 MB, free: 3.441 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003225/0.1113, allocations: 50.59 kB / 407.7 MB, free: 3.391 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004982/0.1163, allocations: 4.585 MB / 412.3 MB, free: 14.44 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004078/0.1167, allocations: 0.866 MB / 413.1 MB, free: 13.55 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002293/0.1169, allocations: 92.36 kB / 413.2 MB, free: 13.45 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001945/0.1171, allocations: 171.3 kB / 413.4 MB, free: 13.29 MB / 318.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1171, allocations: 0 / 413.4 MB, free: 13.29 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02543/0.1426, allocations: 7.874 MB / 421.3 MB, free: 5.473 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.592/7.735, allocations: 19.56 kB / 421.3 MB, free: 5.457 MB / 318.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Applications_ControlProblems_CascadeControl_fmu --startTime=0 --stopTime=90 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Applications_ControlProblems_CascadeControl.fmu > IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl.pipe 2>&1)