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.001061/0.001061, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001094/0.001094, allocations: 194.3 kB / 16.14 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.454/1.454, allocations: 205.1 MB / 222 MB, free: 4.977 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.0562/0.0562, allocations: 10.74 MB / 280.1 MB, free: 10.93 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.001366/0.001366, allocations: 71.84 kB / 340 MB, free: 23.71 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09329/0.09467, allocations: 49.02 MB / 389 MB, free: 6.637 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ControlProblems.CascadeControl): time 0.003605/0.09832, allocations: 2.38 MB / 391.4 MB, free: 4.238 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001216/0.09955, allocations: 0.67 MB / 392 MB, free: 3.566 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001593/0.09972, allocations: 19.81 kB / 392 MB, free: 3.547 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002306/0.09997, allocations: 59.52 kB / 392.1 MB, free: 3.488 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001134/0.1001, allocations: 27.73 kB / 392.1 MB, free: 3.461 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006296/0.1007, allocations: 291.5 kB / 392.4 MB, free: 3.176 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005937/0.1013, allocations: 0.6431 MB / 393.1 MB, free: 2.531 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001829/0.1015, allocations: 85.98 kB / 393.1 MB, free: 2.445 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002265/0.1018, allocations: 219 kB / 393.4 MB, free: 2.23 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002772/0.102, allocations: 226.9 kB / 393.6 MB, free: 2.008 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.775e-05/0.1021, allocations: 20 kB / 393.6 MB, free: 1.988 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001031/0.1022, allocations: 43.97 kB / 393.6 MB, free: 1.945 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001476/0.1024, allocations: 143.5 kB / 393.8 MB, free: 1.805 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001767/0.1026, allocations: 198.5 kB / 394 MB, free: 1.609 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000417/0.103, allocations: 442.3 kB / 394.4 MB, free: 1.176 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.399e-06/0.103, allocations: 4 kB / 394.4 MB, free: 1.172 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.435e-06/0.103, allocations: 0 / 394.4 MB, free: 1.172 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.334e-06/0.103, allocations: 7.938 kB / 394.4 MB, free: 1.164 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.001352/0.1044, allocations: 0.832 MB / 395.2 MB, free: 288 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.139e-05/0.1044, allocations: 8.031 kB / 395.3 MB, free: 280 kB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.301e-05/0.1045, allocations: 82.7 kB / 395.3 MB, free: 188 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.317e-05/0.1046, allocations: 60.19 kB / 395.4 MB, free: 128 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005316/0.1052, allocations: 445.6 kB / 395.8 MB, free: 15.65 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.322e-05/0.1052, allocations: 33.38 kB / 395.9 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.174e-05/0.1053, allocations: 40.38 kB / 395.9 MB, free: 15.58 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007838/0.1061, allocations: 496.3 kB / 396.4 MB, free: 15.07 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.053e-05/0.1061, allocations: 3.938 kB / 396.4 MB, free: 15.07 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.711e-05/0.1062, allocations: 16 kB / 396.4 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.252e-05/0.1062, allocations: 12 kB / 396.4 MB, free: 15.04 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005598/0.1067, allocations: 323.7 kB / 396.7 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002216/0.109, allocations: 1.598 MB / 398.3 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005184/0.1095, allocations: 255.4 kB / 398.6 MB, free: 12.78 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001928/0.1097, allocations: 105.3 kB / 398.7 MB, free: 12.67 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.893e-05/0.1097, allocations: 8.234 kB / 398.7 MB, free: 12.66 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003671/0.1101, allocations: 204 kB / 398.9 MB, free: 12.45 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 2.214e-06/0.1101, allocations: 0 / 398.9 MB, free: 12.45 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.0008463/0.111, allocations: 488.7 kB / 399.4 MB, free: 11.97 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.988e-05/0.111, allocations: 59.41 kB / 399.4 MB, free: 11.9 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004685/0.1115, allocations: 497.8 kB / 399.9 MB, free: 11.4 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.694e-05/0.1115, allocations: 37.7 kB / 399.9 MB, free: 11.36 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002022/0.1118, allocations: 299.5 kB / 400.2 MB, free: 11.06 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.987e-05/0.1118, allocations: 94.7 kB / 400.3 MB, free: 10.96 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001267/0.112, allocations: 114.1 kB / 400.4 MB, free: 10.85 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001377/0.1121, allocations: 370.8 kB / 400.8 MB, free: 10.48 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002121/0.1123, allocations: 117.1 kB / 400.9 MB, free: 10.36 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003891/0.1127, allocations: 414.7 kB / 401.3 MB, free: 9.816 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001335/0.1141, allocations: 0.8222 MB / 402.1 MB, free: 8.855 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.534e-06/0.1141, allocations: 4 kB / 402.2 MB, free: 8.852 MB / 302.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.0009254/0.115, allocations: 0.6298 MB / 402.8 MB, free: 8.215 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.16e-05/0.1151, allocations: 8 kB / 402.8 MB, free: 8.207 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.417e-05/0.1151, allocations: 15.94 kB / 402.8 MB, free: 8.191 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.654e-05/0.1151, allocations: 15.94 kB / 402.8 MB, free: 8.176 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003992/0.1155, allocations: 131.8 kB / 402.9 MB, free: 8.047 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.099e-05/0.1155, allocations: 19.92 kB / 403 MB, free: 8.027 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002479/0.1158, allocations: 71.27 kB / 403 MB, free: 7.957 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.712e-05/0.1158, allocations: 39.98 kB / 403.1 MB, free: 7.918 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.0003157/0.1162, allocations: 247.5 kB / 403.3 MB, free: 7.664 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.947e-05/0.1162, allocations: 43.44 kB / 403.4 MB, free: 7.621 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.485e-05/0.1163, allocations: 53.05 kB / 403.4 MB, free: 7.566 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.053e-06/0.1164, allocations: 7.938 kB / 403.4 MB, free: 7.559 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.1164, allocations: 0 / 403.4 MB, free: 7.559 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.221e-06/0.1164, allocations: 7.984 kB / 403.4 MB, free: 7.551 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004405/0.1168, allocations: 429.2 kB / 403.8 MB, free: 7.082 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.704e-06/0.1168, allocations: 3.938 kB / 403.9 MB, free: 7.078 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002683/0.1171, allocations: 47.91 kB / 403.9 MB, free: 7.031 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.1171, allocations: 4 kB / 403.9 MB, free: 7.027 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.768e-05/0.1172, allocations: 11.98 kB / 403.9 MB, free: 7.016 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.1172, allocations: 3.938 kB / 403.9 MB, free: 7.012 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.1172, allocations: 0 / 403.9 MB, free: 7.012 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008745/0.1181, allocations: 0.5392 MB / 404.5 MB, free: 6.453 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.413e-05/0.1182, allocations: 128.4 kB / 404.6 MB, free: 6.309 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.451e-05/0.1182, allocations: 19.92 kB / 404.6 MB, free: 6.289 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001341/0.1184, allocations: 8 kB / 404.6 MB, free: 6.281 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.201e-05/0.1184, allocations: 19.97 kB / 404.6 MB, free: 6.262 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.28e-05/0.1185, allocations: 11.98 kB / 404.6 MB, free: 6.25 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003107/0.1188, allocations: 326.8 kB / 405 MB, free: 5.934 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1188, allocations: 4 kB / 405 MB, free: 5.93 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004168/0.1192, allocations: 91.78 kB / 405.1 MB, free: 5.84 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.001162/0.1204, allocations: 1.132 MB / 406.2 MB, free: 4.68 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006251/0.121, allocations: 389.8 kB / 406.6 MB, free: 4.301 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.45e-06/0.121, allocations: 8 kB / 406.6 MB, free: 4.293 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002317/0.1213, allocations: 140 kB / 406.7 MB, free: 4.156 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003177/0.1216, allocations: 62.52 kB / 406.8 MB, free: 4.094 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00517/0.1268, allocations: 4.711 MB / 411.5 MB, free: 15.01 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004162/0.1272, allocations: 0.8701 MB / 412.4 MB, free: 14.11 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002304/0.1274, allocations: 88.33 kB / 412.4 MB, free: 14.02 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001998/0.1277, allocations: 175.4 kB / 412.6 MB, free: 13.85 MB / 318.1 MB Notification: Performance of SimCode: time 8.92e-07/0.1277, allocations: 3.938 kB / 412.6 MB, free: 13.85 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01859/0.1463, allocations: 7.563 MB / 420.2 MB, free: 6.379 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001787/0.1465, allocations: 231.5 kB / 420.4 MB, free: 6.129 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.891/2.037, allocations: 0 / 420.4 MB, free: 6.129 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)