Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.Decoupling.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001302/0.001303, allocations: 108 kB / 16.4 MB, free: 6.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001332/0.001332, allocations: 191.7 kB / 19.35 MB, free: 3.711 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.441/1.441, allocations: 222.9 MB / 245.1 MB, free: 15 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.098/0.098, allocations: 22.32 MB / 319.6 MB, free: 6.742 MB / 254.1 MB " [Timeout remaining time 180] Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/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(AES.Coursework.Typical_control_structures.Decoupling,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Decoupling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_control_structures.Decoupling,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Decoupling",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001971/0.001971, allocations: 75.88 kB / 445.3 MB, free: 8.594 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1133, allocations: 54.95 MB / 0.4885 GB, free: 1.602 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Decoupling): time 0.003273/0.1166, allocations: 1.999 MB / 0.4904 GB, free: 15.59 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002687/0.1193, allocations: 1.806 MB / 0.4922 GB, free: 13.77 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002294/0.1195, allocations: 11.94 kB / 0.4922 GB, free: 13.76 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005283/0.1201, allocations: 162.8 kB / 0.4924 GB, free: 13.6 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005796/0.1207, allocations: 219 kB / 0.4926 GB, free: 13.38 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:71:5-71:30:writable] Warning: Conditional component 'ovrMax' is used in a non-connect context. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:77:5-77:30:writable] Warning: Conditional component 'ovrMin' is used in a non-connect context. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:71:5-71:30:writable] Warning: Conditional component 'ovrMax' is used in a non-connect context. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:77:5-77:30:writable] Warning: Conditional component 'ovrMin' is used in a non-connect context. Notification: Performance of NFTyping.typeClassSections: time 0.0006816/0.1214, allocations: 379.4 kB / 0.4929 GB, free: 13.01 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001202/0.1226, allocations: 1.066 MB / 0.494 GB, free: 11.95 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002806/0.1229, allocations: 158.1 kB / 0.4941 GB, free: 11.79 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004963/0.1234, allocations: 406.6 kB / 0.4945 GB, free: 11.39 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005561/0.124, allocations: 406.2 kB / 0.4949 GB, free: 10.99 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001159/0.1241, allocations: 68 kB / 0.495 GB, free: 10.92 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001863/0.1243, allocations: 95.95 kB / 0.4951 GB, free: 10.83 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002649/0.1246, allocations: 235.3 kB / 0.4953 GB, free: 10.6 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002921/0.1249, allocations: 314 kB / 0.4956 GB, free: 10.29 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008369/0.1257, allocations: 0.7391 MB / 0.4963 GB, free: 9.547 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.1257, allocations: 4 kB / 0.4963 GB, free: 9.543 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1257, allocations: 0 / 0.4963 GB, free: 9.543 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.002e-05/0.1258, allocations: 0 / 0.4963 GB, free: 9.543 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.003275/0.129, allocations: 1.242 MB / 0.4975 GB, free: 8.25 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.437e-05/0.1291, allocations: 16.03 kB / 0.4975 GB, free: 8.234 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001077/0.1292, allocations: 82.66 kB / 0.4976 GB, free: 8.145 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001481/0.1294, allocations: 80.42 kB / 0.4977 GB, free: 8.066 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001758/0.1311, allocations: 0.7575 MB / 0.4984 GB, free: 7.27 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.397e-05/0.1312, allocations: 37.38 kB / 0.4985 GB, free: 7.234 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.388e-05/0.1313, allocations: 48.31 kB / 0.4985 GB, free: 7.188 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008119/0.1321, allocations: 456.8 kB / 0.4989 GB, free: 6.723 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.518e-05/0.1321, allocations: 0 / 0.4989 GB, free: 6.723 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.893e-05/0.1322, allocations: 16 kB / 0.499 GB, free: 6.707 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.099e-05/0.1322, allocations: 8 kB / 0.499 GB, free: 6.699 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007782/0.133, allocations: 419.7 kB / 0.4994 GB, free: 6.289 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002484/0.1355, allocations: 1.641 MB / 0.501 GB, free: 4.582 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007828/0.1363, allocations: 482.4 kB / 0.5014 GB, free: 4.102 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003267/0.1366, allocations: 193.5 kB / 0.5016 GB, free: 3.91 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.533e-05/0.1367, allocations: 8 kB / 0.5016 GB, free: 3.902 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.01e-05/0.1367, allocations: 42.55 kB / 0.5017 GB, free: 3.852 MB / 382.1 MB Notification: Performance of pre-optimization done (n=44): time 2.094e-06/0.1367, allocations: 0 / 0.5017 GB, free: 3.852 MB / 382.1 MB Notification: Performance of matching and sorting (n=44): time 0.00115/0.1379, allocations: 0.6227 MB / 0.5023 GB, free: 3.223 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.943e-05/0.1379, allocations: 55.41 kB / 0.5023 GB, free: 3.156 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001849/0.1398, allocations: 0.91 MB / 0.5032 GB, free: 2.234 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.418e-05/0.1398, allocations: 45.69 kB / 0.5033 GB, free: 2.184 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002682/0.1401, allocations: 312.8 kB / 0.5036 GB, free: 1.871 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001496/0.1403, allocations: 162.6 kB / 0.5037 GB, free: 1.711 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000165/0.1404, allocations: 106.2 kB / 0.5038 GB, free: 1.602 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002142/0.1407, allocations: 390.6 kB / 0.5042 GB, free: 1.211 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00035/0.141, allocations: 189 kB / 0.5044 GB, free: 1.023 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004377/0.1415, allocations: 305.2 kB / 0.5047 GB, free: 0.6914 MB / 382.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.2226/0.3641, allocations: 1.379 MB / 0.506 GB, free: 19.83 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-06/0.3641, allocations: 0.7812 kB / 0.506 GB, free: 19.83 MB / 382.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0009742/0.3651, allocations: 0.6146 MB / 0.5066 GB, free: 19.79 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.767e-05/0.3651, allocations: 10.72 kB / 0.5066 GB, free: 19.79 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.3651, allocations: 1.562 kB / 0.5066 GB, free: 19.79 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.235e-05/0.3651, allocations: 6.5 kB / 0.5066 GB, free: 19.79 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006641/0.3658, allocations: 157.5 kB / 0.5068 GB, free: 19.79 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.105e-05/0.3658, allocations: 5.469 kB / 0.5068 GB, free: 19.79 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000699/0.3665, allocations: 129.9 kB / 0.5069 GB, free: 19.79 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.332e-05/0.3666, allocations: 19.66 kB / 0.5069 GB, free: 19.79 MB / 382.1 MB Warning: Assuming fixed start value for the following 2 variables: C2.xfb:VARIABLE(fixed = true ) type: Real C1.xfb:VARIABLE(fixed = true ) type: Real Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization system: D.Fcs2.y = D.Fcs2.y_start D.Fcs1.y = D.Fcs1.y_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 10 (C2.LOsat,C2.HIsat,C1.LOsat,C1.HIsat,C2.iNoDec,C2.iNoInc,C2.iTS,C1.iNoDec,C1.iNoInc,C1.iTS) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 70 * 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.0002875/0.3669, allocations: 240.8 kB / 0.5072 GB, free: 19.67 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.242e-05/0.367, allocations: 67.09 kB / 0.5072 GB, free: 19.67 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008142/0.3678, allocations: 0.5376 MB / 0.5077 GB, free: 19.61 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.3678, allocations: 5.016 kB / 0.5077 GB, free: 19.61 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.3678, allocations: 0 / 0.5077 GB, free: 19.61 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.242e-06/0.3678, allocations: 6.859 kB / 0.5078 GB, free: 19.61 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005867/0.3684, allocations: 0.6165 MB / 0.5084 GB, free: 19.42 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.275e-06/0.3684, allocations: 0.9375 kB / 0.5084 GB, free: 19.42 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004991/0.3689, allocations: 99.52 kB / 0.5085 GB, free: 19.42 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.168e-06/0.3689, allocations: 0.5 kB / 0.5085 GB, free: 19.42 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.829e-05/0.369, allocations: 15.09 kB / 0.5085 GB, free: 19.42 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.617e-06/0.369, allocations: 2.062 kB / 0.5085 GB, free: 19.42 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.369, allocations: 0.5 kB / 0.5085 GB, free: 19.42 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001019/0.37, allocations: 0.8376 MB / 0.5093 GB, free: 19.28 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001225/0.3702, allocations: 166.2 kB / 0.5094 GB, free: 19.15 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.742e-05/0.3702, allocations: 16.78 kB / 0.5095 GB, free: 19.15 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006512/0.3709, allocations: 90.38 kB / 0.5095 GB, free: 19.15 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.32e-05/0.371, allocations: 36.86 kB / 0.5096 GB, free: 19.14 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.552e-05/0.371, allocations: 13.72 kB / 0.5096 GB, free: 19.14 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001401/0.3724, allocations: 0.6869 MB / 0.5103 GB, free: 19.04 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.3724, allocations: 1.094 kB / 0.5103 GB, free: 19.04 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004706/0.3729, allocations: 111.7 kB / 0.5104 GB, free: 19.04 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 14 (P.P11.x_scaled[1],P.P12.x_scaled[1],P.P21.x_scaled[1],P.P22.x_scaled[1],D.D12.x_scaled[1],D.D21.x_scaled[1],C1.xfb,C1.xBias,C1.u,C1.csfil,C2.xfb,C2.xBias,C2.u,C2.csfil) * Number of discrete variables: 4 (C1.HIsat,C1.LOsat,C2.HIsat,C2.LOsat) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 46 * 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 Backend phase and start with SimCode phase: time 0.001237/0.3742, allocations: 1.386 MB / 0.5117 GB, free: 18.33 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007678/0.3749, allocations: 483.8 kB / 0.5122 GB, free: 18.32 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.375, allocations: 0 / 0.5122 GB, free: 18.32 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003295/0.3753, allocations: 235.6 kB / 0.5124 GB, free: 18.32 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005698/0.3759, allocations: 94.8 kB / 0.5125 GB, free: 18.31 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01003/0.3859, allocations: 6.445 MB / 0.5188 GB, free: 16.38 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004178/0.3864, allocations: 0.9576 MB / 0.5197 GB, free: 15.67 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003543/0.3867, allocations: 118.2 kB / 0.5198 GB, free: 15.66 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003325/0.3871, allocations: 245 kB / 0.5201 GB, free: 15.65 MB / 382.1 MB Notification: Performance of SimCode: time 1.052e-06/0.3871, allocations: 4 kB / 0.5201 GB, free: 15.64 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03972/0.4268, allocations: 12.41 MB / 0.5322 GB, free: 11.86 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.15/9.577, allocations: 11.62 kB / 0.5322 GB, free: 11.84 MB / 382.1 MB " [Timeout remaining time 650] (rm -f AES_AES.Coursework.Typical_control_structures.Decoupling.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.Decoupling.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.Decoupling.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.Decoupling.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.Typical_control_structures.Decoupling_res.csv --start-time 0 --stop-time 20 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.04 AES_AES_Coursework_Typical_control_structures_Decoupling.fmu > AES_AES.Coursework.Typical_control_structures.Decoupling.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.27620481804479] Failed to read output from testmodel.py, exit status != 0: 9.650592866935767 9.659476107 9.531908353 Calling exit ...