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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) 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.Exploiting_2dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_Exploiting_2dof",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.Exploiting_2dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_Exploiting_2dof",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008453/0.0008454, allocations: 91.84 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.006448/0.006448, allocations: 169.6 kB / 16.26 MB, free: 6.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.422/1.422, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2153/0.2153, allocations: 22.34 MB / 313.8 MB, free: 13.09 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004914/0.0004914, allocations: 8 kB / 382.7 MB, free: 10.07 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4022/0.4028, allocations: 55.99 MB / 438.7 MB, free: 39.21 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Exploiting_2dof): time 0.001177/0.404, allocations: 0.9882 MB / 439.7 MB, free: 38.51 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001284/0.4053, allocations: 1.387 MB / 441.1 MB, free: 37.51 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.996e-05/0.4054, allocations: 3.188 kB / 441.1 MB, free: 37.51 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003474/0.4058, allocations: 87.09 kB / 441.1 MB, free: 37.47 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002282/0.406, allocations: 111.6 kB / 441.3 MB, free: 37.42 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002758/0.4063, allocations: 188.3 kB / 441.4 MB, free: 37.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003841/0.4067, allocations: 498.1 kB / 441.9 MB, free: 37.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001432/0.4068, allocations: 63.08 kB / 442 MB, free: 37.13 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001709/0.407, allocations: 181.1 kB / 442.2 MB, free: 37.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002489/0.4073, allocations: 230.6 kB / 442.4 MB, free: 36.99 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.526e-05/0.4073, allocations: 14.12 kB / 442.4 MB, free: 36.99 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.365e-05/0.4074, allocations: 10.44 kB / 442.4 MB, free: 36.99 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001125/0.4075, allocations: 109 kB / 442.5 MB, free: 36.96 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.983e-05/0.4076, allocations: 155.2 kB / 442.7 MB, free: 36.84 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002454/0.4078, allocations: 304.8 kB / 443 MB, free: 36.73 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.4078, allocations: 2.531 kB / 443 MB, free: 36.73 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.4079, allocations: 0 / 443 MB, free: 36.73 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.101e-06/0.4079, allocations: 0 / 443 MB, free: 36.73 MB / 350.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.002157/0.41, allocations: 0.8282 MB / 443.8 MB, free: 36.22 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.875e-05/0.4101, allocations: 16.84 kB / 443.8 MB, free: 36.21 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.125e-05/0.4102, allocations: 55.58 kB / 443.9 MB, free: 36.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.648e-05/0.4102, allocations: 38.41 kB / 443.9 MB, free: 36.14 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0011/0.4113, allocations: 497.9 kB / 444.4 MB, free: 35.84 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.913e-05/0.4114, allocations: 10.73 kB / 444.4 MB, free: 35.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.234e-05/0.4114, allocations: 19.81 kB / 444.4 MB, free: 35.83 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003436/0.4118, allocations: 218.6 kB / 444.6 MB, free: 35.74 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.305e-05/0.4118, allocations: 2.969 kB / 444.6 MB, free: 35.74 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.243e-05/0.4118, allocations: 8 kB / 444.7 MB, free: 35.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.563e-06/0.4118, allocations: 5.75 kB / 444.7 MB, free: 35.73 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003529/0.4122, allocations: 232.5 kB / 444.9 MB, free: 35.66 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001076/0.4133, allocations: 0.7604 MB / 445.6 MB, free: 35.24 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005932/0.4139, allocations: 324.1 kB / 446 MB, free: 35.13 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001876/0.4141, allocations: 136.8 kB / 446.1 MB, free: 35.08 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.763e-05/0.4141, allocations: 6.594 kB / 446.1 MB, free: 35.07 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.608e-05/0.4141, allocations: 41.22 kB / 446.1 MB, free: 35.03 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 1.433e-06/0.4141, allocations: 0 / 446.1 MB, free: 35.03 MB / 350.1 MB Notification: Performance of matching and sorting (n=26): time 0.001701/0.4158, allocations: 0.7909 MB / 446.9 MB, free: 34.63 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.153e-05/0.4159, allocations: 58.19 kB / 447 MB, free: 34.57 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001055/0.4169, allocations: 0.5121 MB / 447.5 MB, free: 34.38 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.103e-05/0.417, allocations: 29.7 kB / 447.5 MB, free: 34.34 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.956e-05/0.4171, allocations: 175.2 kB / 447.7 MB, free: 34.19 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.467e-05/0.4171, allocations: 102.4 kB / 447.8 MB, free: 34.11 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.037e-05/0.4172, allocations: 29.3 kB / 447.8 MB, free: 34.09 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.099e-05/0.4173, allocations: 348.2 kB / 448.2 MB, free: 33.76 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000171/0.4174, allocations: 109.7 kB / 448.3 MB, free: 33.73 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000163/0.4176, allocations: 115.8 kB / 448.4 MB, free: 33.69 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002091/0.4197, allocations: 0.732 MB / 449.1 MB, free: 33.49 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.4197, allocations: 0 / 449.1 MB, free: 33.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007806/0.4205, allocations: 472 kB / 449.6 MB, free: 33.31 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.703e-05/0.4205, allocations: 5.094 kB / 449.6 MB, free: 33.31 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.4206, allocations: 0 / 449.6 MB, free: 33.31 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003337/0.4209, allocations: 112.3 kB / 449.7 MB, free: 33.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001823/0.4211, allocations: 38.86 kB / 449.7 MB, free: 33.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002066/0.4232, allocations: 2.998 MB / 452.7 MB, free: 30.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004877/0.4237, allocations: 81.11 kB / 452.8 MB, free: 30.47 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.52e-05/0.4237, allocations: 9.312 kB / 452.8 MB, free: 30.46 MB / 350.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.0002051/0.4239, allocations: 177.3 kB / 453 MB, free: 30.32 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.07e-05/0.424, allocations: 46.66 kB / 453 MB, free: 30.29 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001137/0.4241, allocations: 54.11 kB / 453.1 MB, free: 30.25 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.935e-06/0.4241, allocations: 2.625 kB / 453.1 MB, free: 30.25 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.723e-06/0.4241, allocations: 0 / 453.1 MB, free: 30.25 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.4241, allocations: 2.625 kB / 453.1 MB, free: 30.25 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003504/0.4245, allocations: 393.2 kB / 453.5 MB, free: 29.99 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.4245, allocations: 0 / 453.5 MB, free: 29.99 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002067/0.4247, allocations: 37.94 kB / 453.5 MB, free: 29.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002817/0.425, allocations: 110.8 kB / 453.6 MB, free: 29.94 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.643e-05/0.425, allocations: 7 kB / 453.6 MB, free: 29.94 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001814/0.4269, allocations: 2.998 MB / 456.6 MB, free: 27.15 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.4269, allocations: 6.781 kB / 456.6 MB, free: 27.14 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009303/0.4278, allocations: 0.6554 MB / 457.3 MB, free: 26.82 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7e-05/0.4279, allocations: 122.6 kB / 457.4 MB, free: 26.7 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.223e-05/0.4279, allocations: 7.656 kB / 457.4 MB, free: 26.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005096/0.4285, allocations: 75.25 kB / 457.5 MB, free: 26.69 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.792e-05/0.4285, allocations: 22.72 kB / 457.5 MB, free: 26.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.48e-05/0.4286, allocations: 5.75 kB / 457.5 MB, free: 26.68 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009432/0.4295, allocations: 422.2 kB / 457.9 MB, free: 26.53 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4295, allocations: 0 / 457.9 MB, free: 26.53 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003576/0.4299, allocations: 80.5 kB / 458 MB, free: 26.51 MB / 350.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.001167/0.4311, allocations: 1.202 MB / 459.2 MB, free: 25.65 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007399/0.4318, allocations: 0.5398 MB / 459.8 MB, free: 25.33 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.4318, allocations: 3.031 kB / 459.8 MB, free: 25.33 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004471/0.4323, allocations: 397.4 kB / 460.1 MB, free: 25.05 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004495/0.4327, allocations: 56.11 kB / 460.2 MB, free: 25.03 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006903/0.4396, allocations: 4.143 MB / 464.3 MB, free: 22.84 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002953/0.44, allocations: 0.8217 MB / 465.2 MB, free: 22.13 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001862/0.4402, allocations: 69.91 kB / 465.2 MB, free: 22.12 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001444/0.4403, allocations: 107.5 kB / 465.3 MB, free: 22.04 MB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.4403, allocations: 0 / 465.3 MB, free: 22.04 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02059/0.4609, allocations: 7.115 MB / 472.5 MB, free: 21.55 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002279/0.4612, allocations: 197.2 kB / 472.6 MB, free: 21.3 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.931/2.392, allocations: 0 / 472.6 MB, free: 21.3 MB / 350.1 MB (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 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Tuning_brushup_Exploiting_2dof.fmu > AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe 2>&1)