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.001361/0.001361, allocations: 101.3 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.001688/0.001688, allocations: 221 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.51/1.51, allocations: 230.6 MB / 256.8 MB, free: 7.781 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.1025/0.1025, allocations: 22.94 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_SPtimeTable,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_loop_SPtimeTable",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_loop_SPtimeTable",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.003141/0.003141, allocations: 67.89 kB / 472.2 MB, free: 7.875 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3911/0.3942, allocations: 59.29 MB / 0.519 GB, free: 10.61 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable): time 0.003489/0.3977, allocations: 1.731 MB / 0.5207 GB, free: 9.512 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001729/0.3995, allocations: 0.6676 MB / 0.5213 GB, free: 9.078 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001233/0.3996, allocations: 8.875 kB / 0.5214 GB, free: 9.074 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004342/0.4, allocations: 73.66 kB / 0.5214 GB, free: 9.055 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000279/0.4003, allocations: 85.31 kB / 0.5215 GB, free: 9.027 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005893/0.4009, allocations: 164.5 kB / 0.5217 GB, free: 8.953 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004864/0.4014, allocations: 311.2 kB / 0.522 GB, free: 8.844 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001183/0.4015, allocations: 25.56 kB / 0.522 GB, free: 8.832 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001996/0.4017, allocations: 124 kB / 0.5221 GB, free: 8.793 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003174/0.402, allocations: 171.9 kB / 0.5223 GB, free: 8.742 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.628e-05/0.402, allocations: 12.81 kB / 0.5223 GB, free: 8.742 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001737/0.4022, allocations: 85.36 kB / 0.5224 GB, free: 8.723 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001477/0.4024, allocations: 71.39 kB / 0.5224 GB, free: 8.691 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001353/0.4025, allocations: 67.09 kB / 0.5225 GB, free: 8.648 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005308/0.403, allocations: 242.5 kB / 0.5227 GB, free: 8.559 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/0.403, allocations: 0.6094 kB / 0.5227 GB, free: 8.559 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.403, allocations: 0 / 0.5227 GB, free: 8.559 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.154e-06/0.403, allocations: 1.406 kB / 0.5227 GB, free: 8.559 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.001876/0.4049, allocations: 0.5508 MB / 0.5233 GB, free: 8.152 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.494e-05/0.405, allocations: 13.8 kB / 0.5233 GB, free: 8.148 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.313e-05/0.405, allocations: 3.75 kB / 0.5233 GB, free: 8.148 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.832e-05/0.4051, allocations: 41.95 kB / 0.5233 GB, free: 8.105 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.805e-05/0.4052, allocations: 32.66 kB / 0.5234 GB, free: 8.09 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007518/0.4059, allocations: 266.3 kB / 0.5236 GB, free: 7.902 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.711e-05/0.406, allocations: 8.812 kB / 0.5236 GB, free: 7.898 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.8e-05/0.406, allocations: 10.98 kB / 0.5236 GB, free: 7.895 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004197/0.4064, allocations: 187 kB / 0.5238 GB, free: 7.793 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.941e-05/0.4064, allocations: 3.938 kB / 0.5238 GB, free: 7.789 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.194e-05/0.4065, allocations: 5.125 kB / 0.5238 GB, free: 7.785 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.944e-06/0.4065, allocations: 2.219 kB / 0.5238 GB, free: 7.785 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003235/0.4068, allocations: 168.7 kB / 0.524 GB, free: 7.715 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000866/0.4077, allocations: 444.9 kB / 0.5244 GB, free: 7.41 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004797/0.4081, allocations: 217.4 kB / 0.5246 GB, free: 7.305 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001744/0.4083, allocations: 127.3 kB / 0.5247 GB, free: 7.238 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.965e-05/0.4083, allocations: 2.75 kB / 0.5247 GB, free: 7.238 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003007/0.4086, allocations: 219 kB / 0.5249 GB, free: 7.09 MB / 382.1 MB Notification: Performance of pre-optimization done (n=19): time 1.723e-06/0.4086, allocations: 0 / 0.5249 GB, free: 7.09 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.001284/0.4099, allocations: 0.5612 MB / 0.5255 GB, free: 6.836 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.639e-05/0.41, allocations: 88.03 kB / 0.5256 GB, free: 6.738 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005474/0.4105, allocations: 307.8 kB / 0.5259 GB, free: 6.594 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.061e-05/0.4105, allocations: 30.8 kB / 0.5259 GB, free: 6.559 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.125e-05/0.4106, allocations: 132.1 kB / 0.526 GB, free: 6.441 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.135e-05/0.4107, allocations: 65.52 kB / 0.5261 GB, free: 6.391 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.17e-05/0.4107, allocations: 42.81 kB / 0.5261 GB, free: 6.363 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.715e-05/0.4108, allocations: 338.5 kB / 0.5264 GB, free: 6.035 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001611/0.411, allocations: 116.6 kB / 0.5266 GB, free: 5.977 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001755/0.4111, allocations: 123.3 kB / 0.5267 GB, free: 5.918 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001464/0.4126, allocations: 0.5767 MB / 0.5272 GB, free: 5.672 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.4126, allocations: 0 / 0.5272 GB, free: 5.672 MB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007035/0.4133, allocations: 432.2 kB / 0.5277 GB, free: 5.469 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.139e-05/0.4133, allocations: 43.17 kB / 0.5277 GB, free: 5.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.4133, allocations: 1.25 kB / 0.5277 GB, free: 5.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002394/0.4136, allocations: 52.02 kB / 0.5277 GB, free: 5.414 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001136/0.4137, allocations: 23.88 kB / 0.5278 GB, free: 5.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001167/0.4149, allocations: 1.505 MB / 0.5292 GB, free: 4.035 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002781/0.4151, allocations: 37.86 kB / 0.5293 GB, free: 4.027 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.209e-05/0.4152, allocations: 9.578 kB / 0.5293 GB, free: 4.023 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.0002346/0.4154, allocations: 193.1 kB / 0.5295 GB, free: 3.855 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.596e-05/0.4154, allocations: 27.72 kB / 0.5295 GB, free: 3.84 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.836e-05/0.4155, allocations: 33.92 kB / 0.5295 GB, free: 3.816 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.945e-06/0.4155, allocations: 5.875 kB / 0.5295 GB, free: 3.812 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.261e-06/0.4155, allocations: 1.25 kB / 0.5295 GB, free: 3.812 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.4155, allocations: 1.219 kB / 0.5295 GB, free: 3.812 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002805/0.4158, allocations: 230 kB / 0.5298 GB, free: 3.625 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.4158, allocations: 1.641 kB / 0.5298 GB, free: 3.625 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001463/0.4159, allocations: 15.03 kB / 0.5298 GB, free: 3.625 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001814/0.4161, allocations: 60.11 kB / 0.5298 GB, free: 3.602 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.734e-05/0.4162, allocations: 8.531 kB / 0.5298 GB, free: 3.598 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001051/0.4172, allocations: 1.499 MB / 0.5313 GB, free: 2.238 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.4172, allocations: 0 / 0.5313 GB, free: 2.238 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000907/0.4181, allocations: 0.5909 MB / 0.5319 GB, free: 1.93 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.057e-05/0.4182, allocations: 22.77 kB / 0.5319 GB, free: 1.918 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.313e-05/0.4182, allocations: 16.88 kB / 0.5319 GB, free: 1.906 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002566/0.4185, allocations: 35.75 kB / 0.5319 GB, free: 1.898 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.228e-05/0.4185, allocations: 11.55 kB / 0.532 GB, free: 1.898 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.603e-05/0.4185, allocations: 10.33 kB / 0.532 GB, free: 1.895 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000476/0.419, allocations: 237.6 kB / 0.5322 GB, free: 1.789 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.419, allocations: 0 / 0.5322 GB, free: 1.789 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003852/0.4194, allocations: 68.98 kB / 0.5323 GB, free: 1.777 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],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.001239/0.4206, allocations: 1.167 MB / 0.5334 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008093/0.4215, allocations: 474.2 kB / 0.5339 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.4215, allocations: 0 / 0.5339 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003505/0.4218, allocations: 326.7 kB / 0.5342 GB, free: 372 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003017/0.4221, allocations: 44.48 kB / 0.5342 GB, free: 352 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005492/0.4276, allocations: 3.119 MB / 0.5373 GB, free: 14.46 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000218/0.4278, allocations: 153.3 kB / 0.5374 GB, free: 14.37 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001101/0.4279, allocations: 26.94 kB / 0.5374 GB, free: 14.37 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001248/0.4281, allocations: 65.64 kB / 0.5375 GB, free: 14.32 MB / 398.1 MB Notification: Performance of SimCode: time 9.42e-07/0.4281, allocations: 0 / 0.5375 GB, free: 14.32 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03268/0.4607, allocations: 5.735 MB / 0.5431 GB, free: 12.67 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.94/12.4, allocations: 17.41 kB / 0.5431 GB, free: 12.66 MB / 398.1 MB " [Timeout remaining time 647] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_MSL_loop_SPtimeTable_fmu --startTime=0 --stopTime=15 --stepSize=0.03 --timeout=50 --tolerance=1e-06 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: 15.234614590066485] Failed to read output from testmodel.py, exit status != 0: 12.565334071987309 12.577997143 12.171888754 Calling exit ...