Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.MSL_loop_base.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.001314/0.001314, allocations: 97.92 kB / 19.73 MB, free: 2.133 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.001463/0.001463, allocations: 219.6 kB / 23.03 MB, free: 4.945 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.461/1.461, allocations: 230.6 MB / 256.8 MB, free: 7.793 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.1037/0.1037, allocations: 22.95 MB / 336.2 MB, free: 12.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.MSL_loop_base,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_loop_base",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.MSL_loop_base,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_loop_base",fmuType="cs",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.002046/0.002046, allocations: 69.47 kB / 472.2 MB, free: 7.879 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3445/0.3466, allocations: 59.29 MB / 0.519 GB, free: 10.59 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_base): time 0.002105/0.3487, allocations: 0.9516 MB / 0.5199 GB, free: 10.08 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001311/0.35, allocations: 1.212 MB / 0.5211 GB, free: 9.207 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.835e-05/0.3501, allocations: 10.12 kB / 0.5211 GB, free: 9.199 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000273/0.3503, allocations: 42.98 kB / 0.5212 GB, free: 9.176 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001628/0.3505, allocations: 42.81 kB / 0.5212 GB, free: 9.156 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002317/0.3507, allocations: 83.62 kB / 0.5213 GB, free: 9.117 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003616/0.3511, allocations: 243.4 kB / 0.5215 GB, free: 9.031 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001032/0.3512, allocations: 29.14 kB / 0.5215 GB, free: 9.012 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000142/0.3513, allocations: 98.97 kB / 0.5216 GB, free: 8.973 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001919/0.3515, allocations: 99.23 kB / 0.5217 GB, free: 8.941 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.704e-05/0.3516, allocations: 10.84 kB / 0.5217 GB, free: 8.941 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.746e-05/0.3516, allocations: 15.03 kB / 0.5218 GB, free: 8.938 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.336e-05/0.3517, allocations: 53.66 kB / 0.5218 GB, free: 8.914 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.803e-05/0.3517, allocations: 51.44 kB / 0.5219 GB, free: 8.879 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001764/0.3519, allocations: 131.5 kB / 0.522 GB, free: 8.832 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.3519, allocations: 0 / 0.522 GB, free: 8.832 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.3519, allocations: 0 / 0.522 GB, free: 8.832 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.8e-05/0.3519, allocations: 0 / 0.522 GB, free: 8.832 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.001107/0.3531, allocations: 455.9 kB / 0.5224 GB, free: 8.508 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.676e-05/0.3531, allocations: 10.45 kB / 0.5224 GB, free: 8.508 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.42e-05/0.3531, allocations: 6.875 kB / 0.5224 GB, free: 8.504 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.848e-05/0.3531, allocations: 42.92 kB / 0.5225 GB, free: 8.457 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.967e-05/0.3532, allocations: 24.95 kB / 0.5225 GB, free: 8.441 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005269/0.3537, allocations: 228.7 kB / 0.5227 GB, free: 8.277 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.449e-05/0.3537, allocations: 6.906 kB / 0.5227 GB, free: 8.273 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.612e-05/0.3537, allocations: 10.44 kB / 0.5227 GB, free: 8.27 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002267/0.354, allocations: 124 kB / 0.5229 GB, free: 8.203 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.243e-05/0.354, allocations: 3.938 kB / 0.5229 GB, free: 8.199 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.427e-05/0.354, allocations: 5.344 kB / 0.5229 GB, free: 8.195 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.679e-06/0.354, allocations: 5.594 kB / 0.5229 GB, free: 8.191 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002438/0.3542, allocations: 98.53 kB / 0.523 GB, free: 8.168 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006527/0.3549, allocations: 400.7 kB / 0.5233 GB, free: 7.879 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004002/0.3553, allocations: 153.1 kB / 0.5235 GB, free: 7.816 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001285/0.3554, allocations: 59.75 kB / 0.5235 GB, free: 7.793 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.701e-05/0.3554, allocations: 5.156 kB / 0.5236 GB, free: 7.789 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.471e-05/0.3555, allocations: 37.45 kB / 0.5236 GB, free: 7.746 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.203e-06/0.3555, allocations: 0 / 0.5236 GB, free: 7.746 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.001046/0.3565, allocations: 322.1 kB / 0.5239 GB, free: 7.633 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.594e-05/0.3565, allocations: 56.16 kB / 0.5239 GB, free: 7.57 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004431/0.357, allocations: 245.5 kB / 0.5242 GB, free: 7.441 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.402e-05/0.357, allocations: 30.86 kB / 0.5242 GB, free: 7.406 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.534e-05/0.357, allocations: 112.7 kB / 0.5243 GB, free: 7.301 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.903e-05/0.3571, allocations: 49.66 kB / 0.5244 GB, free: 7.262 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.947e-05/0.3571, allocations: 32.22 kB / 0.5244 GB, free: 7.234 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.586e-05/0.3572, allocations: 324.3 kB / 0.5247 GB, free: 6.918 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001051/0.3573, allocations: 50.86 kB / 0.5248 GB, free: 6.902 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.315e-05/0.3574, allocations: 50.64 kB / 0.5248 GB, free: 6.891 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001103/0.3585, allocations: 342.3 kB / 0.5251 GB, free: 6.797 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.3585, allocations: 1.062 kB / 0.5251 GB, free: 6.797 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004398/0.3589, allocations: 234.5 kB / 0.5254 GB, free: 6.691 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.453e-05/0.3589, allocations: 8.578 kB / 0.5254 GB, free: 6.691 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.499e-06/0.3589, allocations: 0 / 0.5254 GB, free: 6.691 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002066/0.3591, allocations: 57.56 kB / 0.5254 GB, free: 6.672 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001063/0.3592, allocations: 14.56 kB / 0.5254 GB, free: 6.672 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001058/0.3603, allocations: 1.499 MB / 0.5269 GB, free: 5.309 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002384/0.3605, allocations: 31.05 kB / 0.5269 GB, free: 5.305 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.285e-05/0.3605, allocations: 6.656 kB / 0.5269 GB, free: 5.301 MB / 382.1 MB Warning: Assuming fixed start value for the following 3 variables: Cfb.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 11 * 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,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001258/0.3607, allocations: 133.8 kB / 0.5271 GB, free: 5.176 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.002e-05/0.3607, allocations: 19.28 kB / 0.5271 GB, free: 5.164 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.077e-05/0.3608, allocations: 27.34 kB / 0.5271 GB, free: 5.141 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.3608, allocations: 2.078 kB / 0.5271 GB, free: 5.141 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.3608, allocations: 1.125 kB / 0.5271 GB, free: 5.141 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.3608, allocations: 0.75 kB / 0.5271 GB, free: 5.141 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002051/0.361, allocations: 205.5 kB / 0.5273 GB, free: 4.957 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.361, allocations: 0 / 0.5273 GB, free: 4.957 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001414/0.3611, allocations: 15.97 kB / 0.5273 GB, free: 4.953 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001643/0.3613, allocations: 56.94 kB / 0.5274 GB, free: 4.934 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.547e-05/0.3613, allocations: 9.344 kB / 0.5274 GB, free: 4.926 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009381/0.3622, allocations: 1.483 MB / 0.5288 GB, free: 3.578 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/0.3622, allocations: 4 kB / 0.5288 GB, free: 3.574 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005819/0.3628, allocations: 383.7 kB / 0.5292 GB, free: 3.348 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.162e-05/0.3628, allocations: 20.3 kB / 0.5292 GB, free: 3.336 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.711e-05/0.3629, allocations: 12.16 kB / 0.5292 GB, free: 3.328 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002599/0.3631, allocations: 29.48 kB / 0.5293 GB, free: 3.324 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.497e-05/0.3632, allocations: 8.938 kB / 0.5293 GB, free: 3.324 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.131e-05/0.3632, allocations: 6.984 kB / 0.5293 GB, free: 3.32 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004122/0.3636, allocations: 192.5 kB / 0.5295 GB, free: 3.227 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3636, allocations: 4 kB / 0.5295 GB, free: 3.223 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002939/0.3639, allocations: 31.09 kB / 0.5295 GB, free: 3.219 MB / 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],Cfb.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 (9): * Single equations (assignments): 8 * 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,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.0007493/0.3647, allocations: 0.9066 MB / 0.5304 GB, free: 2.469 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000492/0.3651, allocations: 254 kB / 0.5306 GB, free: 2.316 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.3651, allocations: 5.438 kB / 0.5306 GB, free: 2.312 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002628/0.3654, allocations: 195.4 kB / 0.5308 GB, free: 2.172 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003288/0.3657, allocations: 26.53 kB / 0.5308 GB, free: 2.164 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003291/0.369, allocations: 2.275 MB / 0.5331 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001092/0.3691, allocations: 114.5 kB / 0.5332 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.782e-05/0.3692, allocations: 32.8 kB / 0.5332 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.499e-05/0.3693, allocations: 41.94 kB / 0.5332 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3693, allocations: 0 / 0.5332 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03332/0.4026, allocations: 4.093 MB / 0.5372 GB, free: 15.88 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.99/12.39, allocations: 6.469 kB / 0.5372 GB, free: 15.88 MB / 398.1 MB " [Timeout remaining time 647] (rm -f AES_AES.Coursework.Tuning_brushup.MSL_loop_base.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.MSL_loop_base.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.MSL_loop_base.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.MSL_loop_base.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_MSL_loop_base_fmu --startTime=0 --stopTime=60 --stepSize=0.12 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Tuning_brushup_MSL_loop_base.fmu > AES_AES.Coursework.Tuning_brushup.MSL_loop_base.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.200381871894933] Failed to read output from testmodel.py, exit status != 0: 12.55574969702866 12.57720087 12.221829665 Calling exit ...