Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.Exploiting_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.001291/0.001291, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.001541/0.001541, allocations: 223.4 kB / 23.05 MB, free: 5.074 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.608/1.608, allocations: 230.6 MB / 256.8 MB, free: 7.953 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 / 336.2 MB, free: 12.59 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.Exploiting_2dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_Exploiting_2dof",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.Exploiting_2dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_Exploiting_2dof",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.002187/0.002187, allocations: 59.91 kB / 472.3 MB, free: 7.996 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3336/0.3358, allocations: 59.29 MB / 0.5191 GB, free: 10.61 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Exploiting_2dof): time 0.002508/0.3383, allocations: 1.324 MB / 0.5204 GB, free: 9.836 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001929/0.3402, allocations: 1.458 MB / 0.5218 GB, free: 8.785 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001211/0.3403, allocations: 7.594 kB / 0.5218 GB, free: 8.781 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003666/0.3407, allocations: 102.7 kB / 0.5219 GB, free: 8.734 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002821/0.341, allocations: 119.5 kB / 0.522 GB, free: 8.68 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004974/0.3415, allocations: 240 kB / 0.5223 GB, free: 8.57 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008041/0.3423, allocations: 0.6235 MB / 0.5229 GB, free: 8.336 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001787/0.3425, allocations: 57.06 kB / 0.5229 GB, free: 8.309 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003846/0.3429, allocations: 240.3 kB / 0.5232 GB, free: 8.223 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004118/0.3433, allocations: 261.6 kB / 0.5234 GB, free: 8.133 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.255e-05/0.3433, allocations: 26.69 kB / 0.5234 GB, free: 8.133 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.741e-05/0.3434, allocations: 27.16 kB / 0.5235 GB, free: 8.133 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001639/0.3436, allocations: 137.5 kB / 0.5236 GB, free: 8.07 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001271/0.3437, allocations: 141.9 kB / 0.5237 GB, free: 7.969 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003373/0.344, allocations: 333.1 kB / 0.524 GB, free: 7.832 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.052e-06/0.344, allocations: 1.219 kB / 0.524 GB, free: 7.832 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.344, allocations: 4 kB / 0.524 GB, free: 7.828 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.913e-06/0.344, allocations: 0 / 0.524 GB, free: 7.828 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.002247/0.3463, allocations: 0.8003 MB / 0.5248 GB, free: 7.371 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/0.3463, allocations: 10.61 kB / 0.5248 GB, free: 7.371 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.212e-05/0.3463, allocations: 8.141 kB / 0.5248 GB, free: 7.367 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.197e-05/0.3464, allocations: 53.83 kB / 0.5249 GB, free: 7.316 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.327e-05/0.3465, allocations: 39.3 kB / 0.5249 GB, free: 7.297 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00114/0.3476, allocations: 438.2 kB / 0.5254 GB, free: 7.066 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.992e-05/0.3476, allocations: 15.23 kB / 0.5254 GB, free: 7.059 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.472e-05/0.3477, allocations: 24.14 kB / 0.5254 GB, free: 7.047 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003727/0.348, allocations: 225.1 kB / 0.5256 GB, free: 6.949 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.546e-05/0.3481, allocations: 1.125 kB / 0.5256 GB, free: 6.949 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.329e-05/0.3481, allocations: 5.844 kB / 0.5256 GB, free: 6.945 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.606e-06/0.3481, allocations: 4.625 kB / 0.5256 GB, free: 6.945 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004357/0.3485, allocations: 227.7 kB / 0.5258 GB, free: 6.883 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001415/0.3499, allocations: 0.7287 MB / 0.5265 GB, free: 6.488 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006849/0.3506, allocations: 316.1 kB / 0.5268 GB, free: 6.379 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002314/0.3509, allocations: 133.7 kB / 0.527 GB, free: 6.328 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.986e-05/0.3509, allocations: 3.281 kB / 0.527 GB, free: 6.328 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.262e-05/0.3509, allocations: 36.19 kB / 0.527 GB, free: 6.285 MB / 382.1 MB Notification: Performance of pre-optimization done (n=26): time 1.753e-06/0.3509, allocations: 0 / 0.527 GB, free: 6.285 MB / 382.1 MB Notification: Performance of matching and sorting (n=26): time 0.001943/0.3528, allocations: 0.6306 MB / 0.5276 GB, free: 6.082 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.577e-05/0.3529, allocations: 59.25 kB / 0.5277 GB, free: 6.016 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001313/0.3542, allocations: 0.5018 MB / 0.5282 GB, free: 5.824 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.575e-05/0.3542, allocations: 31.48 kB / 0.5282 GB, free: 5.789 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.579e-05/0.3543, allocations: 171.3 kB / 0.5284 GB, free: 5.645 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.894e-05/0.3544, allocations: 98.45 kB / 0.5285 GB, free: 5.566 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.648e-05/0.3545, allocations: 56.64 kB / 0.5285 GB, free: 5.527 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.128e-05/0.3546, allocations: 349.6 kB / 0.5289 GB, free: 5.199 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001918/0.3547, allocations: 107 kB / 0.529 GB, free: 5.164 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001808/0.3549, allocations: 122.7 kB / 0.5291 GB, free: 5.121 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002179/0.3571, allocations: 0.712 MB / 0.5298 GB, free: 4.941 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.3571, allocations: 1.156 kB / 0.5298 GB, free: 4.941 MB / 382.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0008983/0.358, allocations: 482.8 kB / 0.5302 GB, free: 4.746 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/0.358, allocations: 9.5 kB / 0.5302 GB, free: 4.742 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.672e-06/0.358, allocations: 1.156 kB / 0.5302 GB, free: 4.742 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003626/0.3584, allocations: 106.6 kB / 0.5303 GB, free: 4.707 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000212/0.3586, allocations: 40.66 kB / 0.5304 GB, free: 4.703 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00216/0.3608, allocations: 2.998 MB / 0.5333 GB, free: 1.973 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005988/0.3614, allocations: 85.02 kB / 0.5334 GB, free: 1.953 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.74e-05/0.3614, allocations: 9.469 kB / 0.5334 GB, free: 1.949 MB / 382.1 MB Warning: Assuming fixed start value for the following 7 variables: Cfb_2.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] Cfb_1.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] Cff_2.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] Process_2.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Process_2.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Process_1.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Process_1.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 (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002456/0.3616, allocations: 181.1 kB / 0.5336 GB, free: 1.805 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.716e-05/0.3617, allocations: 43.7 kB / 0.5336 GB, free: 1.777 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001024/0.3618, allocations: 50.98 kB / 0.5337 GB, free: 1.746 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.3618, allocations: 3.688 kB / 0.5337 GB, free: 1.746 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.047e-05/0.3618, allocations: 5.891 kB / 0.5337 GB, free: 1.742 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.3618, allocations: 5.203 kB / 0.5337 GB, free: 1.738 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004419/0.3623, allocations: 368.3 kB / 0.534 GB, free: 1.504 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.3623, allocations: 0 / 0.534 GB, free: 1.504 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002327/0.3625, allocations: 34.64 kB / 0.5341 GB, free: 1.5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003056/0.3628, allocations: 105.5 kB / 0.5342 GB, free: 1.465 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.576e-05/0.3628, allocations: 9.281 kB / 0.5342 GB, free: 1.461 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002406/0.3652, allocations: 3 MB / 0.5371 GB, free: 14.73 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.3652, allocations: 0 / 0.5371 GB, free: 14.73 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001245/0.3665, allocations: 0.6589 MB / 0.5377 GB, free: 14.4 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001238/0.3666, allocations: 51.42 kB / 0.5378 GB, free: 14.37 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.587e-05/0.3667, allocations: 12.86 kB / 0.5378 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005741/0.3672, allocations: 71.17 kB / 0.5379 GB, free: 14.35 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.966e-05/0.3673, allocations: 21.62 kB / 0.5379 GB, free: 14.35 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.091e-05/0.3674, allocations: 5.875 kB / 0.5379 GB, free: 14.35 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001219/0.3686, allocations: 405.4 kB / 0.5383 GB, free: 14.2 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3686, allocations: 0 / 0.5383 GB, free: 14.2 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005032/0.3691, allocations: 76.33 kB / 0.5384 GB, free: 14.19 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (Process_1.x_scaled[1],Process_1.x_scaled[2],Process_2.x_scaled[1],Process_2.x_scaled[2],Cff_2.x_scaled[1],Cfb_1.x_scaled[1],Cfb_2.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 (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (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.00179/0.3709, allocations: 1.206 MB / 0.5395 GB, free: 13.32 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001088/0.372, allocations: 0.5333 MB / 0.5401 GB, free: 13 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.372, allocations: 0 / 0.5401 GB, free: 13 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006929/0.3727, allocations: 392.1 kB / 0.5404 GB, free: 12.73 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000587/0.3732, allocations: 55.88 kB / 0.5405 GB, free: 12.71 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00869/0.3819, allocations: 4.007 MB / 0.5444 GB, free: 10.62 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005392/0.3825, allocations: 0.8183 MB / 0.5452 GB, free: 9.859 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002261/0.3827, allocations: 77.06 kB / 0.5453 GB, free: 9.824 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000192/0.3829, allocations: 110.1 kB / 0.5454 GB, free: 9.73 MB / 398.1 MB Notification: Performance of SimCode: time 1.022e-06/0.3829, allocations: 0 / 0.5454 GB, free: 9.73 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05125/0.4341, allocations: 8.08 MB / 0.5533 GB, free: 5.797 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.94/12.38, allocations: 10.16 kB / 0.5533 GB, free: 5.793 MB / 398.1 MB " [Timeout remaining time 647] (rm -f AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_Exploiting_2dof_fmu --startTime=0 --stopTime=200 --stepSize=0.4 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Tuning_brushup_Exploiting_2dof.fmu > AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.40017328702379] Failed to read output from testmodel.py, exit status != 0: 12.552689142990857 12.582028743 12.232610769999999 Calling exit ...