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.001058/0.001058, allocations: 99 kB / 15.05 MB, free: 1.105 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.001053/0.001053, allocations: 177.3 kB / 15.94 MB, free: 228 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.688/1.688, allocations: 205.4 MB / 222.1 MB, free: 5.496 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.0544/0.0544, allocations: 10.74 MB / 281.1 MB, free: 10.45 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.0005163/0.0005161, allocations: 19.06 kB / 341.7 MB, free: 23.77 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1052, allocations: 50.01 MB / 391.7 MB, free: 5.684 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ControlProblems.CascadeControl): time 0.00264/0.1079, allocations: 1.941 MB / 393.6 MB, free: 3.73 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001347/0.1093, allocations: 0.6546 MB / 394.3 MB, free: 3.074 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001845/0.1095, allocations: 15.81 kB / 394.3 MB, free: 3.059 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002278/0.1097, allocations: 39.64 kB / 394.3 MB, free: 3.02 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001298/0.1098, allocations: 47.81 kB / 394.4 MB, free: 2.973 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007246/0.1106, allocations: 263.5 kB / 394.6 MB, free: 2.715 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005644/0.1112, allocations: 387 kB / 395 MB, free: 2.336 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002297/0.1114, allocations: 77.73 kB / 395.1 MB, free: 2.258 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002969/0.1117, allocations: 211.1 kB / 395.3 MB, free: 2.051 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002791/0.112, allocations: 199 kB / 395.5 MB, free: 1.855 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.652e-05/0.112, allocations: 16 kB / 395.5 MB, free: 1.84 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001114/0.1122, allocations: 35.97 kB / 395.6 MB, free: 1.805 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001525/0.1123, allocations: 127.5 kB / 395.7 MB, free: 1.68 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001084/0.1124, allocations: 105.4 kB / 395.8 MB, free: 1.57 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003601/0.1128, allocations: 327.5 kB / 396.1 MB, free: 1.25 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.1128, allocations: 0 / 396.1 MB, free: 1.25 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.1128, allocations: 0 / 396.1 MB, free: 1.25 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.805e-06/0.1128, allocations: 0 / 396.1 MB, free: 1.25 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.001324/0.1142, allocations: 0.7351 MB / 396.8 MB, free: 476 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.632e-05/0.1142, allocations: 8.031 kB / 396.8 MB, free: 468 kB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001148/0.1144, allocations: 86.45 kB / 396.9 MB, free: 372 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001063/0.1145, allocations: 67.14 kB / 397 MB, free: 304 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006904/0.1152, allocations: 428.8 kB / 397.4 MB, free: 15.83 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.427e-05/0.1152, allocations: 29 kB / 397.4 MB, free: 15.8 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.383e-05/0.1153, allocations: 47.98 kB / 397.5 MB, free: 15.76 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007962/0.1161, allocations: 483.7 kB / 398 MB, free: 15.26 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.448e-05/0.1161, allocations: 7.844 kB / 398 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.363e-05/0.1162, allocations: 19.98 kB / 398 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.685e-05/0.1162, allocations: 16 kB / 398 MB, free: 15.22 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005723/0.1168, allocations: 327.7 kB / 398.3 MB, free: 14.9 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002617/0.1194, allocations: 1.594 MB / 399.9 MB, free: 13.22 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005453/0.12, allocations: 258.3 kB / 400.2 MB, free: 12.96 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.758e-05/0.12, allocations: 4.234 kB / 400.2 MB, free: 12.96 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003668/0.1204, allocations: 203.4 kB / 400.4 MB, free: 12.75 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 2.504e-06/0.1204, allocations: 3.938 kB / 400.4 MB, free: 12.74 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.0009256/0.1213, allocations: 497.7 kB / 400.9 MB, free: 12.25 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.375e-05/0.1214, allocations: 59.41 kB / 400.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005397/0.1219, allocations: 493.8 kB / 401.4 MB, free: 11.68 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.567e-05/0.122, allocations: 33.7 kB / 401.4 MB, free: 11.64 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002506/0.1222, allocations: 303.5 kB / 401.7 MB, free: 11.34 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.565e-05/0.1223, allocations: 98.7 kB / 401.8 MB, free: 11.24 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.968e-05/0.1224, allocations: 15.94 kB / 401.8 MB, free: 11.23 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002018/0.1226, allocations: 366.8 kB / 402.2 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000211/0.1228, allocations: 117.1 kB / 402.3 MB, free: 10.75 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004316/0.1232, allocations: 418.7 kB / 402.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003327/0.1236, allocations: 203.6 kB / 402.9 MB, free: 10 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/0.1236, allocations: 4 kB / 402.9 MB, free: 9.996 MB / 302.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.0009875/0.1246, allocations: 0.6331 MB / 403.6 MB, free: 9.355 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.471e-05/0.1246, allocations: 8.938 kB / 403.6 MB, free: 9.348 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.845e-05/0.1247, allocations: 15.95 kB / 403.6 MB, free: 9.332 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.673e-05/0.1247, allocations: 20 kB / 403.6 MB, free: 9.312 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004192/0.1251, allocations: 135.8 kB / 403.7 MB, free: 9.18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.267e-05/0.1252, allocations: 19.92 kB / 403.8 MB, free: 9.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002719/0.1254, allocations: 75.27 kB / 403.8 MB, free: 9.086 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.984e-05/0.1255, allocations: 32 kB / 403.9 MB, free: 9.055 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.0003826/0.1259, allocations: 247.1 kB / 404.1 MB, free: 8.801 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.994e-05/0.126, allocations: 51.42 kB / 404.2 MB, free: 8.75 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.59e-05/0.1261, allocations: 49.06 kB / 404.2 MB, free: 8.699 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.368e-06/0.1261, allocations: 7.953 kB / 404.2 MB, free: 8.691 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.149e-05/0.1261, allocations: 3.984 kB / 404.2 MB, free: 8.688 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.005e-05/0.1261, allocations: 3.984 kB / 404.2 MB, free: 8.684 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005492/0.1267, allocations: 425.1 kB / 404.6 MB, free: 8.219 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.1267, allocations: 0 / 404.6 MB, free: 8.219 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002767/0.127, allocations: 55.97 kB / 404.7 MB, free: 8.164 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.112e-06/0.127, allocations: 4 kB / 404.7 MB, free: 8.16 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.129e-05/0.127, allocations: 7.984 kB / 404.7 MB, free: 8.152 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.127, allocations: 0 / 404.7 MB, free: 8.152 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.327e-06/0.127, allocations: 4.016 kB / 404.7 MB, free: 8.148 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009093/0.1279, allocations: 0.5668 MB / 405.3 MB, free: 7.562 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001175/0.1281, allocations: 116.5 kB / 405.4 MB, free: 7.43 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.429e-05/0.1281, allocations: 19.92 kB / 405.4 MB, free: 7.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001357/0.1283, allocations: 15.98 kB / 405.4 MB, free: 7.395 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.436e-05/0.1284, allocations: 23.92 kB / 405.4 MB, free: 7.371 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.288e-05/0.1284, allocations: 12 kB / 405.5 MB, free: 7.359 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003538/0.1287, allocations: 322.8 kB / 405.8 MB, free: 7.047 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1288, allocations: 3.938 kB / 405.8 MB, free: 7.043 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004453/0.1292, allocations: 95.73 kB / 405.9 MB, free: 6.949 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.001242/0.1305, allocations: 1.125 MB / 407 MB, free: 5.801 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006496/0.1311, allocations: 397.8 kB / 407.4 MB, free: 5.414 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.1311, allocations: 4.25 kB / 407.4 MB, free: 5.41 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002373/0.1314, allocations: 147.9 kB / 407.5 MB, free: 5.266 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002607/0.1316, allocations: 45.94 kB / 407.6 MB, free: 5.219 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006784/0.1384, allocations: 9.829 MB / 417.4 MB, free: 11.13 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005051/0.139, allocations: 0.8779 MB / 418.3 MB, free: 10.23 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002449/0.1392, allocations: 92.39 kB / 418.4 MB, free: 10.13 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002099/0.1394, allocations: 167.4 kB / 418.5 MB, free: 9.969 MB / 318.1 MB Notification: Performance of SimCode: time 6.21e-07/0.1395, allocations: 0 / 418.5 MB, free: 9.969 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02046/0.1599, allocations: 7.664 MB / 426.2 MB, free: 2.426 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001793/0.1601, allocations: 211.8 kB / 426.4 MB, free: 2.188 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.028/2.188, allocations: 3.938 kB / 426.4 MB, free: 2.184 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/linux/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) Environment - environmentSimulation: