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.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.001448/0.001448, allocations: 110.4 kB / 18.94 MB, free: 2.793 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.001765/0.001765, allocations: 221 kB / 22.25 MB, free: 5.215 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.502/1.502, allocations: 230.6 MB / 256 MB, free: 7.992 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.1458/0.1458, allocations: 24.13 MB / 336.6 MB, free: 11.54 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.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: 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.002257/0.002257, allocations: 67.91 kB / 473.3 MB, free: 6.41 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3318/0.3341, allocations: 59.6 MB / 0.5204 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_1dof): time 0.002364/0.3364, allocations: 1.075 MB / 0.5215 GB, free: 9.418 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001754/0.3382, allocations: 1.309 MB / 0.5227 GB, free: 8.465 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.915e-05/0.3383, allocations: 6.188 kB / 0.5228 GB, free: 8.461 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003527/0.3386, allocations: 56.27 kB / 0.5228 GB, free: 8.434 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001856/0.3388, allocations: 65.12 kB / 0.5229 GB, free: 8.402 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003085/0.3391, allocations: 130.2 kB / 0.523 GB, free: 8.34 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005188/0.3397, allocations: 362.1 kB / 0.5233 GB, free: 8.211 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001323/0.3398, allocations: 34.06 kB / 0.5234 GB, free: 8.191 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002004/0.34, allocations: 143.2 kB / 0.5235 GB, free: 8.137 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002605/0.3403, allocations: 169.6 kB / 0.5237 GB, free: 8.078 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.997e-05/0.3403, allocations: 18.56 kB / 0.5237 GB, free: 8.078 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.612e-05/0.3403, allocations: 18.53 kB / 0.5237 GB, free: 8.078 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001183/0.3405, allocations: 93.94 kB / 0.5238 GB, free: 8.043 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.052e-05/0.3405, allocations: 93.84 kB / 0.5239 GB, free: 7.977 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002444/0.3408, allocations: 231.3 kB / 0.5241 GB, free: 7.883 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.3408, allocations: 1.094 kB / 0.5241 GB, free: 7.883 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.3408, allocations: 0 / 0.5241 GB, free: 7.883 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.256e-05/0.3408, allocations: 0 / 0.5241 GB, free: 7.883 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.001634/0.3424, allocations: 0.5937 MB / 0.5247 GB, free: 7.508 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.395e-05/0.3425, allocations: 10.45 kB / 0.5247 GB, free: 7.508 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.545e-05/0.3425, allocations: 45.95 kB / 0.5247 GB, free: 7.461 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.632e-05/0.3426, allocations: 28.59 kB / 0.5248 GB, free: 7.445 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000847/0.3434, allocations: 305.1 kB / 0.5251 GB, free: 7.258 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.079e-05/0.3435, allocations: 9.875 kB / 0.5251 GB, free: 7.254 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.212e-05/0.3435, allocations: 17.06 kB / 0.5251 GB, free: 7.246 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003295/0.3438, allocations: 172.8 kB / 0.5252 GB, free: 7.168 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.551e-05/0.3438, allocations: 1.312 kB / 0.5253 GB, free: 7.168 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.176e-05/0.3439, allocations: 9.016 kB / 0.5253 GB, free: 7.16 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.955e-06/0.3439, allocations: 4.047 kB / 0.5253 GB, free: 7.16 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003409/0.3442, allocations: 170.9 kB / 0.5254 GB, free: 7.113 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001055/0.3453, allocations: 0.5963 MB / 0.526 GB, free: 6.762 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003496/0.3456, allocations: 209.8 kB / 0.5262 GB, free: 6.676 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000178/0.3458, allocations: 114 kB / 0.5263 GB, free: 6.629 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.525e-05/0.3458, allocations: 2.188 kB / 0.5263 GB, free: 6.629 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.995e-05/0.3458, allocations: 33.58 kB / 0.5264 GB, free: 6.59 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 1.333e-06/0.3458, allocations: 0 / 0.5264 GB, free: 6.59 MB / 382.1 MB Notification: Performance of matching and sorting (n=20): time 0.001805/0.3477, allocations: 0.5665 MB / 0.5269 GB, free: 6.418 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.494e-05/0.3477, allocations: 55.66 kB / 0.527 GB, free: 6.355 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007363/0.3484, allocations: 342.9 kB / 0.5273 GB, free: 6.199 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.94e-05/0.3484, allocations: 26.89 kB / 0.5273 GB, free: 6.168 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.902e-05/0.3485, allocations: 141.4 kB / 0.5274 GB, free: 6.043 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.46e-05/0.3486, allocations: 78.39 kB / 0.5275 GB, free: 5.98 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.613e-05/0.3486, allocations: 40.53 kB / 0.5276 GB, free: 5.953 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.298e-05/0.3487, allocations: 338.1 kB / 0.5279 GB, free: 5.629 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001665/0.3489, allocations: 93.83 kB / 0.528 GB, free: 5.598 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001554/0.349, allocations: 91.34 kB / 0.5281 GB, free: 5.57 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002001/0.351, allocations: 0.617 MB / 0.5287 GB, free: 5.414 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.351, allocations: 4 kB / 0.5287 GB, free: 5.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0008983/0.3519, allocations: 393.8 kB / 0.529 GB, free: 5.262 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.908e-05/0.3519, allocations: 9.156 kB / 0.529 GB, free: 5.258 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.352, allocations: 0.6094 kB / 0.529 GB, free: 5.258 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003252/0.3523, allocations: 103.1 kB / 0.5291 GB, free: 5.223 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001711/0.3525, allocations: 31.19 kB / 0.5292 GB, free: 5.223 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001555/0.354, allocations: 1.741 MB / 0.5309 GB, free: 3.766 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003651/0.3544, allocations: 51 kB / 0.5309 GB, free: 3.758 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.062e-05/0.3544, allocations: 9.484 kB / 0.5309 GB, free: 3.754 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.0002079/0.3546, allocations: 169.7 kB / 0.5311 GB, free: 3.605 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.572e-05/0.3547, allocations: 22.52 kB / 0.5311 GB, free: 3.594 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.132e-05/0.3547, allocations: 41.12 kB / 0.5312 GB, free: 3.559 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.3547, allocations: 2.5 kB / 0.5312 GB, free: 3.559 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.165e-06/0.3547, allocations: 5.281 kB / 0.5312 GB, free: 3.555 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.3548, allocations: 1.125 kB / 0.5312 GB, free: 3.555 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003865/0.3551, allocations: 300.6 kB / 0.5315 GB, free: 3.34 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.3551, allocations: 192 / 0.5315 GB, free: 3.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001856/0.3553, allocations: 33.91 kB / 0.5315 GB, free: 3.332 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002833/0.3556, allocations: 90.89 kB / 0.5316 GB, free: 3.309 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.252e-05/0.3556, allocations: 11.06 kB / 0.5316 GB, free: 3.301 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001621/0.3573, allocations: 1.748 MB / 0.5333 GB, free: 1.836 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.3573, allocations: 0.6875 kB / 0.5333 GB, free: 1.836 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008981/0.3582, allocations: 0.5543 MB / 0.5338 GB, free: 1.559 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.102e-05/0.3582, allocations: 27.89 kB / 0.5339 GB, free: 1.543 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.961e-05/0.3582, allocations: 13.06 kB / 0.5339 GB, free: 1.535 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003629/0.3586, allocations: 49.28 kB / 0.5339 GB, free: 1.527 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.248e-05/0.3587, allocations: 17.91 kB / 0.5339 GB, free: 1.523 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.748e-05/0.3587, allocations: 9.172 kB / 0.5339 GB, free: 1.52 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000726/0.3594, allocations: 268.9 kB / 0.5342 GB, free: 1.406 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3594, allocations: 3.938 kB / 0.5342 GB, free: 1.402 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003561/0.3598, allocations: 55.44 kB / 0.5343 GB, free: 1.395 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.001115/0.3609, allocations: 1.102 MB / 0.5353 GB, free: 0.5781 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007463/0.3616, allocations: 365.6 kB / 0.5357 GB, free: 400 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.3616, allocations: 0 / 0.5357 GB, free: 400 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003665/0.362, allocations: 250.1 kB / 0.5359 GB, free: 240 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003894/0.3624, allocations: 34.19 kB / 0.536 GB, free: 228 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006124/0.3685, allocations: 3.134 MB / 0.539 GB, free: 14.43 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005248/0.369, allocations: 0.7768 MB / 0.5398 GB, free: 13.72 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001746/0.3692, allocations: 49.67 kB / 0.5398 GB, free: 13.72 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001414/0.3694, allocations: 76.34 kB / 0.5399 GB, free: 13.66 MB / 398.1 MB Notification: Performance of SimCode: time 9.02e-07/0.3694, allocations: 0 / 0.5399 GB, free: 13.66 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04545/0.4148, allocations: 5.957 MB / 0.5457 GB, free: 11.3 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.88/12.29, allocations: 5.25 kB / 0.5457 GB, free: 11.3 MB / 398.1 MB " [Timeout remaining time 648] (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: 15.074426288018003] Failed to read output from testmodel.py, exit status != 0: 12.412005682941526 12.439112253 12.093244528 Calling exit ...