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.001194/0.001194, allocations: 111.3 kB / 15.34 MB, free: 0.5078 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.001167/0.001167, allocations: 189.6 kB / 16.25 MB, free: 6.152 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.187/1.187, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1685/0.1685, allocations: 22.36 MB / 312.4 MB, free: 12.6 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001235/0.001235, allocations: 59.91 kB / 380.4 MB, free: 10.87 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2077/0.209, allocations: 54.94 MB / 435.3 MB, free: 39.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Exploiting_2dof): time 0.001848/0.2109, allocations: 1.348 MB / 436.7 MB, free: 38.74 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001127/0.212, allocations: 1.404 MB / 438.1 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.784e-05/0.2121, allocations: 0 / 438.1 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002915/0.2124, allocations: 81.52 kB / 438.2 MB, free: 37.7 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002063/0.2126, allocations: 105.7 kB / 438.3 MB, free: 37.65 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002355/0.2129, allocations: 189.2 kB / 438.5 MB, free: 37.55 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003283/0.2132, allocations: 0.5135 MB / 439 MB, free: 37.36 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001188/0.2134, allocations: 71.55 kB / 439 MB, free: 37.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001569/0.2135, allocations: 218.3 kB / 439.3 MB, free: 37.25 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002087/0.2137, allocations: 250.1 kB / 439.5 MB, free: 37.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.357e-05/0.2138, allocations: 25.81 kB / 439.5 MB, free: 37.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.778e-05/0.2138, allocations: 29.09 kB / 439.6 MB, free: 37.16 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001016/0.2139, allocations: 129.5 kB / 439.7 MB, free: 37.11 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.944e-05/0.214, allocations: 143.1 kB / 439.8 MB, free: 37 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001902/0.2142, allocations: 327.3 kB / 440.1 MB, free: 36.87 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.2142, allocations: 0 / 440.1 MB, free: 36.87 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.2142, allocations: 0 / 440.1 MB, free: 36.87 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.402e-06/0.2142, allocations: 0 / 440.1 MB, free: 36.87 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.001852/0.2161, allocations: 0.8739 MB / 441 MB, free: 36.33 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.122e-05/0.2161, allocations: 12 kB / 441 MB, free: 36.32 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.065e-05/0.2162, allocations: 51.66 kB / 441.1 MB, free: 36.27 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.828e-05/0.2163, allocations: 37.66 kB / 441.1 MB, free: 36.25 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009494/0.2172, allocations: 490 kB / 441.6 MB, free: 35.96 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.291e-05/0.2172, allocations: 10.36 kB / 441.6 MB, free: 35.96 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.681e-05/0.2173, allocations: 20.31 kB / 441.6 MB, free: 35.95 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003007/0.2176, allocations: 215.3 kB / 441.8 MB, free: 35.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.252e-05/0.2176, allocations: 0 / 441.8 MB, free: 35.86 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.867e-05/0.2176, allocations: 10.84 kB / 441.8 MB, free: 35.86 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.2176, allocations: 2.969 kB / 441.8 MB, free: 35.86 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003373/0.218, allocations: 232.5 kB / 442.1 MB, free: 35.79 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001004/0.219, allocations: 0.7615 MB / 442.8 MB, free: 35.36 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005307/0.2195, allocations: 328.7 kB / 443.2 MB, free: 35.25 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000171/0.2197, allocations: 135.8 kB / 443.3 MB, free: 35.2 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.01e-05/0.2197, allocations: 2.75 kB / 443.3 MB, free: 35.2 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.164e-05/0.2198, allocations: 40.81 kB / 443.3 MB, free: 35.15 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 1.252e-06/0.2198, allocations: 0 / 443.3 MB, free: 35.15 MB / 350.1 MB Notification: Performance of matching and sorting (n=26): time 0.001508/0.2213, allocations: 0.7934 MB / 444.1 MB, free: 34.75 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.26e-05/0.2213, allocations: 58.19 kB / 444.2 MB, free: 34.68 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000949/0.2223, allocations: 0.5035 MB / 444.7 MB, free: 34.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.92e-05/0.2223, allocations: 33.7 kB / 444.7 MB, free: 34.46 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.245e-05/0.2224, allocations: 172 kB / 444.9 MB, free: 34.31 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.935e-05/0.2224, allocations: 100 kB / 445 MB, free: 34.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.645e-05/0.2225, allocations: 45.72 kB / 445 MB, free: 34.2 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.187e-05/0.2226, allocations: 351.4 kB / 445.4 MB, free: 33.88 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001528/0.2227, allocations: 108.9 kB / 445.5 MB, free: 33.84 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001433/0.2229, allocations: 113.8 kB / 445.6 MB, free: 33.8 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001857/0.2247, allocations: 0.723 MB / 446.3 MB, free: 33.61 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.2248, allocations: 0 / 446.3 MB, free: 33.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006834/0.2254, allocations: 484.8 kB / 446.8 MB, free: 33.41 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.223e-05/0.2255, allocations: 5.312 kB / 446.8 MB, free: 33.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.2255, allocations: 4 kB / 446.8 MB, free: 33.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000289/0.2258, allocations: 103.3 kB / 446.9 MB, free: 33.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001614/0.2259, allocations: 43.5 kB / 446.9 MB, free: 33.37 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001689/0.2276, allocations: 3.196 MB / 450.1 MB, free: 30.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004519/0.2281, allocations: 77.2 kB / 450.2 MB, free: 30.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.782e-05/0.2281, allocations: 9.469 kB / 450.2 MB, free: 30.37 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.0001606/0.2283, allocations: 190 kB / 450.4 MB, free: 30.22 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.328e-05/0.2283, allocations: 34.06 kB / 450.4 MB, free: 30.2 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.374e-05/0.2284, allocations: 57.44 kB / 450.5 MB, free: 30.16 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.2284, allocations: 2.781 kB / 450.5 MB, free: 30.16 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.2285, allocations: 4 kB / 450.5 MB, free: 30.16 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.2285, allocations: 4 kB / 450.5 MB, free: 30.16 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003015/0.2288, allocations: 399.4 kB / 450.9 MB, free: 29.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.2288, allocations: 2.969 kB / 450.9 MB, free: 29.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001945/0.229, allocations: 37.55 kB / 450.9 MB, free: 29.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002616/0.2292, allocations: 109 kB / 451 MB, free: 29.84 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.411e-05/0.2293, allocations: 10.88 kB / 451.1 MB, free: 29.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001587/0.2309, allocations: 3.193 MB / 454.2 MB, free: 26.85 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.2309, allocations: 0 / 454.2 MB, free: 26.85 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008228/0.2317, allocations: 0.6764 MB / 454.9 MB, free: 26.51 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.73e-05/0.2318, allocations: 119.1 kB / 455 MB, free: 26.39 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.274e-05/0.2318, allocations: 6.625 kB / 455 MB, free: 26.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004731/0.2323, allocations: 73.06 kB / 455.1 MB, free: 26.38 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.89e-05/0.2324, allocations: 24.31 kB / 455.1 MB, free: 26.37 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.552e-05/0.2324, allocations: 10.91 kB / 455.2 MB, free: 26.37 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0008249/0.2332, allocations: 404.7 kB / 455.5 MB, free: 26.22 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2332, allocations: 0 / 455.5 MB, free: 26.22 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003059/0.2336, allocations: 76.22 kB / 455.6 MB, free: 26.21 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.0009815/0.2345, allocations: 1.203 MB / 456.8 MB, free: 25.35 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006736/0.2352, allocations: 0.5654 MB / 457.4 MB, free: 25.02 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.2352, allocations: 0 / 457.4 MB, free: 25.02 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004027/0.2356, allocations: 395.9 kB / 457.8 MB, free: 24.74 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000397/0.2361, allocations: 58.08 kB / 457.8 MB, free: 24.72 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005846/0.2419, allocations: 4.108 MB / 461.9 MB, free: 22.53 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002066/0.2421, allocations: 0.8248 MB / 462.8 MB, free: 21.82 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001527/0.2423, allocations: 67.55 kB / 462.8 MB, free: 21.81 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001285/0.2424, allocations: 123.9 kB / 463 MB, free: 21.71 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2424, allocations: 0 / 463 MB, free: 21.71 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02199/0.2644, allocations: 7.461 MB / 470.4 MB, free: 21.12 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001317/0.2646, allocations: 214.2 kB / 470.6 MB, free: 20.86 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.722/1.986, allocations: 1.375 kB / 470.6 MB, free: 20.86 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)