Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001444/0.001444, allocations: 110.4 kB / 18.94 MB, free: 2.949 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001583/0.001583, allocations: 212.5 kB / 22.25 MB, free: 5.121 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.442/1.442, allocations: 230.6 MB / 256 MB, free: 7.98 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.1078/0.1078, allocations: 24.13 MB / 336.6 MB, free: 11.41 MB / 270.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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(AES.Coursework.Tuning_brushup.Exploiting_2dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_Exploiting_2dof",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.Exploiting_2dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_Exploiting_2dof",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: AES requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003261/0.003261, allocations: 71.89 kB / 473.3 MB, free: 6.371 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3304/0.3337, allocations: 59.6 MB / 0.5204 GB, free: 10.12 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Exploiting_2dof): time 0.002538/0.3362, allocations: 1.318 MB / 0.5217 GB, free: 9.242 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002411/0.3386, allocations: 1.465 MB / 0.5231 GB, free: 8.184 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001425/0.3388, allocations: 6.812 kB / 0.5231 GB, free: 8.18 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004433/0.3392, allocations: 103.9 kB / 0.5232 GB, free: 8.129 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002922/0.3395, allocations: 127.7 kB / 0.5234 GB, free: 8.066 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005402/0.3401, allocations: 236 kB / 0.5236 GB, free: 7.961 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000788/0.3409, allocations: 0.6191 MB / 0.5242 GB, free: 7.73 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001606/0.341, allocations: 59.14 kB / 0.5242 GB, free: 7.699 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003132/0.3413, allocations: 239.7 kB / 0.5245 GB, free: 7.613 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003831/0.3417, allocations: 263.9 kB / 0.5247 GB, free: 7.52 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.535e-05/0.3418, allocations: 27.78 kB / 0.5247 GB, free: 7.52 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.334e-05/0.3418, allocations: 26.53 kB / 0.5248 GB, free: 7.52 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001619/0.342, allocations: 132.2 kB / 0.5249 GB, free: 7.461 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001293/0.3421, allocations: 142.2 kB / 0.525 GB, free: 7.359 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004245/0.3425, allocations: 333.3 kB / 0.5254 GB, free: 7.223 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.3426, allocations: 10.22 kB / 0.5254 GB, free: 7.215 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.3426, allocations: 0 / 0.5254 GB, free: 7.215 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.845e-06/0.3426, allocations: 0 / 0.5254 GB, free: 7.215 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.002382/0.3449, allocations: 0.7961 MB / 0.5261 GB, free: 6.762 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.379e-05/0.345, allocations: 9.672 kB / 0.5262 GB, free: 6.762 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.281e-05/0.345, allocations: 52.52 kB / 0.5262 GB, free: 6.711 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.008e-05/0.3451, allocations: 39.2 kB / 0.5262 GB, free: 6.691 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001209/0.3463, allocations: 443.6 kB / 0.5267 GB, free: 6.457 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.767e-05/0.3463, allocations: 11.73 kB / 0.5267 GB, free: 6.453 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.868e-05/0.3464, allocations: 23.7 kB / 0.5267 GB, free: 6.441 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003639/0.3468, allocations: 214.9 kB / 0.5269 GB, free: 6.352 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.615e-05/0.3468, allocations: 3.938 kB / 0.5269 GB, free: 6.348 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.326e-05/0.3468, allocations: 10.91 kB / 0.5269 GB, free: 6.34 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.562e-06/0.3468, allocations: 2.906 kB / 0.5269 GB, free: 6.34 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004245/0.3472, allocations: 236.3 kB / 0.5271 GB, free: 6.27 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001323/0.3486, allocations: 0.7212 MB / 0.5278 GB, free: 5.883 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006541/0.3492, allocations: 316.6 kB / 0.5281 GB, free: 5.773 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002066/0.3494, allocations: 128.5 kB / 0.5283 GB, free: 5.727 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.271e-05/0.3494, allocations: 3.656 kB / 0.5283 GB, free: 5.727 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.399e-05/0.3494, allocations: 44 kB / 0.5283 GB, free: 5.676 MB / 382.1 MB Notification: Performance of pre-optimization done (n=26): time 1.462e-06/0.3494, allocations: 0 / 0.5283 GB, free: 5.676 MB / 382.1 MB Notification: Performance of matching and sorting (n=26): time 0.001831/0.3513, allocations: 0.6279 MB / 0.5289 GB, free: 5.477 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.48e-05/0.3513, allocations: 61.75 kB / 0.529 GB, free: 5.406 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00121/0.3525, allocations: 0.5021 MB / 0.5295 GB, free: 5.215 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.288e-05/0.3525, allocations: 30.86 kB / 0.5295 GB, free: 5.18 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.566e-05/0.3526, allocations: 173 kB / 0.5297 GB, free: 5.035 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.393e-05/0.3527, allocations: 104.1 kB / 0.5298 GB, free: 4.953 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.58e-05/0.3528, allocations: 51.3 kB / 0.5298 GB, free: 4.918 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.888e-05/0.3528, allocations: 344 kB / 0.5301 GB, free: 4.594 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001968/0.353, allocations: 111.2 kB / 0.5303 GB, free: 4.555 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001886/0.3532, allocations: 114.4 kB / 0.5304 GB, free: 4.52 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002359/0.3556, allocations: 0.7177 MB / 0.5311 GB, free: 4.336 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.3556, allocations: 4 kB / 0.5311 GB, free: 4.332 MB / 382.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0009082/0.3565, allocations: 483.8 kB / 0.5315 GB, free: 4.137 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.849e-05/0.3565, allocations: 6.516 kB / 0.5315 GB, free: 4.137 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.3565, allocations: 2.688 kB / 0.5315 GB, free: 4.137 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003545/0.3569, allocations: 108.5 kB / 0.5316 GB, free: 4.098 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001911/0.3571, allocations: 44.77 kB / 0.5317 GB, free: 4.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00211/0.3592, allocations: 2.999 MB / 0.5346 GB, free: 1.355 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000514/0.3597, allocations: 77.28 kB / 0.5347 GB, free: 1.344 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.232e-05/0.3597, allocations: 13.69 kB / 0.5347 GB, free: 1.336 MB / 382.1 MB Warning: Assuming fixed start value for the following 7 variables: Cfb_2.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] Cfb_1.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] Cff_2.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] Process_2.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Process_2.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Process_1.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Process_1.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002145/0.3599, allocations: 181 kB / 0.5349 GB, free: 1.188 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.881e-05/0.36, allocations: 35.34 kB / 0.5349 GB, free: 1.168 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.695e-05/0.3601, allocations: 56.52 kB / 0.535 GB, free: 1.133 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-06/0.3601, allocations: 2.781 kB / 0.535 GB, free: 1.133 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.113e-06/0.3601, allocations: 1.031 kB / 0.535 GB, free: 1.133 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.3601, allocations: 1.922 kB / 0.535 GB, free: 1.133 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004122/0.3605, allocations: 371.5 kB / 0.5353 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.3605, allocations: 3.938 kB / 0.5353 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002205/0.3608, allocations: 37.39 kB / 0.5354 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003593/0.3611, allocations: 107.4 kB / 0.5355 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.608e-05/0.3611, allocations: 8.766 kB / 0.5355 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00263/0.3638, allocations: 2.999 MB / 0.5384 GB, free: 14.11 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.3638, allocations: 0 / 0.5384 GB, free: 14.11 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001285/0.3651, allocations: 0.655 MB / 0.539 GB, free: 13.79 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001043/0.3652, allocations: 51.58 kB / 0.5391 GB, free: 13.75 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.046e-05/0.3652, allocations: 8.984 kB / 0.5391 GB, free: 13.75 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005323/0.3657, allocations: 67.48 kB / 0.5392 GB, free: 13.75 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.847e-05/0.3658, allocations: 25.73 kB / 0.5392 GB, free: 13.74 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.831e-05/0.3659, allocations: 10.14 kB / 0.5392 GB, free: 13.73 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001129/0.367, allocations: 405 kB / 0.5396 GB, free: 13.59 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.367, allocations: 0 / 0.5396 GB, free: 13.59 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004374/0.3674, allocations: 79.33 kB / 0.5397 GB, free: 13.57 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (Process_1.x_scaled[1],Process_1.x_scaled[2],Process_2.x_scaled[1],Process_2.x_scaled[2],Cff_2.x_scaled[1],Cfb_1.x_scaled[1],Cfb_2.x_scaled[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00156/0.369, allocations: 1.199 MB / 0.5408 GB, free: 12.71 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009762/0.37, allocations: 0.5287 MB / 0.5413 GB, free: 12.39 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.37, allocations: 4 kB / 0.5413 GB, free: 12.39 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006229/0.3706, allocations: 395.2 kB / 0.5417 GB, free: 12.11 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004894/0.3711, allocations: 62.91 kB / 0.5418 GB, free: 12.09 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007736/0.3788, allocations: 4.008 MB / 0.5457 GB, free: 9.797 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004584/0.3793, allocations: 0.8147 MB / 0.5465 GB, free: 9.043 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001774/0.3794, allocations: 72.16 kB / 0.5466 GB, free: 9.012 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001799/0.3796, allocations: 114.5 kB / 0.5467 GB, free: 8.914 MB / 398.1 MB Notification: Performance of SimCode: time 8.42e-07/0.3796, allocations: 0 / 0.5467 GB, free: 8.914 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05949/0.4391, allocations: 8.041 MB / 0.5545 GB, free: 5.008 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.01/12.45, allocations: 18.16 kB / 0.5545 GB, free: 4.996 MB / 398.1 MB " [Timeout remaining time 647] (rm -f AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.Tuning_brushup.Exploiting_2dof_res.csv --start-time 0 --stop-time 200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.4 AES_AES_Coursework_Tuning_brushup_Exploiting_2dof.fmu > AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.200664764000976] Failed to read output from testmodel.py, exit status != 0: 12.564173875995039 12.587698875 12.2404654 Calling exit ...