Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.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.001765/0.001765, allocations: 104.2 kB / 16.45 MB, free: 6.449 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.001418/0.001418, allocations: 210.4 kB / 19.43 MB, free: 3.637 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.456/1.456, allocations: 230.6 MB / 252.8 MB, free: 9.109 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.1076/0.1076, allocations: 24.12 MB / 333 MB, free: 12.59 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.IMC_scheme_1dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_IMC_scheme_1dof",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.IMC_scheme_1dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_IMC_scheme_1dof",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.002095/0.002095, allocations: 67.89 kB / 467.9 MB, free: 9.023 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3457/0.3478, allocations: 59.58 MB / 0.5151 GB, free: 9.602 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_1dof): time 0.002223/0.35, allocations: 1.061 MB / 0.5161 GB, free: 9.016 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001443/0.3515, allocations: 1.31 MB / 0.5174 GB, free: 8.066 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.26e-05/0.3516, allocations: 2.188 kB / 0.5174 GB, free: 8.066 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002902/0.3519, allocations: 59.31 kB / 0.5174 GB, free: 8.035 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001759/0.352, allocations: 61.88 kB / 0.5175 GB, free: 8.008 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002118/0.3522, allocations: 100.9 kB / 0.5176 GB, free: 7.961 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003313/0.3526, allocations: 302.6 kB / 0.5179 GB, free: 7.852 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001158/0.3527, allocations: 29.67 kB / 0.5179 GB, free: 7.836 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001555/0.3528, allocations: 133.4 kB / 0.518 GB, free: 7.785 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002433/0.3531, allocations: 168.7 kB / 0.5182 GB, free: 7.73 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.402e-05/0.3531, allocations: 17.56 kB / 0.5182 GB, free: 7.73 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.34e-05/0.3532, allocations: 23.19 kB / 0.5182 GB, free: 7.727 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001177/0.3533, allocations: 93.92 kB / 0.5183 GB, free: 7.688 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.387e-05/0.3534, allocations: 95.52 kB / 0.5184 GB, free: 7.621 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002505/0.3536, allocations: 223.4 kB / 0.5186 GB, free: 7.535 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.3536, allocations: 0.7031 kB / 0.5186 GB, free: 7.535 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.3536, allocations: 0.875 kB / 0.5186 GB, free: 7.535 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.103e-06/0.3536, allocations: 0 / 0.5186 GB, free: 7.535 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.001571/0.3552, allocations: 0.6762 MB / 0.5193 GB, free: 7.059 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.688e-05/0.3552, allocations: 10.44 kB / 0.5193 GB, free: 7.059 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.55e-05/0.3553, allocations: 42.31 kB / 0.5193 GB, free: 7.016 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.771e-05/0.3553, allocations: 32.06 kB / 0.5194 GB, free: 6.996 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007854/0.3561, allocations: 365.6 kB / 0.5197 GB, free: 6.738 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.819e-05/0.3561, allocations: 10.81 kB / 0.5197 GB, free: 6.734 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.624e-05/0.3562, allocations: 16.86 kB / 0.5198 GB, free: 6.727 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000307/0.3565, allocations: 168.4 kB / 0.5199 GB, free: 6.652 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.34e-05/0.3565, allocations: 1.188 kB / 0.5199 GB, free: 6.652 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.919e-05/0.3565, allocations: 6.422 kB / 0.5199 GB, free: 6.648 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.601e-06/0.3565, allocations: 3.094 kB / 0.5199 GB, free: 6.648 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003196/0.3569, allocations: 171.6 kB / 0.5201 GB, free: 6.602 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001023/0.3579, allocations: 0.6322 MB / 0.5207 GB, free: 6.211 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003392/0.3582, allocations: 209.1 kB / 0.5209 GB, free: 6.125 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001738/0.3584, allocations: 110.6 kB / 0.521 GB, free: 6.082 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.893e-05/0.3584, allocations: 2.188 kB / 0.521 GB, free: 6.082 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.377e-05/0.3584, allocations: 35.62 kB / 0.521 GB, free: 6.039 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 1.282e-06/0.3584, allocations: 1.25 kB / 0.521 GB, free: 6.039 MB / 382.1 MB Notification: Performance of matching and sorting (n=20): time 0.001748/0.3602, allocations: 0.6454 MB / 0.5217 GB, free: 5.777 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.462e-05/0.3602, allocations: 54.19 kB / 0.5217 GB, free: 5.715 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007421/0.3609, allocations: 343.7 kB / 0.5221 GB, free: 5.555 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.68e-05/0.361, allocations: 26.8 kB / 0.5221 GB, free: 5.523 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.146e-05/0.361, allocations: 138.1 kB / 0.5222 GB, free: 5.402 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.318e-05/0.3611, allocations: 80.08 kB / 0.5223 GB, free: 5.34 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.035e-05/0.3611, allocations: 38.38 kB / 0.5223 GB, free: 5.312 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.706e-05/0.3612, allocations: 340.8 kB / 0.5227 GB, free: 4.984 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001576/0.3614, allocations: 94.11 kB / 0.5227 GB, free: 4.953 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001547/0.3615, allocations: 90.53 kB / 0.5228 GB, free: 4.926 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002038/0.3636, allocations: 0.6204 MB / 0.5234 GB, free: 4.766 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.3636, allocations: 3.938 kB / 0.5234 GB, free: 4.762 MB / 382.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0007983/0.3644, allocations: 394.8 kB / 0.5238 GB, free: 4.613 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.895e-05/0.3644, allocations: 8.844 kB / 0.5238 GB, free: 4.609 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.3644, allocations: 1.25 kB / 0.5238 GB, free: 4.609 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003523/0.3647, allocations: 93.98 kB / 0.5239 GB, free: 4.582 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001781/0.3649, allocations: 34.53 kB / 0.5239 GB, free: 4.578 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00162/0.3665, allocations: 1.85 MB / 0.5258 GB, free: 2.988 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003658/0.3669, allocations: 49.75 kB / 0.5258 GB, free: 2.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.919e-05/0.3669, allocations: 9.109 kB / 0.5258 GB, free: 2.977 MB / 382.1 MB Warning: Assuming fixed start value for the following 6 variables: M.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] M.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] HF.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] HF.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] P.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] P.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 (21): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001883/0.3671, allocations: 160.3 kB / 0.526 GB, free: 2.84 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.567e-05/0.3672, allocations: 22.23 kB / 0.526 GB, free: 2.828 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.767e-05/0.3672, allocations: 40.33 kB / 0.526 GB, free: 2.801 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.926e-06/0.3672, allocations: 6.25 kB / 0.526 GB, free: 2.797 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.466e-06/0.3673, allocations: 1.734 kB / 0.526 GB, free: 2.797 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.04e-06/0.3673, allocations: 1.312 kB / 0.526 GB, free: 2.797 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003392/0.3676, allocations: 329.5 kB / 0.5263 GB, free: 2.547 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.3676, allocations: 0 / 0.5263 GB, free: 2.547 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000185/0.3678, allocations: 32.94 kB / 0.5264 GB, free: 2.539 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002992/0.3681, allocations: 94.12 kB / 0.5265 GB, free: 2.516 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.478e-05/0.3681, allocations: 12.16 kB / 0.5265 GB, free: 2.508 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001481/0.3696, allocations: 1.86 MB / 0.5283 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.3696, allocations: 0.7031 kB / 0.5283 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009368/0.3705, allocations: 0.5557 MB / 0.5288 GB, free: 0.625 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.706e-05/0.3706, allocations: 106.5 kB / 0.5289 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.467e-05/0.3706, allocations: 7.609 kB / 0.5289 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003846/0.371, allocations: 45.12 kB / 0.529 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.621e-05/0.3711, allocations: 19.12 kB / 0.529 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.566e-05/0.3711, allocations: 4.062 kB / 0.529 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007635/0.3719, allocations: 272.8 kB / 0.5293 GB, free: 396 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3719, allocations: 0 / 0.5293 GB, free: 396 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.000361/0.3722, allocations: 59.66 kB / 0.5293 GB, free: 384 kB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (P.x_scaled[1],P.x_scaled[2],HF.x_scaled[1],HF.x_scaled[2],M.x_scaled[1],M.x_scaled[2]) * 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 (15): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001321/0.3736, allocations: 1.099 MB / 0.5304 GB, free: 15.56 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00081/0.3744, allocations: 364.1 kB / 0.5307 GB, free: 15.38 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3744, allocations: 4 kB / 0.5308 GB, free: 15.37 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004665/0.3748, allocations: 259.4 kB / 0.531 GB, free: 15.21 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003788/0.3752, allocations: 30.52 kB / 0.531 GB, free: 15.2 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005779/0.381, allocations: 3.126 MB / 0.5341 GB, free: 13.41 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004627/0.3815, allocations: 0.7728 MB / 0.5348 GB, free: 12.7 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001421/0.3816, allocations: 53.88 kB / 0.5349 GB, free: 12.7 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001295/0.3817, allocations: 72.58 kB / 0.535 GB, free: 12.65 MB / 398.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3817, allocations: 0 / 0.535 GB, free: 12.65 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03365/0.4154, allocations: 5.749 MB / 0.5406 GB, free: 10.73 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.06/10.48, allocations: 8.812 kB / 0.5406 GB, free: 10.73 MB / 398.1 MB " [Timeout remaining time 649] (rm -f AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.12 AES_AES_Coursework_Tuning_brushup_IMC_scheme_1dof.fmu > AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.179445439949632] Failed to read output from testmodel.py, exit status != 0: 10.55717472708784 10.57134593 10.214933698 Calling exit ...