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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.008907/0.008908, allocations: 100.9 kB / 15.73 MB, free: 6.055 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.001475/0.001475, allocations: 192.4 kB / 16.67 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.496/1.496, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.06332/0.06332, allocations: 11.2 MB / 301.7 MB, free: 4.059 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001884/0.001884, allocations: 75.25 kB / 417.3 MB, free: 19.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.1174, allocations: 51.98 MB / 469.3 MB, free: 15.11 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ControlProblems.CascadeControl): time 0.004267/0.1217, allocations: 2.54 MB / 471.9 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001633/0.1233, allocations: 0.7421 MB / 472.6 MB, free: 11.81 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002409/0.1236, allocations: 23.81 kB / 472.6 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002947/0.1239, allocations: 87.06 kB / 472.7 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001371/0.1241, allocations: 55.38 kB / 472.8 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009855/0.1251, allocations: 387.3 kB / 473.1 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009262/0.126, allocations: 0.7583 MB / 473.9 MB, free: 10.51 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002542/0.1263, allocations: 113.1 kB / 474 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003419/0.1266, allocations: 255 kB / 474.3 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003503/0.127, allocations: 258.7 kB / 474.5 MB, free: 9.891 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.614e-05/0.1271, allocations: 39.94 kB / 474.6 MB, free: 9.852 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001478/0.1272, allocations: 67.97 kB / 474.6 MB, free: 9.785 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002023/0.1274, allocations: 159.5 kB / 474.8 MB, free: 9.629 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002604/0.1277, allocations: 258.3 kB / 475 MB, free: 9.375 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006769/0.1284, allocations: 0.525 MB / 475.6 MB, free: 8.848 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.9e-06/0.1284, allocations: 0 / 475.6 MB, free: 8.848 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.604e-06/0.1284, allocations: 0 / 475.6 MB, free: 8.848 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.827e-06/0.1284, allocations: 0 / 475.6 MB, free: 8.848 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 125 * Number of variables: 125 Notification: Performance of Generate backend data structure: time 0.001681/0.1301, allocations: 0.9207 MB / 476.5 MB, free: 7.875 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.074e-05/0.1302, allocations: 11.89 kB / 476.5 MB, free: 7.863 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001082/0.1303, allocations: 94.64 kB / 476.6 MB, free: 7.762 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001278/0.1304, allocations: 76.47 kB / 476.7 MB, free: 7.688 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007302/0.1312, allocations: 497.8 kB / 477.1 MB, free: 7.16 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.78e-05/0.1312, allocations: 45.36 kB / 477.2 MB, free: 7.117 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.01e-05/0.1313, allocations: 52.38 kB / 477.2 MB, free: 7.066 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001014/0.1323, allocations: 0.6118 MB / 477.9 MB, free: 6.398 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.875e-05/0.1324, allocations: 7.938 kB / 477.9 MB, free: 6.391 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.982e-05/0.1324, allocations: 23.98 kB / 477.9 MB, free: 6.367 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.914e-05/0.1325, allocations: 16 kB / 477.9 MB, free: 6.352 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007401/0.1332, allocations: 367.6 kB / 478.3 MB, free: 5.992 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00329/0.1365, allocations: 2.682 MB / 480.9 MB, free: 3.172 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006388/0.1372, allocations: 260.2 kB / 481.2 MB, free: 2.91 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002231/0.1374, allocations: 109.3 kB / 481.3 MB, free: 2.801 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.32e-05/0.1374, allocations: 4.234 kB / 481.3 MB, free: 2.797 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003945/0.1378, allocations: 203.4 kB / 481.5 MB, free: 2.586 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 2.835e-06/0.1378, allocations: 0 / 481.5 MB, free: 2.586 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.0009588/0.1388, allocations: 481 kB / 482 MB, free: 2.109 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.224e-05/0.1389, allocations: 63.41 kB / 482 MB, free: 2.035 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006379/0.1395, allocations: 0.5417 MB / 482.6 MB, free: 1.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.749e-05/0.1396, allocations: 41.69 kB / 482.6 MB, free: 1.434 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002959/0.1399, allocations: 363.8 kB / 483 MB, free: 1.074 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.692e-05/0.14, allocations: 103.2 kB / 483.1 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001731/0.1402, allocations: 134.2 kB / 483.2 MB, free: 0.832 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000194/0.1404, allocations: 370.8 kB / 483.6 MB, free: 472 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002506/0.1406, allocations: 129.6 kB / 483.7 MB, free: 344 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005922/0.1412, allocations: 0.4926 MB / 484.2 MB, free: 15.66 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00161/0.1429, allocations: 0.918 MB / 485.1 MB, free: 14.57 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.476e-06/0.1429, allocations: 4 kB / 485.1 MB, free: 14.57 MB / 366.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001179/0.1441, allocations: 0.716 MB / 485.8 MB, free: 13.84 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.707e-05/0.1441, allocations: 15.94 kB / 485.8 MB, free: 13.83 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.773e-05/0.1441, allocations: 12 kB / 485.8 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.472e-05/0.1442, allocations: 27.92 kB / 485.9 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004439/0.1446, allocations: 139.8 kB / 486 MB, free: 13.65 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.92e-05/0.1447, allocations: 27.86 kB / 486 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003148/0.145, allocations: 83.53 kB / 486.1 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.86e-05/0.145, allocations: 44 kB / 486.2 MB, free: 13.5 MB / 366.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: 58 * Number of states: 0 () * Number of discrete variables: 38 (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.satLOW_in,R_inner.satHIGH_in,R_inner.ATreq_in,R_outer.satLOW_in,R_outer.satHIGH_in,R_outer.ATreq_in,R.satLOW_in,R.satHIGH_in,R.ATreq_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (92): * Single equations (assignments): 92 * 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.0004075/0.1455, allocations: 259.9 kB / 486.4 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.02e-05/0.1456, allocations: 59.56 kB / 486.5 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001209/0.1457, allocations: 57.5 kB / 486.5 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.1457, allocations: 4 kB / 486.5 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/0.1457, allocations: 4 kB / 486.5 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/0.1457, allocations: 0 / 486.5 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005618/0.1463, allocations: 457.2 kB / 487 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.828e-06/0.1463, allocations: 3.938 kB / 487 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002832/0.1466, allocations: 55.84 kB / 487 MB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.098e-05/0.1466, allocations: 11.92 kB / 487.1 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.582e-05/0.1467, allocations: 11.98 kB / 487.1 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.1467, allocations: 0 / 487.1 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.1467, allocations: 0 / 487.1 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001013/0.1477, allocations: 0.5598 MB / 487.6 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001179/0.1478, allocations: 132.6 kB / 487.8 MB, free: 11.81 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.588e-05/0.1479, allocations: 11.98 kB / 487.8 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000146/0.148, allocations: 15.98 kB / 487.8 MB, free: 11.78 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.111e-05/0.1481, allocations: 19.97 kB / 487.8 MB, free: 11.76 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.464e-05/0.1481, allocations: 8 kB / 487.8 MB, free: 11.75 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000444/0.1486, allocations: 346.8 kB / 488.2 MB, free: 11.42 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1486, allocations: 4 kB / 488.2 MB, free: 11.41 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005373/0.1491, allocations: 115.8 kB / 488.3 MB, free: 11.3 MB / 366.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.001417/0.1506, allocations: 1.132 MB / 489.4 MB, free: 10.14 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000838/0.1514, allocations: 425.8 kB / 489.8 MB, free: 9.723 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.1514, allocations: 0 / 489.8 MB, free: 9.723 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002792/0.1517, allocations: 148.3 kB / 490 MB, free: 9.578 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003567/0.1521, allocations: 58.22 kB / 490 MB, free: 9.523 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006787/0.1589, allocations: 4.946 MB / 495 MB, free: 4.137 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005172/0.1594, allocations: 0.8894 MB / 495.9 MB, free: 3.223 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002418/0.1597, allocations: 100.6 kB / 496 MB, free: 3.121 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002468/0.1599, allocations: 195.4 kB / 496.1 MB, free: 2.93 MB / 366.1 MB Notification: Performance of SimCode: time 9.92e-07/0.1599, allocations: 0 / 496.1 MB, free: 2.93 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03785/0.1978, allocations: 8.603 MB / 0.4929 GB, free: 10.49 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.803/9.001, allocations: 6.047 kB / 0.4929 GB, free: 10.49 MB / 382.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)