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/Complex 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) 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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001361/0.001361, allocations: 173.9 kB / 7.648 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.08014/0.08014, allocations: 10.66 MB / 18.73 MB, free: 1.328 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.927/1.927, allocations: 205.3 MB / 226.9 MB, free: 7.891 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001076/0.001076, allocations: 90.44 kB / 277.3 MB, free: 5.441 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.284e-05/2.285e-05, allocations: 8 kB / 333.6 MB, free: 28.33 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1213/0.1213, allocations: 49.99 MB / 383.6 MB, free: 10.29 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4057/0.527, allocations: 78.24 MB / 461.9 MB, free: 6.141 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002491/0.5273, allocations: 72.7 kB / 461.9 MB, free: 6.102 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01628/0.5436, allocations: 6.071 MB / 468 MB, free: 0.9102 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.5437, allocations: 0 / 468 MB, free: 0.9102 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.186e-05/0.5437, allocations: 19.98 kB / 468 MB, free: 0.8906 MB / 330.7 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.001128/0.5449, allocations: 0.7049 MB / 468.7 MB, free: 180 kB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.382e-05/0.5449, allocations: 12.03 kB / 468.7 MB, free: 168 kB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001067/0.545, allocations: 59.25 kB / 468.8 MB, free: 108 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000771/0.5458, allocations: 462.2 kB / 469.2 MB, free: 15.66 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.319e-05/0.5459, allocations: 19.98 kB / 469.3 MB, free: 15.64 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.954e-05/0.5459, allocations: 31.84 kB / 469.3 MB, free: 15.61 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004368/0.5464, allocations: 275.1 kB / 469.6 MB, free: 15.42 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006555/0.547, allocations: 444.7 kB / 470 MB, free: 15.04 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.44e-05/0.5471, allocations: 7.688 kB / 470 MB, free: 15.04 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.644e-05/0.5471, allocations: 0 / 470 MB, free: 15.04 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.221e-05/0.5471, allocations: 12 kB / 470 MB, free: 15.03 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002283/0.5494, allocations: 1.518 MB / 471.5 MB, free: 13.65 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004363/0.5499, allocations: 227.3 kB / 471.8 MB, free: 13.48 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001396/0.55, allocations: 92.42 kB / 471.8 MB, free: 13.41 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.86e-05/0.5501, allocations: 4.234 kB / 471.8 MB, free: 13.41 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002968/0.5504, allocations: 189.3 kB / 472 MB, free: 13.25 MB / 346.7 MB Notification: Performance of pre-optimization done (n=31): time 5.3e-06/0.5504, allocations: 3.984 kB / 472 MB, free: 13.25 MB / 346.7 MB Notification: Performance of matching and sorting (n=31): time 0.0007233/0.5511, allocations: 361.9 kB / 472.4 MB, free: 12.94 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.686e-05/0.5512, allocations: 66.2 kB / 472.5 MB, free: 12.87 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003804/0.5516, allocations: 375.2 kB / 472.8 MB, free: 12.56 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.984e-05/0.5516, allocations: 33.45 kB / 472.9 MB, free: 12.53 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002039/0.5518, allocations: 305.9 kB / 473.2 MB, free: 12.3 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.766e-05/0.5519, allocations: 100.6 kB / 473.2 MB, free: 12.22 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.328e-05/0.5519, allocations: 3.938 kB / 473.3 MB, free: 12.21 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001579/0.5521, allocations: 367.3 kB / 473.6 MB, free: 11.87 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001494/0.5522, allocations: 93.25 kB / 473.7 MB, free: 11.81 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003415/0.5526, allocations: 392.7 kB / 474.1 MB, free: 11.33 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000242/0.5528, allocations: 176.6 kB / 474.3 MB, free: 11.2 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.436e-06/0.5529, allocations: 4 kB / 474.3 MB, free: 11.2 MB / 346.7 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.0007515/0.5536, allocations: 0.539 MB / 474.8 MB, free: 10.74 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.399e-05/0.5536, allocations: 11.98 kB / 474.8 MB, free: 10.73 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.565e-05/0.5537, allocations: 12 kB / 474.8 MB, free: 10.71 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.823e-05/0.5537, allocations: 16 kB / 474.8 MB, free: 10.7 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000417/0.5541, allocations: 127.3 kB / 475 MB, free: 10.58 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.806e-05/0.5542, allocations: 19.94 kB / 475 MB, free: 10.56 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002362/0.5544, allocations: 55.42 kB / 475 MB, free: 10.5 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.852e-05/0.5545, allocations: 31.38 kB / 475.1 MB, free: 10.48 MB / 346.7 MB Warning: Assuming fixed start value for the following 17 variables: R.cs:DISCRETE(fixed = false ) "Pre-biased Control Signal" type: Real R.satin:DISCRETE(fixed = false ) "input of the saturation block" type: Real R_outer.CS:DISCRETE(fixed = false ) "Control signal" type: Real R_outer.cs:DISCRETE(fixed = false ) "Pre-biased Control Signal" type: Real R_outer.satin:DISCRETE(fixed = false ) "input of the saturation block" type: Real R_inner.cs:DISCRETE(fixed = false ) "Pre-biased Control Signal" type: Real R_inner.satin:DISCRETE(fixed = false ) "input of the saturation block" type: Real P_outer.Y[3]:VARIABLE(protected = true ) type: Real [3] P_outer.U[2]:VARIABLE(protected = true ) type: Real [2] P_outer.w:VARIABLE(protected = true ) "proper part of the output" type: Real P2.Y[3]:VARIABLE(protected = true ) type: Real [3] P2.U[2]:VARIABLE(protected = true ) type: Real [2] P2.w:VARIABLE(protected = true ) "proper part of the output" type: Real R_inner.CS:DISCRETE(fixed = false ) "Control signal" type: Real P_inner.w:VARIABLE(protected = true ) "proper part of the output" type: Real R.CS:DISCRETE(fixed = false ) "Control signal" type: Real P1.w:VARIABLE(protected = true ) "proper part of the output" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 33 ($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,$whenCondition3,$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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (81): * Single equations (assignments): 81 * 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.0002337/0.5547, allocations: 171 kB / 475.2 MB, free: 10.31 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005781/0.5553, allocations: 377.5 kB / 475.6 MB, free: 9.996 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.515e-05/0.5554, allocations: 43.44 kB / 475.6 MB, free: 9.953 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001012/0.5555, allocations: 50.28 kB / 475.7 MB, free: 9.922 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.853e-06/0.5555, allocations: 7.984 kB / 475.7 MB, free: 9.914 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.79e-06/0.5555, allocations: 0 / 475.7 MB, free: 9.914 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/0.5555, allocations: 3.984 kB / 475.7 MB, free: 9.91 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004001/0.5559, allocations: 374.6 kB / 476.1 MB, free: 9.574 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.5559, allocations: 0 / 476.1 MB, free: 9.574 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003022/0.5562, allocations: 51.92 kB / 476.1 MB, free: 9.523 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.985e-06/0.5562, allocations: 4 kB / 476.1 MB, free: 9.52 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.327e-05/0.5563, allocations: 11.42 kB / 476.1 MB, free: 9.512 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.527e-06/0.5563, allocations: 3.938 kB / 476.1 MB, free: 9.508 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.005e-06/0.5563, allocations: 0 / 476.1 MB, free: 9.508 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007839/0.5571, allocations: 0.5167 MB / 476.7 MB, free: 9.082 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.584e-05/0.5572, allocations: 116.5 kB / 476.8 MB, free: 8.949 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.274e-05/0.5573, allocations: 19.31 kB / 476.8 MB, free: 8.934 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001344/0.5574, allocations: 11.98 kB / 476.8 MB, free: 8.922 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.652e-05/0.5575, allocations: 18.72 kB / 476.8 MB, free: 8.906 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.43e-05/0.5575, allocations: 11.98 kB / 476.8 MB, free: 8.895 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002768/0.5578, allocations: 270.9 kB / 477.1 MB, free: 8.688 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5578, allocations: 0 / 477.1 MB, free: 8.688 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004574/0.5583, allocations: 83.69 kB / 477.2 MB, free: 8.605 MB / 346.7 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: 15 ($whenCondition3,$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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 19 * 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.001143/0.5594, allocations: 1.096 MB / 478.3 MB, free: 7.598 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005223/0.56, allocations: 337.5 kB / 478.6 MB, free: 7.344 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.56, allocations: 4 kB / 478.6 MB, free: 7.34 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001683/0.5602, allocations: 120.2 kB / 478.7 MB, free: 7.258 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002615/0.5604, allocations: 46.33 kB / 478.8 MB, free: 7.23 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001521/0.562, allocations: 0.7954 MB / 479.6 MB, free: 6.469 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004548/0.5624, allocations: 0.8804 MB / 480.4 MB, free: 5.57 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002473/0.5627, allocations: 88.34 kB / 480.5 MB, free: 5.48 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001815/0.5629, allocations: 168.6 kB / 480.7 MB, free: 5.434 MB / 346.7 MB Notification: Performance of SimCode: time 2.81e-07/0.5629, allocations: 4 kB / 480.7 MB, free: 5.43 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03274/0.5956, allocations: 6.86 MB / 487.6 MB, free: 14.6 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002547/0.596, allocations: 168.5 kB / 487.7 MB, free: 14.41 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.39/2.986, allocations: 3.969 kB / 487.7 MB, free: 14.41 MB / 362.7 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)