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.0052/0.0052, allocations: 97.41 kB / 15.73 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.001205/0.001205, allocations: 197 kB / 16.67 MB, free: 5.973 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.347/1.347, allocations: 205.1 MB / 222.6 MB, free: 4.406 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05752/0.05752, allocations: 10.74 MB / 280.6 MB, free: 10.28 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.001431/0.001431, allocations: 78.88 kB / 390.3 MB, free: 5.516 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2665/0.2679, allocations: 49.02 MB / 439.4 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ControlProblems.CascadeControl): time 0.00309/0.271, allocations: 2.333 MB / 441.7 MB, free: 3.398 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001365/0.2724, allocations: 0.6715 MB / 442.4 MB, free: 2.938 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002098/0.2726, allocations: 20.09 kB / 442.4 MB, free: 2.926 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002472/0.2729, allocations: 72.66 kB / 442.5 MB, free: 2.875 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001252/0.2731, allocations: 49.36 kB / 442.5 MB, free: 2.836 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008496/0.2739, allocations: 341.1 kB / 442.8 MB, free: 2.66 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007099/0.2746, allocations: 0.6808 MB / 443.5 MB, free: 2.371 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001951/0.2748, allocations: 97.95 kB / 443.6 MB, free: 2.316 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002677/0.2751, allocations: 236.1 kB / 443.8 MB, free: 2.211 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002977/0.2754, allocations: 234.2 kB / 444.1 MB, free: 2.102 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.132e-05/0.2755, allocations: 35.91 kB / 444.1 MB, free: 2.102 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001318/0.2756, allocations: 55.97 kB / 444.2 MB, free: 2.098 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000189/0.2758, allocations: 152.8 kB / 444.3 MB, free: 2.023 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001759/0.276, allocations: 214.3 kB / 444.5 MB, free: 1.871 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005256/0.2766, allocations: 487.3 kB / 445 MB, free: 1.652 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.646e-06/0.2766, allocations: 1.375 kB / 445 MB, free: 1.652 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.915e-06/0.2766, allocations: 4 kB / 445 MB, free: 1.648 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.346e-06/0.2766, allocations: 7.875 kB / 445 MB, free: 1.641 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.001275/0.2779, allocations: 0.8434 MB / 445.9 MB, free: 1.008 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.909e-05/0.2779, allocations: 13.77 kB / 445.9 MB, free: 1.004 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.196e-05/0.278, allocations: 79.64 kB / 445.9 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.76e-05/0.2781, allocations: 70.45 kB / 446 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006014/0.2787, allocations: 465 kB / 446.5 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.408e-05/0.2788, allocations: 32.67 kB / 446.5 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.085e-05/0.2788, allocations: 46.42 kB / 446.5 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008759/0.2797, allocations: 491.9 kB / 447 MB, free: 360 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.806e-05/0.2798, allocations: 7.172 kB / 447 MB, free: 356 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.619e-05/0.2798, allocations: 16.27 kB / 447.1 MB, free: 344 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.376e-05/0.2798, allocations: 10.84 kB / 447.1 MB, free: 344 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006462/0.2805, allocations: 322 kB / 447.4 MB, free: 248 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002407/0.2829, allocations: 1.601 MB / 449 MB, free: 14.97 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005915/0.2835, allocations: 268.1 kB / 449.2 MB, free: 14.83 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002053/0.2837, allocations: 104.4 kB / 449.3 MB, free: 14.78 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.809e-05/0.2838, allocations: 3.797 kB / 449.3 MB, free: 14.78 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003612/0.2841, allocations: 201.5 kB / 449.5 MB, free: 14.64 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 2.114e-06/0.2841, allocations: 0 / 449.5 MB, free: 14.64 MB / 334.1 MB Notification: Performance of matching and sorting (n=30): time 0.0008945/0.285, allocations: 482.6 kB / 450 MB, free: 14.42 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.22e-05/0.2851, allocations: 65.42 kB / 450.1 MB, free: 14.35 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004933/0.2856, allocations: 496 kB / 450.6 MB, free: 14.05 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.177e-05/0.2856, allocations: 34.39 kB / 450.6 MB, free: 14.01 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002246/0.2859, allocations: 311.5 kB / 450.9 MB, free: 13.73 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.209e-05/0.286, allocations: 105.4 kB / 451 MB, free: 13.64 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001398/0.2861, allocations: 116.8 kB / 451.1 MB, free: 13.57 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001613/0.2863, allocations: 364.1 kB / 451.5 MB, free: 13.21 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002251/0.2865, allocations: 113.4 kB / 451.6 MB, free: 13.16 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003995/0.2869, allocations: 420.8 kB / 452 MB, free: 12.7 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001373/0.2883, allocations: 0.8103 MB / 452.8 MB, free: 12.02 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.713e-06/0.2883, allocations: 4.125 kB / 452.8 MB, free: 12.02 MB / 334.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.0009705/0.2893, allocations: 0.6344 MB / 453.4 MB, free: 11.7 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.316e-05/0.2893, allocations: 12.64 kB / 453.5 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.594e-05/0.2894, allocations: 15.38 kB / 453.5 MB, free: 11.69 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.636e-05/0.2894, allocations: 22.06 kB / 453.5 MB, free: 11.68 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004099/0.2898, allocations: 133.2 kB / 453.6 MB, free: 11.65 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.007e-05/0.2898, allocations: 17.81 kB / 453.6 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002709/0.2901, allocations: 71.72 kB / 453.7 MB, free: 11.6 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.953e-05/0.2902, allocations: 31.34 kB / 453.7 MB, free: 11.59 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.0003298/0.2905, allocations: 250.4 kB / 454 MB, free: 11.39 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.044e-05/0.2906, allocations: 49.36 kB / 454 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.925e-05/0.2907, allocations: 56.64 kB / 454.1 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.578e-06/0.2907, allocations: 3.531 kB / 454.1 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.705e-06/0.2907, allocations: 1.188 kB / 454.1 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.2907, allocations: 0 / 454.1 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004591/0.2912, allocations: 426.1 kB / 454.5 MB, free: 10.96 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.2912, allocations: 0 / 454.5 MB, free: 10.96 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000298/0.2915, allocations: 50.22 kB / 454.6 MB, free: 10.95 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.2915, allocations: 5.156 kB / 454.6 MB, free: 10.94 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.461e-05/0.2915, allocations: 18.23 kB / 454.6 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/0.2916, allocations: 5.094 kB / 454.6 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.2916, allocations: 0 / 454.6 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009254/0.2925, allocations: 0.5516 MB / 455.1 MB, free: 10.63 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001148/0.2926, allocations: 122.9 kB / 455.3 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.42e-05/0.2927, allocations: 29.47 kB / 455.3 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001462/0.2929, allocations: 13.61 kB / 455.3 MB, free: 10.47 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.962e-05/0.2929, allocations: 16.67 kB / 455.3 MB, free: 10.46 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.551e-05/0.293, allocations: 11.67 kB / 455.3 MB, free: 10.46 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003491/0.2933, allocations: 327.9 kB / 455.6 MB, free: 10.27 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.2933, allocations: 0 / 455.6 MB, free: 10.27 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004563/0.2938, allocations: 96.19 kB / 455.7 MB, free: 10.24 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.001248/0.295, allocations: 1.119 MB / 456.9 MB, free: 9.398 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006976/0.2957, allocations: 393.8 kB / 457.2 MB, free: 9.238 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.2958, allocations: 0 / 457.2 MB, free: 9.238 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002519/0.296, allocations: 144.9 kB / 457.4 MB, free: 9.176 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004343/0.2965, allocations: 52.62 kB / 457.4 MB, free: 9.145 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005465/0.3019, allocations: 4.517 MB / 462 MB, free: 5.48 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004348/0.3024, allocations: 0.866 MB / 462.8 MB, free: 4.59 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002106/0.3026, allocations: 88.39 kB / 462.9 MB, free: 4.504 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002081/0.3028, allocations: 171.4 kB / 463.1 MB, free: 4.336 MB / 334.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3028, allocations: 0 / 463.1 MB, free: 4.336 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02758/0.3304, allocations: 8.009 MB / 471.1 MB, free: 12.41 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.137/8.467, allocations: 15.55 kB / 471.1 MB, free: 12.4 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 & 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)