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.001333/0.001333, allocations: 121.4 kB / 17.17 MB, free: 5.977 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.0014/0.0014, allocations: 211.3 kB / 20.13 MB, free: 3.035 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.483/1.483, allocations: 230.6 MB / 253.5 MB, free: 15.12 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.1018/0.1018, allocations: 22.93 MB / 332.5 MB, free: 2.648 MB / 254.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.002057/0.002057, allocations: 69 kB / 466.7 MB, free: 32.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1104, allocations: 59.27 MB / 0.5137 GB, free: 14.02 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable): time 0.003312/0.1137, allocations: 1.77 MB / 0.5154 GB, free: 12.24 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001517/0.1152, allocations: 0.7207 MB / 0.5161 GB, free: 11.51 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001316/0.1154, allocations: 0 / 0.5161 GB, free: 11.51 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004251/0.1158, allocations: 79.66 kB / 0.5162 GB, free: 11.43 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002408/0.116, allocations: 91.64 kB / 0.5163 GB, free: 11.34 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005353/0.1166, allocations: 143.7 kB / 0.5164 GB, free: 11.2 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004002/0.117, allocations: 267.5 kB / 0.5167 GB, free: 10.94 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000123/0.1171, allocations: 29.47 kB / 0.5167 GB, free: 10.91 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001795/0.1173, allocations: 119.6 kB / 0.5168 GB, free: 10.8 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002899/0.1176, allocations: 159.5 kB / 0.517 GB, free: 10.64 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.79e-05/0.1176, allocations: 15.94 kB / 0.517 GB, free: 10.62 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000166/0.1178, allocations: 99.84 kB / 0.5171 GB, free: 10.53 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001111/0.1179, allocations: 63.81 kB / 0.5171 GB, free: 10.46 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001064/0.118, allocations: 87.41 kB / 0.5172 GB, free: 10.38 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003839/0.1184, allocations: 239 kB / 0.5174 GB, free: 10.14 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.1184, allocations: 4 kB / 0.5174 GB, free: 10.14 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.1184, allocations: 0 / 0.5174 GB, free: 10.14 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.55e-06/0.1184, allocations: 0 / 0.5174 GB, free: 10.14 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.001415/0.1198, allocations: 0.6286 MB / 0.5181 GB, free: 9.457 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.121e-05/0.1198, allocations: 8.625 kB / 0.5181 GB, free: 9.449 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.536e-05/0.1198, allocations: 4.188 kB / 0.5181 GB, free: 9.445 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.197e-05/0.1199, allocations: 50.73 kB / 0.5181 GB, free: 9.387 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.841e-05/0.1199, allocations: 28.75 kB / 0.5181 GB, free: 9.359 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006654/0.1206, allocations: 314.9 kB / 0.5184 GB, free: 9.016 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.237e-05/0.1206, allocations: 8.375 kB / 0.5185 GB, free: 9.008 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.429e-05/0.1207, allocations: 8.328 kB / 0.5185 GB, free: 9 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003177/0.121, allocations: 160.6 kB / 0.5186 GB, free: 8.84 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.373e-05/0.121, allocations: 3.938 kB / 0.5186 GB, free: 8.836 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.284e-05/0.121, allocations: 8 kB / 0.5186 GB, free: 8.828 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.699e-06/0.121, allocations: 0 / 0.5186 GB, free: 8.828 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002997/0.1213, allocations: 132.8 kB / 0.5188 GB, free: 8.699 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009093/0.1222, allocations: 0.5082 MB / 0.5192 GB, free: 8.141 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004759/0.1227, allocations: 178.5 kB / 0.5194 GB, free: 7.957 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000178/0.1229, allocations: 100.8 kB / 0.5195 GB, free: 7.855 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.038e-05/0.1229, allocations: 4 kB / 0.5195 GB, free: 7.852 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002909/0.1232, allocations: 177 kB / 0.5197 GB, free: 7.66 MB / 382.1 MB Notification: Performance of pre-optimization done (n=19): time 1.863e-06/0.1232, allocations: 4 kB / 0.5197 GB, free: 7.656 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.00147/0.1247, allocations: 0.5801 MB / 0.5203 GB, free: 7.043 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.846e-05/0.1248, allocations: 85.09 kB / 0.5203 GB, free: 6.941 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006284/0.1254, allocations: 308.9 kB / 0.5206 GB, free: 6.621 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.74e-05/0.1254, allocations: 25.7 kB / 0.5207 GB, free: 6.59 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.967e-05/0.1255, allocations: 132.1 kB / 0.5208 GB, free: 6.457 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.4e-05/0.1256, allocations: 63.44 kB / 0.5208 GB, free: 6.395 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.624e-05/0.1257, allocations: 45.7 kB / 0.5209 GB, free: 6.344 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001951/0.1259, allocations: 330.8 kB / 0.5212 GB, free: 6.012 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001779/0.1261, allocations: 83.95 kB / 0.5213 GB, free: 5.93 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001608/0.1262, allocations: 83.95 kB / 0.5214 GB, free: 5.848 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001475/0.1277, allocations: 0.5755 MB / 0.5219 GB, free: 5.246 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.377e-06/0.1277, allocations: 4 kB / 0.5219 GB, free: 5.242 MB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000743/0.1284, allocations: 399.7 kB / 0.5223 GB, free: 4.836 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.67e-05/0.1285, allocations: 33.7 kB / 0.5223 GB, free: 4.797 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.1285, allocations: 0 / 0.5223 GB, free: 4.797 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002363/0.1287, allocations: 56.73 kB / 0.5224 GB, free: 4.738 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001151/0.1288, allocations: 23.98 kB / 0.5224 GB, free: 4.715 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001739/0.1306, allocations: 1.602 MB / 0.524 GB, free: 2.973 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002796/0.1309, allocations: 39.95 kB / 0.524 GB, free: 2.934 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.35e-05/0.1309, allocations: 11.98 kB / 0.524 GB, free: 2.922 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.0003163/0.1312, allocations: 208.3 kB / 0.5242 GB, free: 2.703 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.347e-05/0.1312, allocations: 27.8 kB / 0.5243 GB, free: 2.676 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.16e-05/0.1313, allocations: 34.17 kB / 0.5243 GB, free: 2.641 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.235e-06/0.1313, allocations: 0 / 0.5243 GB, free: 2.641 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.1313, allocations: 0 / 0.5243 GB, free: 2.641 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.1313, allocations: 4 kB / 0.5243 GB, free: 2.637 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003561/0.1317, allocations: 285.5 kB / 0.5246 GB, free: 2.309 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.1317, allocations: 0 / 0.5246 GB, free: 2.309 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001285/0.1318, allocations: 23.86 kB / 0.5246 GB, free: 2.285 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001892/0.132, allocations: 56.75 kB / 0.5246 GB, free: 2.227 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.489e-05/0.132, allocations: 7.984 kB / 0.5247 GB, free: 2.219 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001612/0.1337, allocations: 1.61 MB / 0.5262 GB, free: 480 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.1337, allocations: 0 / 0.5262 GB, free: 480 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009941/0.1347, allocations: 0.5304 MB / 0.5267 GB, free: 15.91 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.08e-05/0.1347, allocations: 101 kB / 0.5268 GB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.236e-05/0.1348, allocations: 12.17 kB / 0.5268 GB, free: 15.78 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002815/0.1351, allocations: 36.02 kB / 0.5269 GB, free: 15.75 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.342e-05/0.1351, allocations: 11.98 kB / 0.5269 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.963e-05/0.1352, allocations: 7.984 kB / 0.5269 GB, free: 15.73 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005271/0.1357, allocations: 244.4 kB / 0.5271 GB, free: 15.49 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1357, allocations: 0 / 0.5271 GB, free: 15.49 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000321/0.136, allocations: 71.86 kB / 0.5272 GB, free: 15.42 MB / 398.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.001456/0.1375, allocations: 1.101 MB / 0.5283 GB, free: 14.28 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008363/0.1383, allocations: 409.9 kB / 0.5287 GB, free: 13.86 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1383, allocations: 0 / 0.5287 GB, free: 13.86 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004639/0.1388, allocations: 290 kB / 0.5289 GB, free: 13.55 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003273/0.1391, allocations: 26.3 kB / 0.529 GB, free: 13.52 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005043/0.1442, allocations: 2.942 MB / 0.5318 GB, free: 10.5 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004521/0.1446, allocations: 0.7672 MB / 0.5326 GB, free: 9.699 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001005/0.1447, allocations: 37.41 kB / 0.5326 GB, free: 9.664 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001074/0.1448, allocations: 63.41 kB / 0.5327 GB, free: 9.602 MB / 398.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1448, allocations: 0 / 0.5327 GB, free: 9.602 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02879/0.1736, allocations: 5.434 MB / 0.538 GB, free: 4.281 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.49/10.67, allocations: 14.23 kB / 0.538 GB, free: 4.27 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 & /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: 13.477455296029802] Failed to read output from testmodel.py, exit status != 0: 10.808032925007865 10.822865726 10.701560234 Calling exit ...