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.002185/0.002185, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.01086/0.01086, allocations: 196.7 kB / 16.53 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 3.529/3.529, allocations: 205.1 MB / 222.4 MB, free: 4.605 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.1249/0.1249, allocations: 10.74 MB / 280.5 MB, free: 10.5 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.003394/0.003394, allocations: 67.91 kB / 340.7 MB, free: 23.23 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2518/0.2553, allocations: 49.01 MB / 389.7 MB, free: 6.156 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ControlProblems.CascadeControl): time 0.01247/0.2678, allocations: 2.342 MB / 392 MB, free: 3.793 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002759/0.2707, allocations: 0.67 MB / 392.7 MB, free: 3.121 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008101/0.2716, allocations: 19.81 kB / 392.7 MB, free: 3.102 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005835/0.2723, allocations: 75.25 kB / 392.8 MB, free: 3.027 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005182/0.2729, allocations: 43.5 kB / 392.8 MB, free: 2.984 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001566/0.2745, allocations: 343.3 kB / 393.1 MB, free: 2.648 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001264/0.2757, allocations: 0.6665 MB / 393.8 MB, free: 1.98 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000343/0.2761, allocations: 94.02 kB / 393.9 MB, free: 1.887 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005902/0.2767, allocations: 235.2 kB / 394.1 MB, free: 1.656 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007071/0.2775, allocations: 242.9 kB / 394.4 MB, free: 1.418 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001947/0.2777, allocations: 32 kB / 394.4 MB, free: 1.387 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002779/0.278, allocations: 55.98 kB / 394.5 MB, free: 1.332 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003425/0.2783, allocations: 155.5 kB / 394.6 MB, free: 1.18 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004556/0.2788, allocations: 218.5 kB / 394.8 MB, free: 0.9648 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001072/0.2799, allocations: 458.3 kB / 395.3 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/0.2799, allocations: 3.938 kB / 395.3 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of FrontEnd: time 6.392e-06/0.28, allocations: 4 kB / 395.3 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.354e-05/0.28, allocations: 3.938 kB / 395.3 MB, free: 0.5039 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.00315/0.2832, allocations: 0.8286 MB / 396.1 MB, free: 15.62 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.595e-05/0.2833, allocations: 15.89 kB / 396.1 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002196/0.2835, allocations: 82.7 kB / 396.2 MB, free: 15.52 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002513/0.2838, allocations: 64.19 kB / 396.3 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001125/0.2849, allocations: 437.7 kB / 396.7 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.418e-05/0.285, allocations: 37.36 kB / 396.7 MB, free: 14.95 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001413/0.2852, allocations: 44.36 kB / 396.8 MB, free: 14.91 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001438/0.2866, allocations: 488.3 kB / 397.2 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.672e-05/0.2867, allocations: 7.938 kB / 397.3 MB, free: 14.4 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.165e-05/0.2868, allocations: 19.98 kB / 397.3 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.328e-05/0.2868, allocations: 12 kB / 397.3 MB, free: 14.37 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001067/0.2879, allocations: 319.7 kB / 397.6 MB, free: 14.06 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005237/0.2932, allocations: 1.598 MB / 399.2 MB, free: 12.37 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001073/0.2943, allocations: 259.4 kB / 399.5 MB, free: 12.11 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003479/0.2947, allocations: 110.4 kB / 399.6 MB, free: 12 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.341e-05/0.2948, allocations: 4.234 kB / 399.6 MB, free: 11.99 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006522/0.2954, allocations: 199.5 kB / 399.8 MB, free: 11.79 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 8.035e-06/0.2955, allocations: 0 / 399.8 MB, free: 11.79 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.00189/0.2974, allocations: 485.4 kB / 400.2 MB, free: 11.3 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001304/0.2976, allocations: 63.39 kB / 400.3 MB, free: 11.23 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001236/0.2988, allocations: 497.8 kB / 400.8 MB, free: 10.73 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.429e-05/0.2989, allocations: 37.7 kB / 400.8 MB, free: 10.69 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000472/0.2994, allocations: 299.5 kB / 401.1 MB, free: 10.39 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001862/0.2996, allocations: 98.69 kB / 401.2 MB, free: 10.29 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002865/0.2999, allocations: 114.1 kB / 401.3 MB, free: 10.18 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002583/0.3002, allocations: 362.8 kB / 401.7 MB, free: 9.812 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004226/0.3006, allocations: 121.1 kB / 401.8 MB, free: 9.695 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005907/0.3012, allocations: 414.7 kB / 402.2 MB, free: 9.148 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002106/0.3033, allocations: 0.8185 MB / 403 MB, free: 8.191 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.121e-05/0.3034, allocations: 4 kB / 403 MB, free: 8.188 MB / 302.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001776/0.3052, allocations: 0.6338 MB / 403.7 MB, free: 7.547 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.243e-05/0.3052, allocations: 8 kB / 403.7 MB, free: 7.539 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.259e-05/0.3053, allocations: 12 kB / 403.7 MB, free: 7.527 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.328e-05/0.3054, allocations: 16.06 kB / 403.7 MB, free: 7.512 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008612/0.3062, allocations: 135.8 kB / 403.8 MB, free: 7.379 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.07e-05/0.3063, allocations: 15.94 kB / 403.8 MB, free: 7.363 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007127/0.307, allocations: 75.27 kB / 403.9 MB, free: 7.289 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.613e-05/0.3071, allocations: 32 kB / 403.9 MB, free: 7.258 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.000707/0.3079, allocations: 255.1 kB / 404.2 MB, free: 6.996 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001852/0.3081, allocations: 43.44 kB / 404.2 MB, free: 6.953 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002059/0.3083, allocations: 53.05 kB / 404.3 MB, free: 6.898 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.086e-05/0.3083, allocations: 7.938 kB / 404.3 MB, free: 6.891 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.043e-05/0.3084, allocations: 3.938 kB / 404.3 MB, free: 6.887 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.314e-05/0.3084, allocations: 3.984 kB / 404.3 MB, free: 6.883 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008862/0.3093, allocations: 429.2 kB / 404.7 MB, free: 6.414 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.632e-06/0.3093, allocations: 0 / 404.7 MB, free: 6.414 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000593/0.3099, allocations: 43.97 kB / 404.8 MB, free: 6.371 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.487e-05/0.31, allocations: 4 kB / 404.8 MB, free: 6.367 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.177e-05/0.31, allocations: 11.98 kB / 404.8 MB, free: 6.355 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.748e-06/0.3101, allocations: 7.875 kB / 404.8 MB, free: 6.348 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.927e-06/0.3101, allocations: 0 / 404.8 MB, free: 6.348 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001939/0.312, allocations: 0.5434 MB / 405.3 MB, free: 5.785 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002141/0.3123, allocations: 132.3 kB / 405.5 MB, free: 5.637 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002296/0.3125, allocations: 19.92 kB / 405.5 MB, free: 5.617 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002827/0.3128, allocations: 15.98 kB / 405.5 MB, free: 5.602 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001378/0.313, allocations: 11.98 kB / 405.5 MB, free: 5.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.636e-05/0.3131, allocations: 15.98 kB / 405.5 MB, free: 5.574 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0008659/0.314, allocations: 322.8 kB / 405.8 MB, free: 5.262 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.314, allocations: 0 / 405.8 MB, free: 5.262 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001188/0.3152, allocations: 103.8 kB / 405.9 MB, free: 5.16 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.00232/0.3175, allocations: 1.123 MB / 407.1 MB, free: 4.008 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001228/0.3188, allocations: 413.9 kB / 407.5 MB, free: 3.605 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.3188, allocations: 4.125 kB / 407.5 MB, free: 3.602 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003694/0.3192, allocations: 144.4 kB / 407.6 MB, free: 3.461 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005645/0.3198, allocations: 54.59 kB / 407.7 MB, free: 3.406 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009736/0.3295, allocations: 4.589 MB / 412.2 MB, free: 14.45 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007096/0.3303, allocations: 0.8699 MB / 413.1 MB, free: 13.56 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000437/0.3307, allocations: 92.33 kB / 413.2 MB, free: 13.46 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003213/0.3311, allocations: 171.3 kB / 413.4 MB, free: 13.3 MB / 318.1 MB Notification: Performance of SimCode: time 1.553e-06/0.3311, allocations: 4 kB / 413.4 MB, free: 13.29 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1579/0.489, allocations: 7.881 MB / 421.3 MB, free: 5.477 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18/18.49, allocations: 19.59 kB / 421.3 MB, free: 5.461 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 & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl_res.csv --start-time 0 --stop-time 90 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.036 IndustrialControlSystems_IndustrialControlSystems_Applications_ControlProblems_CascadeControl.fmu > IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl.pipe 2>&1)