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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001482/0.001482, allocations: 109.1 kB / 16.46 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001225/0.001225, allocations: 192.5 kB / 19.41 MB, free: 3.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.36/1.36, allocations: 225.6 MB / 247.8 MB, free: 13.93 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.0963/0.0963, allocations: 22.69 MB / 325.4 MB, free: 3.629 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.MSL_loop_base,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_loop_base",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001889/0.001889, allocations: 67.89 kB / 457.2 MB, free: 1.801 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1218/0.1236, allocations: 58.02 MB / 0.5031 GB, free: 7.668 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_base): time 0.002415/0.1261, allocations: 0.9855 MB / 0.5041 GB, free: 6.684 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001622/0.1277, allocations: 1.209 MB / 0.5052 GB, free: 5.457 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.818e-05/0.1277, allocations: 4 kB / 0.5052 GB, free: 5.453 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003074/0.1281, allocations: 39.78 kB / 0.5053 GB, free: 5.414 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001494/0.1282, allocations: 39.77 kB / 0.5053 GB, free: 5.375 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001794/0.1284, allocations: 67.89 kB / 0.5054 GB, free: 5.309 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002548/0.1286, allocations: 207.6 kB / 0.5056 GB, free: 5.105 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001109/0.1288, allocations: 29.36 kB / 0.5056 GB, free: 5.07 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001247/0.1289, allocations: 79.69 kB / 0.5057 GB, free: 4.992 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001898/0.1291, allocations: 107.7 kB / 0.5058 GB, free: 4.887 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.815e-05/0.1291, allocations: 12 kB / 0.5058 GB, free: 4.875 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.297e-05/0.1291, allocations: 12 kB / 0.5058 GB, free: 4.863 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9e-05/0.1292, allocations: 55.81 kB / 0.5059 GB, free: 4.809 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.396e-05/0.1293, allocations: 63.53 kB / 0.5059 GB, free: 4.746 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001868/0.1295, allocations: 127.4 kB / 0.506 GB, free: 4.621 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.241e-06/0.1295, allocations: 8 kB / 0.5061 GB, free: 4.613 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1295, allocations: 0 / 0.5061 GB, free: 4.613 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.533e-06/0.1295, allocations: 0 / 0.5061 GB, free: 4.613 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.001216/0.1307, allocations: 0.5182 MB / 0.5066 GB, free: 4.047 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.976e-05/0.1307, allocations: 8.031 kB / 0.5066 GB, free: 4.039 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.887e-05/0.1308, allocations: 46.73 kB / 0.5066 GB, free: 3.984 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.256e-05/0.1309, allocations: 16.84 kB / 0.5066 GB, free: 3.969 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006349/0.1315, allocations: 288.7 kB / 0.5069 GB, free: 3.648 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.012e-05/0.1315, allocations: 8.375 kB / 0.5069 GB, free: 3.641 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.824e-05/0.1315, allocations: 12.38 kB / 0.5069 GB, free: 3.629 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002407/0.1318, allocations: 115.8 kB / 0.507 GB, free: 3.512 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.272e-05/0.1318, allocations: 4 kB / 0.507 GB, free: 3.508 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.1e-05/0.1318, allocations: 0 / 0.507 GB, free: 3.508 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.458e-06/0.1318, allocations: 7.938 kB / 0.507 GB, free: 3.5 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002333/0.132, allocations: 103.9 kB / 0.5071 GB, free: 3.398 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007679/0.1328, allocations: 460.5 kB / 0.5076 GB, free: 2.898 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004051/0.1332, allocations: 154.4 kB / 0.5077 GB, free: 2.738 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001303/0.1333, allocations: 64.83 kB / 0.5078 GB, free: 2.672 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.6e-05/0.1334, allocations: 0 / 0.5078 GB, free: 2.672 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.788e-05/0.1334, allocations: 30.56 kB / 0.5078 GB, free: 2.633 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.152e-06/0.1334, allocations: 0 / 0.5078 GB, free: 2.633 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.001067/0.1345, allocations: 399.2 kB / 0.5082 GB, free: 2.215 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.755e-05/0.1345, allocations: 55.62 kB / 0.5083 GB, free: 2.148 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004914/0.135, allocations: 242.6 kB / 0.5085 GB, free: 1.902 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.539e-05/0.135, allocations: 29.64 kB / 0.5085 GB, free: 1.867 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.774e-05/0.1351, allocations: 116.1 kB / 0.5086 GB, free: 1.75 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.195e-05/0.1351, allocations: 47.58 kB / 0.5087 GB, free: 1.703 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.115e-05/0.1352, allocations: 29.72 kB / 0.5087 GB, free: 1.668 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.1353, allocations: 330.8 kB / 0.509 GB, free: 1.336 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001097/0.1355, allocations: 47.95 kB / 0.5091 GB, free: 1.289 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000102/0.1356, allocations: 51.97 kB / 0.5091 GB, free: 1.238 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001102/0.1367, allocations: 334.7 kB / 0.5094 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.17e-06/0.1367, allocations: 8 kB / 0.5094 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004713/0.1371, allocations: 226.3 kB / 0.5097 GB, free: 0.6719 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.1371, allocations: 7.984 kB / 0.5097 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.1372, allocations: 0 / 0.5097 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002059/0.1374, allocations: 56.75 kB / 0.5097 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001014/0.1375, allocations: 19.98 kB / 0.5097 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2564/0.3939, allocations: 1.6 MB / 0.5113 GB, free: 14.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002569/0.3941, allocations: 32.02 kB / 0.5113 GB, free: 14.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.261e-05/0.3941, allocations: 2.344 kB / 0.5113 GB, free: 14.66 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.0001634/0.3943, allocations: 146.3 kB / 0.5115 GB, free: 14.54 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.826e-05/0.3944, allocations: 14.97 kB / 0.5115 GB, free: 14.54 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.987e-05/0.3944, allocations: 24.55 kB / 0.5115 GB, free: 14.54 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.3944, allocations: 2.641 kB / 0.5115 GB, free: 14.54 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.3944, allocations: 0.6875 kB / 0.5115 GB, free: 14.54 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.277e-06/0.3944, allocations: 5.828 kB / 0.5115 GB, free: 14.54 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000244/0.3947, allocations: 249.1 kB / 0.5118 GB, free: 14.34 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.3947, allocations: 1.969 kB / 0.5118 GB, free: 14.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001155/0.3948, allocations: 16.53 kB / 0.5118 GB, free: 14.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001761/0.395, allocations: 56.16 kB / 0.5118 GB, free: 14.34 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.439e-05/0.395, allocations: 6.688 kB / 0.5118 GB, free: 14.34 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009848/0.396, allocations: 1.605 MB / 0.5134 GB, free: 13 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.396, allocations: 0.875 kB / 0.5134 GB, free: 13 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000565/0.3965, allocations: 381.1 kB / 0.5138 GB, free: 12.85 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.953e-05/0.3966, allocations: 93.64 kB / 0.5139 GB, free: 12.75 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.352e-05/0.3966, allocations: 6.641 kB / 0.5139 GB, free: 12.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002388/0.3968, allocations: 29.73 kB / 0.5139 GB, free: 12.75 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.651e-05/0.3969, allocations: 14.36 kB / 0.5139 GB, free: 12.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.965e-06/0.3969, allocations: 2.094 kB / 0.5139 GB, free: 12.75 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003817/0.3973, allocations: 193.1 kB / 0.5141 GB, free: 12.67 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3973, allocations: 0.5938 kB / 0.5141 GB, free: 12.67 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002857/0.3976, allocations: 37.62 kB / 0.5141 GB, free: 12.67 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.0007704/0.3983, allocations: 0.9039 MB / 0.515 GB, free: 12 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004758/0.3988, allocations: 258.5 kB / 0.5153 GB, free: 11.89 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.3988, allocations: 0 / 0.5153 GB, free: 11.89 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000251/0.3991, allocations: 193 kB / 0.5154 GB, free: 11.78 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003051/0.3994, allocations: 32.25 kB / 0.5155 GB, free: 11.77 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003019/0.4024, allocations: 2.257 MB / 0.5177 GB, free: 10.53 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001862/0.4026, allocations: 0.734 MB / 0.5184 GB, free: 9.832 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.878e-05/0.4026, allocations: 27.06 kB / 0.5184 GB, free: 9.832 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.931e-05/0.4027, allocations: 40.52 kB / 0.5185 GB, free: 9.824 MB / 382.1 MB Notification: Performance of SimCode: time 5.41e-07/0.4027, allocations: 0 / 0.5185 GB, free: 9.824 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03061/0.4333, allocations: 3.836 MB / 0.5222 GB, free: 9.348 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.577/10.01, allocations: 6.125 kB / 0.5222 GB, free: 9.344 MB / 382.1 MB " [Timeout remaining time 650] (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: 12.543188733048737] Failed to read output from testmodel.py, exit status != 0: 10.08991500781849 10.102586616 9.970602381 Calling exit ...