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.007768/0.007769, allocations: 104.1 kB / 15.74 MB, free: 6.047 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.002329/0.002329, allocations: 193.5 kB / 16.67 MB, free: 5.969 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.669/1.669, allocations: 205.1 MB / 222.6 MB, free: 4.52 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05908/0.05908, allocations: 10.75 MB / 280.6 MB, free: 10.41 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.001507/0.001507, allocations: 67.41 kB / 390.3 MB, free: 5.527 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3398/0.3413, allocations: 49.01 MB / 439.3 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ControlProblems.CascadeControl): time 0.003313/0.3446, allocations: 2.348 MB / 441.7 MB, free: 3.398 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001324/0.346, allocations: 0.6665 MB / 442.4 MB, free: 2.941 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001716/0.3462, allocations: 25.94 kB / 442.4 MB, free: 2.926 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002125/0.3464, allocations: 71.27 kB / 442.5 MB, free: 2.875 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001137/0.3465, allocations: 40.59 kB / 442.5 MB, free: 2.844 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008638/0.3474, allocations: 353.6 kB / 442.8 MB, free: 2.656 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007737/0.3482, allocations: 0.6742 MB / 443.5 MB, free: 2.371 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001981/0.3484, allocations: 92.55 kB / 443.6 MB, free: 2.324 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002849/0.3487, allocations: 235.2 kB / 443.8 MB, free: 2.219 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003146/0.349, allocations: 239.3 kB / 444.1 MB, free: 2.105 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.03e-05/0.3491, allocations: 34.31 kB / 444.1 MB, free: 2.105 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001414/0.3492, allocations: 60.39 kB / 444.2 MB, free: 2.098 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001931/0.3494, allocations: 154.4 kB / 444.3 MB, free: 2.023 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001977/0.3496, allocations: 216.9 kB / 444.5 MB, free: 1.867 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005684/0.3502, allocations: 476.5 kB / 445 MB, free: 1.652 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.3502, allocations: 1.406 kB / 445 MB, free: 1.652 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3502, allocations: 0 / 445 MB, free: 1.652 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.222e-05/0.3502, allocations: 0 / 445 MB, free: 1.652 MB / 318.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.001443/0.3517, allocations: 0.8393 MB / 445.8 MB, free: 1.023 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.484e-05/0.3517, allocations: 13.73 kB / 445.8 MB, free: 1.02 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.653e-05/0.3518, allocations: 79.55 kB / 445.9 MB, free: 0.957 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001015/0.3519, allocations: 58.78 kB / 446 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000608/0.3526, allocations: 464.4 kB / 446.4 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.421e-05/0.3526, allocations: 32.52 kB / 446.5 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.286e-05/0.3527, allocations: 49.88 kB / 446.5 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008276/0.3535, allocations: 484.1 kB / 447 MB, free: 392 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.23e-05/0.3535, allocations: 7.359 kB / 447 MB, free: 388 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.103e-05/0.3536, allocations: 17.52 kB / 447 MB, free: 376 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.217e-05/0.3536, allocations: 13.53 kB / 447 MB, free: 372 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000564/0.3542, allocations: 327.3 kB / 447.3 MB, free: 240 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002374/0.3566, allocations: 1.591 MB / 448.9 MB, free: 14.97 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005683/0.3571, allocations: 259.5 kB / 449.2 MB, free: 14.84 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002012/0.3574, allocations: 109.2 kB / 449.3 MB, free: 14.79 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.001e-05/0.3574, allocations: 3.547 kB / 449.3 MB, free: 14.79 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003711/0.3578, allocations: 201.4 kB / 449.5 MB, free: 14.65 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 2.194e-06/0.3578, allocations: 0 / 449.5 MB, free: 14.65 MB / 334.1 MB Notification: Performance of matching and sorting (n=30): time 0.0009276/0.3587, allocations: 483.8 kB / 450 MB, free: 14.42 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.93e-05/0.3588, allocations: 64.98 kB / 450 MB, free: 14.35 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005874/0.3594, allocations: 499 kB / 450.5 MB, free: 14.05 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.459e-05/0.3594, allocations: 33.64 kB / 450.6 MB, free: 14.01 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002491/0.3597, allocations: 299.3 kB / 450.8 MB, free: 13.74 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.331e-05/0.3598, allocations: 101.7 kB / 450.9 MB, free: 13.66 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001759/0.36, allocations: 115.4 kB / 451.1 MB, free: 13.58 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002081/0.3602, allocations: 365.1 kB / 451.4 MB, free: 13.23 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002618/0.3605, allocations: 120.4 kB / 451.5 MB, free: 13.17 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004659/0.3609, allocations: 412.9 kB / 451.9 MB, free: 12.71 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001522/0.3625, allocations: 0.8223 MB / 452.8 MB, free: 12.03 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.876e-06/0.3625, allocations: 2.469 kB / 452.8 MB, free: 12.03 MB / 334.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001189/0.3637, allocations: 0.6282 MB / 453.4 MB, free: 11.71 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.184e-05/0.3637, allocations: 9.406 kB / 453.4 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.725e-05/0.3637, allocations: 14.08 kB / 453.4 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.023e-05/0.3638, allocations: 18.09 kB / 453.4 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004175/0.3642, allocations: 132.5 kB / 453.6 MB, free: 11.67 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.634e-05/0.3642, allocations: 22.39 kB / 453.6 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002743/0.3645, allocations: 71.59 kB / 453.6 MB, free: 11.61 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.53e-05/0.3646, allocations: 30.94 kB / 453.7 MB, free: 11.61 MB / 334.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.000346/0.3649, allocations: 243 kB / 453.9 MB, free: 11.41 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.992e-05/0.365, allocations: 52.92 kB / 454 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001041/0.3651, allocations: 60.7 kB / 454 MB, free: 11.33 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.3651, allocations: 3.719 kB / 454 MB, free: 11.33 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.258e-06/0.3651, allocations: 4.125 kB / 454 MB, free: 11.33 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.3651, allocations: 5.172 kB / 454 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004814/0.3656, allocations: 421.5 kB / 454.5 MB, free: 10.97 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.3656, allocations: 1.125 kB / 454.5 MB, free: 10.97 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002902/0.3659, allocations: 53.16 kB / 454.5 MB, free: 10.95 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.058e-06/0.366, allocations: 2.344 kB / 454.5 MB, free: 10.95 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.092e-05/0.366, allocations: 16.48 kB / 454.5 MB, free: 10.94 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.366, allocations: 1.125 kB / 454.5 MB, free: 10.94 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.366, allocations: 5.109 kB / 454.5 MB, free: 10.94 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001069/0.3671, allocations: 0.547 MB / 455.1 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001234/0.3672, allocations: 126.8 kB / 455.2 MB, free: 10.52 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.343e-05/0.3673, allocations: 17.45 kB / 455.2 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001459/0.3675, allocations: 13.39 kB / 455.2 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.365e-05/0.3675, allocations: 21 kB / 455.3 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.81e-05/0.3676, allocations: 7.781 kB / 455.3 MB, free: 10.48 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004654/0.368, allocations: 327.2 kB / 455.6 MB, free: 10.29 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3681, allocations: 0 / 455.6 MB, free: 10.29 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005659/0.3686, allocations: 96.89 kB / 455.7 MB, free: 10.26 MB / 334.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.001396/0.37, allocations: 1.115 MB / 456.8 MB, free: 9.426 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008143/0.3709, allocations: 393.2 kB / 457.2 MB, free: 9.266 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.948e-06/0.3709, allocations: 4.062 kB / 457.2 MB, free: 9.262 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000316/0.3712, allocations: 148.7 kB / 457.3 MB, free: 9.195 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000364/0.3716, allocations: 56.86 kB / 457.4 MB, free: 9.16 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005713/0.3773, allocations: 4.491 MB / 461.9 MB, free: 5.516 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004433/0.3778, allocations: 0.8699 MB / 462.7 MB, free: 4.621 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000237/0.378, allocations: 92.38 kB / 462.8 MB, free: 4.531 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002176/0.3782, allocations: 167.4 kB / 463 MB, free: 4.367 MB / 334.1 MB Notification: Performance of SimCode: time 7.22e-07/0.3782, allocations: 3.938 kB / 463 MB, free: 4.363 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03464/0.4129, allocations: 8.182 MB / 471.2 MB, free: 12.27 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.649/9.062, allocations: 15.61 kB / 471.2 MB, free: 12.25 MB / 350.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)