Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.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.001244/0.001244, allocations: 108.4 kB / 16.45 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.001317/0.001317, 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.342/1.342, allocations: 225.6 MB / 247.8 MB, free: 13.92 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.09509/0.09509, allocations: 22.69 MB / 325.4 MB, free: 3.52 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.IMC_scheme_1dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_IMC_scheme_1dof",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.IMC_scheme_1dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_IMC_scheme_1dof",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001912/0.001912, allocations: 71.88 kB / 457.2 MB, free: 1.766 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1101, allocations: 58.02 MB / 0.5031 GB, free: 7.629 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_1dof): time 0.002326/0.1124, allocations: 1.071 MB / 0.5042 GB, free: 6.559 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001691/0.1141, allocations: 1.264 MB / 0.5054 GB, free: 5.277 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.996e-05/0.1142, allocations: 7.938 kB / 0.5054 GB, free: 5.27 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000357/0.1145, allocations: 55.69 kB / 0.5054 GB, free: 5.215 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002036/0.1147, allocations: 67.61 kB / 0.5055 GB, free: 5.148 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002378/0.115, allocations: 95.84 kB / 0.5056 GB, free: 5.055 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003652/0.1154, allocations: 311.5 kB / 0.5059 GB, free: 4.75 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001302/0.1155, allocations: 25.67 kB / 0.5059 GB, free: 4.723 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001694/0.1156, allocations: 127.6 kB / 0.506 GB, free: 4.598 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000257/0.1159, allocations: 171.5 kB / 0.5062 GB, free: 4.43 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.003e-05/0.1159, allocations: 16 kB / 0.5062 GB, free: 4.414 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.339e-05/0.116, allocations: 20 kB / 0.5062 GB, free: 4.395 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001325/0.1161, allocations: 95.64 kB / 0.5063 GB, free: 4.301 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001074/0.1162, allocations: 95.39 kB / 0.5064 GB, free: 4.207 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002817/0.1165, allocations: 219.1 kB / 0.5066 GB, free: 3.992 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.004e-06/0.1165, allocations: 3.984 kB / 0.5066 GB, free: 3.988 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1165, allocations: 3.938 kB / 0.5066 GB, free: 3.984 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.025e-06/0.1165, allocations: 4 kB / 0.5066 GB, free: 3.98 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.001712/0.1182, allocations: 0.6659 MB / 0.5073 GB, free: 3.266 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.228e-05/0.1183, allocations: 12.03 kB / 0.5073 GB, free: 3.254 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.909e-05/0.1183, allocations: 46.73 kB / 0.5074 GB, free: 3.199 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.663e-05/0.1184, allocations: 32.75 kB / 0.5074 GB, free: 3.168 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008584/0.1192, allocations: 358.8 kB / 0.5077 GB, free: 2.777 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.003e-05/0.1193, allocations: 8.375 kB / 0.5077 GB, free: 2.77 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.808e-05/0.1193, allocations: 12.38 kB / 0.5077 GB, free: 2.758 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003247/0.1196, allocations: 186.9 kB / 0.5079 GB, free: 2.57 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.68e-05/0.1196, allocations: 3.953 kB / 0.5079 GB, free: 2.566 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.894e-05/0.1197, allocations: 4 kB / 0.5079 GB, free: 2.562 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.286e-06/0.1197, allocations: 4 kB / 0.5079 GB, free: 2.559 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003409/0.12, allocations: 167.8 kB / 0.5081 GB, free: 2.395 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001201/0.1212, allocations: 0.6214 MB / 0.5087 GB, free: 1.723 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003747/0.1216, allocations: 206.4 kB / 0.5089 GB, free: 1.512 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001906/0.1218, allocations: 108.8 kB / 0.509 GB, free: 1.402 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.2e-05/0.1218, allocations: 4 kB / 0.509 GB, free: 1.398 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.517e-05/0.1218, allocations: 34.56 kB / 0.509 GB, free: 1.355 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 1.573e-06/0.1218, allocations: 0 / 0.509 GB, free: 1.355 MB / 382.1 MB Notification: Performance of matching and sorting (n=20): time 0.001753/0.1236, allocations: 0.6456 MB / 0.5097 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.009e-05/0.1237, allocations: 55.41 kB / 0.5097 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007379/0.1244, allocations: 340.9 kB / 0.51 GB, free: 280 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.135e-05/0.1244, allocations: 29.7 kB / 0.5101 GB, free: 244 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001277/0.1246, allocations: 136.4 kB / 0.5102 GB, free: 100 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.941e-05/0.1246, allocations: 83.31 kB / 0.5103 GB, free: 16 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.1958/0.3204, allocations: 40.33 kB / 0.5103 GB, free: 16.01 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.238e-05/0.3205, allocations: 338.5 kB / 0.5106 GB, free: 15.7 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00021/0.3207, allocations: 88.11 kB / 0.5107 GB, free: 15.7 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001521/0.3209, allocations: 91.02 kB / 0.5108 GB, free: 15.7 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001874/0.3227, allocations: 0.6139 MB / 0.5114 GB, free: 15.68 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.3227, allocations: 0 / 0.5114 GB, free: 15.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0007049/0.3234, allocations: 405.9 kB / 0.5118 GB, free: 15.64 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/0.3235, allocations: 4.969 kB / 0.5118 GB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.3235, allocations: 0.8438 kB / 0.5118 GB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002948/0.3238, allocations: 93.14 kB / 0.5119 GB, free: 15.63 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001598/0.3239, allocations: 36.94 kB / 0.5119 GB, free: 15.63 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001375/0.3253, allocations: 1.843 MB / 0.5137 GB, free: 14.29 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003149/0.3256, allocations: 57.19 kB / 0.5138 GB, free: 14.29 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.382e-05/0.3256, allocations: 10.28 kB / 0.5138 GB, free: 14.29 MB / 382.1 MB Warning: Assuming fixed start value for the following 6 variables: M.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] M.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] HF.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] HF.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] P.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] P.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 (21): * Single equations (assignments): 20 * 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,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001511/0.3258, allocations: 160.6 kB / 0.5139 GB, free: 14.17 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.816e-05/0.3258, allocations: 31.77 kB / 0.514 GB, free: 14.16 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.415e-05/0.3259, allocations: 42.38 kB / 0.514 GB, free: 14.15 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.696e-06/0.3259, allocations: 2.25 kB / 0.514 GB, free: 14.15 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.3259, allocations: 1.156 kB / 0.514 GB, free: 14.15 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.3259, allocations: 3.891 kB / 0.514 GB, free: 14.15 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002644/0.3262, allocations: 324.2 kB / 0.5143 GB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.3262, allocations: 3.188 kB / 0.5143 GB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001646/0.3263, allocations: 26.41 kB / 0.5144 GB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002278/0.3265, allocations: 97.08 kB / 0.5145 GB, free: 13.95 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.023e-05/0.3266, allocations: 14.09 kB / 0.5145 GB, free: 13.95 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00119/0.3278, allocations: 1.84 MB / 0.5163 GB, free: 12.59 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.3278, allocations: 0 / 0.5163 GB, free: 12.59 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007808/0.3285, allocations: 0.5583 MB / 0.5168 GB, free: 12.43 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.421e-05/0.3286, allocations: 109.8 kB / 0.5169 GB, free: 12.32 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.265e-05/0.3286, allocations: 9.406 kB / 0.5169 GB, free: 12.32 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003349/0.329, allocations: 43.58 kB / 0.517 GB, free: 12.32 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.065e-05/0.329, allocations: 19.31 kB / 0.517 GB, free: 12.32 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.285e-05/0.329, allocations: 4.906 kB / 0.517 GB, free: 12.32 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005627/0.3296, allocations: 266.6 kB / 0.5172 GB, free: 12.24 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3296, allocations: 3.156 kB / 0.5172 GB, free: 12.24 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003007/0.3299, allocations: 56.8 kB / 0.5173 GB, free: 12.24 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (P.x_scaled[1],P.x_scaled[2],HF.x_scaled[1],HF.x_scaled[2],M.x_scaled[1],M.x_scaled[2]) * 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 (15): * Single equations (assignments): 14 * 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,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009987/0.3309, allocations: 1.092 MB / 0.5184 GB, free: 11.55 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005807/0.3315, allocations: 373.3 kB / 0.5187 GB, free: 11.37 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.3315, allocations: 0 / 0.5187 GB, free: 11.37 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003068/0.3318, allocations: 252.6 kB / 0.519 GB, free: 11.22 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003392/0.3321, allocations: 47.33 kB / 0.519 GB, free: 11.2 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004574/0.3367, allocations: 3.132 MB / 0.5221 GB, free: 9.449 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000219/0.3369, allocations: 0.7698 MB / 0.5228 GB, free: 8.746 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001346/0.3371, allocations: 55.69 kB / 0.5229 GB, free: 8.742 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001037/0.3372, allocations: 72.3 kB / 0.5229 GB, free: 8.691 MB / 382.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3372, allocations: 0 / 0.5229 GB, free: 8.691 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03128/0.3684, allocations: 5.75 MB / 0.5286 GB, free: 8.078 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.554/9.922, allocations: 12.56 kB / 0.5286 GB, free: 8.066 MB / 382.1 MB " [Timeout remaining time 650] (rm -f AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_IMC_scheme_1dof_fmu --startTime=0 --stopTime=60 --stepSize=0.12 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Tuning_brushup_IMC_scheme_1dof.fmu > AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.33826218219474] Failed to read output from testmodel.py, exit status != 0: 10.000909758266062 10.011245287 9.892546032 Calling exit ...