Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.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.001356/0.001356, allocations: 113 kB / 16.46 MB, free: 6.453 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.001643/0.001643, allocations: 213.7 kB / 19.43 MB, free: 3.625 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.601/1.601, allocations: 230.6 MB / 252.8 MB, free: 8.969 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.1086/0.1086, allocations: 24.11 MB / 333 MB, free: 12.64 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.MSL_loop_SPtimeTable,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_loop_SPtimeTable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_loop_SPtimeTable",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.002796/0.002796, allocations: 71.89 kB / 467.9 MB, free: 9.086 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3274/0.3302, allocations: 59.57 MB / 0.5151 GB, free: 9.629 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable): time 0.002551/0.3327, allocations: 1.765 MB / 0.5168 GB, free: 8.508 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001061/0.3338, allocations: 0.7172 MB / 0.5175 GB, free: 8.02 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.916e-05/0.3339, allocations: 5.656 kB / 0.5175 GB, free: 8.016 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002996/0.3342, allocations: 75.03 kB / 0.5176 GB, free: 7.996 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001824/0.3344, allocations: 89.03 kB / 0.5176 GB, free: 7.965 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004412/0.3348, allocations: 148.8 kB / 0.5178 GB, free: 7.898 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003102/0.3351, allocations: 269.9 kB / 0.518 GB, free: 7.801 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.388e-05/0.3352, allocations: 26.05 kB / 0.5181 GB, free: 7.793 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001513/0.3354, allocations: 116.2 kB / 0.5182 GB, free: 7.758 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002562/0.3356, allocations: 171.9 kB / 0.5183 GB, free: 7.707 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.639e-05/0.3357, allocations: 17.38 kB / 0.5184 GB, free: 7.703 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001475/0.3358, allocations: 91.19 kB / 0.5184 GB, free: 7.68 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.593e-05/0.3359, allocations: 61.42 kB / 0.5185 GB, free: 7.656 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.313e-05/0.336, allocations: 81.45 kB / 0.5186 GB, free: 7.602 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000313/0.3363, allocations: 247.3 kB / 0.5188 GB, free: 7.504 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.586e-06/0.3363, allocations: 3.938 kB / 0.5188 GB, free: 7.5 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.3363, allocations: 1.062 kB / 0.5188 GB, free: 7.5 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.441e-06/0.3363, allocations: 3.938 kB / 0.5188 GB, free: 7.496 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.001197/0.3375, allocations: 0.6213 MB / 0.5194 GB, free: 7 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.507e-05/0.3375, allocations: 10.84 kB / 0.5194 GB, free: 7 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.938e-05/0.3376, allocations: 45.53 kB / 0.5195 GB, free: 6.953 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.586e-05/0.3376, allocations: 31.78 kB / 0.5195 GB, free: 6.934 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005763/0.3382, allocations: 317.3 kB / 0.5198 GB, free: 6.688 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.573e-05/0.3382, allocations: 8 kB / 0.5198 GB, free: 6.684 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.029e-05/0.3383, allocations: 11.67 kB / 0.5198 GB, free: 6.68 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002866/0.3385, allocations: 155.8 kB / 0.52 GB, free: 6.609 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.195e-05/0.3386, allocations: 4 kB / 0.52 GB, free: 6.605 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.684e-05/0.3386, allocations: 5.281 kB / 0.52 GB, free: 6.602 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.3386, allocations: 2.562 kB / 0.52 GB, free: 6.602 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002761/0.3389, allocations: 137.8 kB / 0.5201 GB, free: 6.566 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007185/0.3396, allocations: 0.496 MB / 0.5206 GB, free: 6.215 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004274/0.34, allocations: 190.3 kB / 0.5208 GB, free: 6.145 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00016/0.3402, allocations: 94.12 kB / 0.5209 GB, free: 6.113 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.822e-05/0.3402, allocations: 2.531 kB / 0.5209 GB, free: 6.113 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002379/0.3404, allocations: 175.7 kB / 0.5211 GB, free: 6.008 MB / 382.1 MB Notification: Performance of pre-optimization done (n=19): time 1.583e-06/0.3404, allocations: 1.094 kB / 0.5211 GB, free: 6.008 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.001262/0.3417, allocations: 0.5883 MB / 0.5216 GB, free: 5.723 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.836e-05/0.3417, allocations: 84.52 kB / 0.5217 GB, free: 5.625 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005456/0.3423, allocations: 311.2 kB / 0.522 GB, free: 5.469 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.775e-05/0.3423, allocations: 27.14 kB / 0.522 GB, free: 5.438 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.563e-05/0.3423, allocations: 132.8 kB / 0.5222 GB, free: 5.32 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.151e-05/0.3424, allocations: 69.89 kB / 0.5222 GB, free: 5.266 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.382e-05/0.3424, allocations: 42.17 kB / 0.5223 GB, free: 5.234 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.754e-05/0.3425, allocations: 333.3 kB / 0.5226 GB, free: 4.914 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000138/0.3426, allocations: 85.78 kB / 0.5227 GB, free: 4.891 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001302/0.3428, allocations: 93.17 kB / 0.5228 GB, free: 4.863 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001242/0.344, allocations: 0.5694 MB / 0.5233 GB, free: 4.621 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.344, allocations: 0 / 0.5233 GB, free: 4.621 MB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000606/0.3446, allocations: 397.3 kB / 0.5237 GB, free: 4.449 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.2e-05/0.3446, allocations: 35.95 kB / 0.5237 GB, free: 4.418 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.531e-06/0.3446, allocations: 9.062 kB / 0.5237 GB, free: 4.41 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002037/0.3449, allocations: 55.27 kB / 0.5238 GB, free: 4.391 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001034/0.345, allocations: 21.11 kB / 0.5238 GB, free: 4.391 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001063/0.346, allocations: 1.603 MB / 0.5254 GB, free: 2.895 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002841/0.3463, allocations: 37.61 kB / 0.5254 GB, free: 2.887 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.927e-05/0.3463, allocations: 5.406 kB / 0.5254 GB, free: 2.887 MB / 382.1 MB Warning: Assuming fixed start value for the following 3 variables: C.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] Process.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Process.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: 7 (SP.nextEventScaled,SP.nextEvent,$PRE.SP.nextEvent,SP.last,SP.b,SP.a,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 1 * 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,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001761/0.3465, allocations: 197 kB / 0.5256 GB, free: 2.719 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.174e-05/0.3465, allocations: 24.73 kB / 0.5256 GB, free: 2.707 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.263e-05/0.3466, allocations: 32.77 kB / 0.5257 GB, free: 2.684 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.105e-06/0.3466, allocations: 6.031 kB / 0.5257 GB, free: 2.68 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.3466, allocations: 0.75 kB / 0.5257 GB, free: 2.68 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.636e-06/0.3466, allocations: 1.766 kB / 0.5257 GB, free: 2.68 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002327/0.3468, allocations: 295.8 kB / 0.5259 GB, free: 2.441 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.3468, allocations: 0.6094 kB / 0.526 GB, free: 2.441 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001181/0.347, allocations: 18.39 kB / 0.526 GB, free: 2.438 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001661/0.3471, allocations: 52.5 kB / 0.526 GB, free: 2.422 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.397e-05/0.3472, allocations: 12.64 kB / 0.526 GB, free: 2.414 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001007/0.3482, allocations: 1.603 MB / 0.5276 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.3482, allocations: 5.25 kB / 0.5276 GB, free: 0.918 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008473/0.349, allocations: 0.5291 MB / 0.5281 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.788e-05/0.3491, allocations: 103.4 kB / 0.5282 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.836e-05/0.3491, allocations: 12.91 kB / 0.5282 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002545/0.3494, allocations: 32.66 kB / 0.5283 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.487e-05/0.3494, allocations: 14.28 kB / 0.5283 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.245e-05/0.3494, allocations: 5.656 kB / 0.5283 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004923/0.3499, allocations: 242.5 kB / 0.5285 GB, free: 452 kB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3499, allocations: 0 / 0.5285 GB, free: 452 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003403/0.3503, allocations: 64.28 kB / 0.5286 GB, free: 444 kB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (Process.x_scaled[1],Process.x_scaled[2],C.x_scaled[1]) * Number of discrete variables: 6 ($whenCondition1,SP.a,SP.b,SP.last,SP.nextEvent,SP.nextEventScaled) * Number of discrete states: 6 (SP.nextEvent,SP.last,SP.nextEventScaled,SP.b,SP.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 1 * 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,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.00119/0.3515, allocations: 1.11 MB / 0.5297 GB, free: 15.64 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006969/0.3521, allocations: 412.3 kB / 0.53 GB, free: 15.39 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.3522, allocations: 0 / 0.53 GB, free: 15.39 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00042/0.3526, allocations: 287.4 kB / 0.5303 GB, free: 15.19 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002873/0.3529, allocations: 33.34 kB / 0.5304 GB, free: 15.17 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00496/0.3578, allocations: 2.94 MB / 0.5332 GB, free: 13.47 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000451/0.3583, allocations: 0.7589 MB / 0.534 GB, free: 12.77 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001013/0.3584, allocations: 32.77 kB / 0.534 GB, free: 12.76 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001115/0.3585, allocations: 68.94 kB / 0.5341 GB, free: 12.71 MB / 398.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3585, allocations: 0 / 0.5341 GB, free: 12.71 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03749/0.396, allocations: 5.415 MB / 0.5394 GB, free: 11.42 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.28/10.68, allocations: 12.72 kB / 0.5394 GB, free: 11.41 MB / 398.1 MB " [Timeout remaining time 649] (rm -f AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable_res.csv --start-time 0 --stop-time 15 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.03 AES_AES_Coursework_Tuning_brushup_MSL_loop_SPtimeTable.fmu > AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.545709308004007] Failed to read output from testmodel.py, exit status != 0: 10.75925390701741 10.779105522 10.438788349 Calling exit ...