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.008871/0.008871, allocations: 170.1 kB / 15.11 MB, free: 5.969 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06599/0.06599, allocations: 10.74 MB / 26.59 MB, free: 2.266 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.918/1.918, allocations: 205.4 MB / 235.2 MB, free: 188 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001025/0.001025, allocations: 85.8 kB / 285.9 MB, free: 10.62 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003481/0.0003481, allocations: 8 kB / 346.5 MB, free: 5.094 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1421/0.1424, allocations: 50 MB / 396.5 MB, free: 3.004 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.369/0.5115, allocations: 78.65 MB / 475.1 MB, free: 16.86 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000303/0.5118, allocations: 75.39 kB / 475.2 MB, free: 16.82 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0163/0.5281, allocations: 6.146 MB / 481.4 MB, free: 12.36 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.284e-06/0.5282, allocations: 0 / 481.4 MB, free: 12.36 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.634e-05/0.5283, allocations: 19.61 kB / 481.4 MB, free: 12.34 MB / 346.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.001575/0.5298, allocations: 0.7601 MB / 482.1 MB, free: 11.57 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.884e-05/0.5299, allocations: 8.031 kB / 482.2 MB, free: 11.56 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001861/0.5301, allocations: 86.11 kB / 482.2 MB, free: 11.5 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001573/0.5303, allocations: 59.34 kB / 482.3 MB, free: 11.44 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008512/0.5311, allocations: 470.1 kB / 482.8 MB, free: 10.98 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.836e-05/0.5312, allocations: 33.48 kB / 482.8 MB, free: 10.96 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.277e-05/0.5313, allocations: 42 kB / 482.8 MB, free: 10.93 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000812/0.5321, allocations: 0.5145 MB / 483.3 MB, free: 10.51 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.314e-05/0.5321, allocations: 0 / 483.3 MB, free: 10.51 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.828e-05/0.5322, allocations: 18.69 kB / 483.4 MB, free: 10.5 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.046e-05/0.5322, allocations: 8 kB / 483.4 MB, free: 10.5 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005909/0.5328, allocations: 326.8 kB / 483.7 MB, free: 10.26 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002477/0.5353, allocations: 1.615 MB / 485.3 MB, free: 8.793 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004991/0.5358, allocations: 263.5 kB / 485.6 MB, free: 8.59 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.471e-05/0.5358, allocations: 4.172 kB / 485.6 MB, free: 8.586 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003328/0.5362, allocations: 216.5 kB / 485.8 MB, free: 8.406 MB / 346.7 MB Notification: Performance of pre-optimization done (n=31): time 2.525e-06/0.5362, allocations: 0 / 485.8 MB, free: 8.406 MB / 346.7 MB Notification: Performance of matching and sorting (n=31): time 0.000818/0.537, allocations: 492.2 kB / 486.3 MB, free: 8.012 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.22e-05/0.5371, allocations: 66.77 kB / 486.3 MB, free: 7.938 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004156/0.5375, allocations: 433.8 kB / 486.7 MB, free: 7.59 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.948e-05/0.5375, allocations: 33.64 kB / 486.8 MB, free: 7.555 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001676/0.5377, allocations: 299.7 kB / 487.1 MB, free: 7.332 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.221e-05/0.5378, allocations: 104.4 kB / 487.2 MB, free: 7.246 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.671e-05/0.5378, allocations: 14.94 kB / 487.2 MB, free: 7.242 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001058/0.5379, allocations: 359.5 kB / 487.5 MB, free: 6.902 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002294/0.5382, allocations: 128.8 kB / 487.7 MB, free: 6.809 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003083/0.5385, allocations: 420.7 kB / 488.1 MB, free: 6.312 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003257/0.5388, allocations: 205.5 kB / 488.3 MB, free: 6.164 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.206e-05/0.5388, allocations: 7.953 kB / 488.3 MB, free: 6.156 MB / 346.7 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.0009335/0.5398, allocations: 0.635 MB / 488.9 MB, free: 5.648 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.352e-05/0.5398, allocations: 12 kB / 488.9 MB, free: 5.637 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.794e-05/0.5398, allocations: 11.98 kB / 488.9 MB, free: 5.625 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.198e-05/0.5399, allocations: 16 kB / 489 MB, free: 5.609 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003823/0.5403, allocations: 135.1 kB / 489.1 MB, free: 5.484 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.919e-05/0.5403, allocations: 19.94 kB / 489.1 MB, free: 5.465 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002893/0.5406, allocations: 73.36 kB / 489.2 MB, free: 5.402 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.726e-05/0.5406, allocations: 36.12 kB / 489.2 MB, free: 5.371 MB / 346.7 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(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(fixed = true ) "Control signal" type: Real P_inner.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real R.CS:DISCRETE(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: 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 () * Number of clocked 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.0003194/0.541, allocations: 250.8 kB / 489.5 MB, free: 5.16 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.111e-05/0.541, allocations: 55.39 kB / 489.5 MB, free: 5.105 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.009e-05/0.5411, allocations: 53.67 kB / 489.6 MB, free: 5.074 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-06/0.5411, allocations: 7.984 kB / 489.6 MB, free: 5.066 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.5411, allocations: 0 / 489.6 MB, free: 5.066 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/0.5412, allocations: 3.984 kB / 489.6 MB, free: 5.062 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003525/0.5415, allocations: 428.7 kB / 490 MB, free: 4.672 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.5415, allocations: 0 / 490 MB, free: 4.672 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002709/0.5418, allocations: 54.67 kB / 490.1 MB, free: 4.621 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.3e-06/0.5418, allocations: 4 kB / 490.1 MB, free: 4.617 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.949e-05/0.5419, allocations: 15.42 kB / 490.1 MB, free: 4.605 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.5419, allocations: 0 / 490.1 MB, free: 4.605 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.5419, allocations: 0 / 490.1 MB, free: 4.605 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008267/0.5427, allocations: 0.5627 MB / 490.6 MB, free: 4.145 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.912e-05/0.5428, allocations: 124 kB / 490.8 MB, free: 4.008 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.322e-05/0.5429, allocations: 14.94 kB / 490.8 MB, free: 3.996 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001478/0.543, allocations: 15.11 kB / 490.8 MB, free: 3.984 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.869e-05/0.5431, allocations: 19.34 kB / 490.8 MB, free: 3.969 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.584e-05/0.5432, allocations: 15.42 kB / 490.8 MB, free: 3.957 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003181/0.5435, allocations: 318.5 kB / 491.1 MB, free: 3.707 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5435, allocations: 0 / 491.1 MB, free: 3.707 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004789/0.544, allocations: 104.3 kB / 491.2 MB, free: 3.617 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) * Number of clocked states: 0 () * 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.001169/0.5451, allocations: 1.145 MB / 492.4 MB, free: 2.578 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0007138/0.5459, allocations: 405 kB / 492.8 MB, free: 2.266 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.539e-06/0.5459, allocations: 1.5 kB / 492.8 MB, free: 2.266 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002668/0.5462, allocations: 149.5 kB / 492.9 MB, free: 2.152 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003114/0.5465, allocations: 49.91 kB / 493 MB, free: 2.125 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007977/0.5545, allocations: 9.993 MB / 0.4912 GB, free: 8.309 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005481/0.5551, allocations: 0.8844 MB / 0.492 GB, free: 7.406 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.000293/0.5554, allocations: 92.5 kB / 0.4921 GB, free: 7.316 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002113/0.5556, allocations: 174.2 kB / 0.4923 GB, free: 7.266 MB / 362.7 MB Notification: Performance of SimCode: time 1.163e-06/0.5556, allocations: 0 / 0.4923 GB, free: 7.266 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02445/0.5801, allocations: 7.706 MB / 0.4998 GB, free: 15.64 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002482/0.5804, allocations: 209.6 kB / 0.5 GB, free: 15.4 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.201/2.782, allocations: 0 / 0.5 GB, free: 15.4 MB / 378.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)