Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.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.002199/0.002199, allocations: 100.3 kB / 19.72 MB, free: 1.785 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.002917/0.002917, allocations: 210.4 kB / 23.01 MB, free: 4.625 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.623/1.623, allocations: 230.6 MB / 256.8 MB, free: 7.789 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.109/0.109, allocations: 24.03 MB / 337.2 MB, free: 11.34 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: translateModel(AES.Coursework.Tuning_brushup.IMC_scheme_2dof,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof") translateModel(AES.Coursework.Tuning_brushup.IMC_scheme_2dof,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof") [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.002395/0.002395, allocations: 59.91 kB / 474.3 MB, free: 5.895 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4115/0.4139, allocations: 59.57 MB / 0.5214 GB, free: 10.45 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_2dof): time 0.002261/0.4162, allocations: 1.083 MB / 0.5224 GB, free: 9.773 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001703/0.4179, allocations: 1.327 MB / 0.5237 GB, free: 8.824 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001224/0.418, allocations: 2.625 kB / 0.5237 GB, free: 8.824 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003338/0.4183, allocations: 72.86 kB / 0.5238 GB, free: 8.789 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002383/0.4186, allocations: 84 kB / 0.5239 GB, free: 8.75 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003992/0.419, allocations: 157.9 kB / 0.524 GB, free: 8.68 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005696/0.4195, allocations: 468.1 kB / 0.5245 GB, free: 8.516 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001308/0.4197, allocations: 36.59 kB / 0.5245 GB, free: 8.5 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002182/0.4199, allocations: 180.1 kB / 0.5247 GB, free: 8.438 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002873/0.4202, allocations: 201.5 kB / 0.5249 GB, free: 8.371 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.395e-05/0.4202, allocations: 21.53 kB / 0.5249 GB, free: 8.371 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.491e-05/0.4203, allocations: 27 kB / 0.5249 GB, free: 8.367 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001357/0.4204, allocations: 109.9 kB / 0.525 GB, free: 8.324 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.657e-05/0.4205, allocations: 92.98 kB / 0.5251 GB, free: 8.266 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003065/0.4208, allocations: 278.4 kB / 0.5254 GB, free: 8.156 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.4208, allocations: 0 / 0.5254 GB, free: 8.156 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.4208, allocations: 0 / 0.5254 GB, free: 8.156 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.298e-05/0.4208, allocations: 1.031 kB / 0.5254 GB, free: 8.156 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: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.001849/0.4227, allocations: 0.6876 MB / 0.5261 GB, free: 7.742 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.498e-05/0.4227, allocations: 9.922 kB / 0.5261 GB, free: 7.742 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.673e-05/0.4228, allocations: 31.5 kB / 0.5261 GB, free: 7.727 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009963/0.4238, allocations: 356.5 kB / 0.5264 GB, free: 7.527 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.195e-05/0.4238, allocations: 10.98 kB / 0.5265 GB, free: 7.523 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.571e-05/0.4239, allocations: 13.59 kB / 0.5265 GB, free: 7.52 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003297/0.4242, allocations: 194.2 kB / 0.5266 GB, free: 7.438 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.881e-05/0.4242, allocations: 11.09 kB / 0.5267 GB, free: 7.43 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.048e-05/0.4242, allocations: 9.312 kB / 0.5267 GB, free: 7.422 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.4242, allocations: 4.344 kB / 0.5267 GB, free: 7.422 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003594/0.4246, allocations: 191.8 kB / 0.5269 GB, free: 7.371 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001158/0.4257, allocations: 0.5882 MB / 0.5274 GB, free: 7.047 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000573/0.4263, allocations: 269.7 kB / 0.5277 GB, free: 6.945 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002145/0.4265, allocations: 127.1 kB / 0.5278 GB, free: 6.895 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.583e-05/0.4266, allocations: 3.406 kB / 0.5278 GB, free: 6.895 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.366e-05/0.4266, allocations: 32.39 kB / 0.5278 GB, free: 6.855 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 1.453e-06/0.4266, allocations: 1.188 kB / 0.5278 GB, free: 6.855 MB / 382.1 MB Notification: Performance of matching and sorting (n=23): time 0.001821/0.4284, allocations: 0.6141 MB / 0.5284 GB, free: 6.672 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.607e-05/0.4284, allocations: 54.36 kB / 0.5285 GB, free: 6.609 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009368/0.4294, allocations: 416.8 kB / 0.5289 GB, free: 6.438 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.224e-05/0.4294, allocations: 30.8 kB / 0.5289 GB, free: 6.402 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.95e-05/0.4295, allocations: 150.7 kB / 0.5291 GB, free: 6.273 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.506e-05/0.4295, allocations: 91.92 kB / 0.5292 GB, free: 6.199 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.565e-05/0.4296, allocations: 48.45 kB / 0.5292 GB, free: 6.168 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.3e-05/0.4297, allocations: 339.9 kB / 0.5295 GB, free: 5.844 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001874/0.4299, allocations: 103.4 kB / 0.5296 GB, free: 5.812 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001793/0.43, allocations: 109.5 kB / 0.5297 GB, free: 5.777 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002184/0.4322, allocations: 0.7136 MB / 0.5304 GB, free: 5.59 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.4322, allocations: 3.938 kB / 0.5304 GB, free: 5.586 MB / 382.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008498/0.4331, allocations: 435.2 kB / 0.5308 GB, free: 5.426 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.962e-05/0.4331, allocations: 6.094 kB / 0.5308 GB, free: 5.426 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.4331, allocations: 0.5 kB / 0.5308 GB, free: 5.426 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003506/0.4335, allocations: 102.5 kB / 0.5309 GB, free: 5.391 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001784/0.4336, allocations: 41.16 kB / 0.531 GB, free: 5.387 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001498/0.4351, allocations: 1.699 MB / 0.5326 GB, free: 3.977 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004257/0.4356, allocations: 78.14 kB / 0.5327 GB, free: 3.953 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.188e-05/0.4356, allocations: 9.469 kB / 0.5327 GB, free: 3.949 MB / 382.1 MB Warning: Assuming fixed start value for the following 7 variables: Cff.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] 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 (25): * Single equations (assignments): 24 * 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.0002157/0.4358, allocations: 168.9 kB / 0.5329 GB, free: 3.809 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.976e-05/0.4359, allocations: 29.89 kB / 0.5329 GB, free: 3.793 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.595e-05/0.4359, allocations: 41.7 kB / 0.533 GB, free: 3.762 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.436, allocations: 3.469 kB / 0.533 GB, free: 3.762 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.327e-06/0.436, allocations: 0.9688 kB / 0.533 GB, free: 3.762 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.436, allocations: 2.625 kB / 0.533 GB, free: 3.762 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003173/0.4363, allocations: 264.1 kB / 0.5332 GB, free: 3.578 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.4363, allocations: 0 / 0.5332 GB, free: 3.578 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002/0.4365, allocations: 45.09 kB / 0.5333 GB, free: 3.562 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000272/0.4368, allocations: 90.98 kB / 0.5333 GB, free: 3.539 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.604e-05/0.4368, allocations: 8.891 kB / 0.5334 GB, free: 3.535 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001382/0.4382, allocations: 1.707 MB / 0.535 GB, free: 2.113 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.4382, allocations: 5.25 kB / 0.535 GB, free: 2.109 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009924/0.4392, allocations: 0.6191 MB / 0.5356 GB, free: 1.805 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.351e-05/0.4392, allocations: 32.8 kB / 0.5357 GB, free: 1.789 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.323e-05/0.4393, allocations: 8.359 kB / 0.5357 GB, free: 1.785 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004293/0.4397, allocations: 60.19 kB / 0.5357 GB, free: 1.777 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.498e-05/0.4398, allocations: 19.92 kB / 0.5357 GB, free: 1.773 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.721e-05/0.4398, allocations: 4.844 kB / 0.5358 GB, free: 1.773 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007711/0.4406, allocations: 329 kB / 0.5361 GB, free: 1.648 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4406, allocations: 0 / 0.5361 GB, free: 1.648 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003511/0.4409, allocations: 65.12 kB / 0.5361 GB, free: 1.637 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (P.x_scaled[1],P.x_scaled[2],HF.x_scaled[1],HF.x_scaled[2],M.x_scaled[1],M.x_scaled[2],Cff.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 (18): * Single equations (assignments): 17 * 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.000101/0.441, allocations: 109 kB / 0.5362 GB, free: 1.539 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007113/0.4417, allocations: 410.3 kB / 0.5366 GB, free: 1.332 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.4417, allocations: 0 / 0.5366 GB, free: 1.332 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003628/0.4421, allocations: 273.7 kB / 0.5369 GB, free: 1.164 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004177/0.4425, allocations: 51.58 kB / 0.5369 GB, free: 1.137 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001344/0.4439, allocations: 0.683 MB / 0.5376 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002326/0.4441, allocations: 184.6 kB / 0.5378 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001931/0.4443, allocations: 65.22 kB / 0.5378 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.643e-05/0.4444, allocations: 19.75 kB / 0.5379 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of SimCode: time 9.11e-07/0.4444, allocations: 0 / 0.5379 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of Templates: time 0.008897/0.4533, allocations: 3.911 MB / 0.5417 GB, free: 15.35 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.makefile [Timeout 660] (rm -f AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.sim & ./AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.434483891353011] Failed to read output from testmodel.py, exit status != 0: 0.46465520933270454 0.48853956600000004 0.063138025 Calling exit ...