Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.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.MSL_electrical_thermal_control,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_electrical_thermal_control",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_electrical_thermal_control",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.001063/0.001063, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001039/0.001039, allocations: 189.4 kB / 16.25 MB, free: 6.633 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.248/1.248, allocations: 222.9 MB / 239.9 MB, free: 4.5 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.191/0.191, allocations: 22.35 MB / 312.4 MB, free: 12.61 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001288, allocations: 55.91 kB / 380.4 MB, free: 10.86 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2248/0.2261, allocations: 54.94 MB / 435.3 MB, free: 39.81 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control): time 0.003259/0.2294, allocations: 3.199 MB / 438.5 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001083/0.2305, allocations: 0.8683 MB / 439.4 MB, free: 36.95 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001785/0.2307, allocations: 13.34 kB / 439.4 MB, free: 36.95 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001819/0.2309, allocations: 54.84 kB / 439.5 MB, free: 36.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002138/0.2311, allocations: 80.56 kB / 439.6 MB, free: 36.86 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002983/0.2314, allocations: 174.7 kB / 439.7 MB, free: 36.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003125/0.2317, allocations: 472.1 kB / 440.2 MB, free: 36.51 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002725/0.232, allocations: 212.7 kB / 440.4 MB, free: 36.41 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001139/0.2321, allocations: 167.7 kB / 440.6 MB, free: 36.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001495/0.2323, allocations: 179.5 kB / 440.7 MB, free: 36.22 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.502e-05/0.2323, allocations: 50.19 kB / 440.8 MB, free: 36.21 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.514e-05/0.2324, allocations: 37.44 kB / 440.8 MB, free: 36.21 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.582e-05/0.2324, allocations: 89.2 kB / 440.9 MB, free: 36.15 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000111/0.2325, allocations: 197 kB / 441.1 MB, free: 36.02 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002869/0.2328, allocations: 455.4 kB / 441.5 MB, free: 35.83 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.2328, allocations: 0 / 441.5 MB, free: 35.83 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2328, allocations: 0 / 441.5 MB, free: 35.83 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.044e-05/0.2328, allocations: 0 / 441.5 MB, free: 35.83 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: 87 * Number of variables: 87 Notification: Performance of Generate backend data structure: time 0.0007712/0.2336, allocations: 0.6933 MB / 442.2 MB, free: 35.27 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.303e-05/0.2337, allocations: 10.22 kB / 442.2 MB, free: 35.27 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.94e-05/0.2337, allocations: 73.95 kB / 442.3 MB, free: 35.21 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.793e-05/0.2338, allocations: 45.47 kB / 442.4 MB, free: 35.19 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002751/0.2341, allocations: 320.6 kB / 442.7 MB, free: 34.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.852e-05/0.2341, allocations: 33.03 kB / 442.7 MB, free: 34.89 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.54e-05/0.2341, allocations: 37.02 kB / 442.7 MB, free: 34.88 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004883/0.2346, allocations: 372.6 kB / 443.1 MB, free: 34.69 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.407e-05/0.2347, allocations: 0 / 443.1 MB, free: 34.69 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.87e-05/0.2347, allocations: 15.19 kB / 443.1 MB, free: 34.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.575e-06/0.2347, allocations: 10.53 kB / 443.1 MB, free: 34.68 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003939/0.2351, allocations: 251.3 kB / 443.4 MB, free: 34.59 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001351/0.2365, allocations: 1.305 MB / 444.7 MB, free: 33.68 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005129/0.237, allocations: 295.4 kB / 445 MB, free: 33.56 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000175/0.2372, allocations: 126.3 kB / 445.1 MB, free: 33.5 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.672e-05/0.2372, allocations: 3.109 kB / 445.1 MB, free: 33.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.408e-05/0.2372, allocations: 37.73 kB / 445.1 MB, free: 33.46 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 1.623e-06/0.2372, allocations: 0 / 445.1 MB, free: 33.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.0005437/0.2378, allocations: 328.2 kB / 445.5 MB, free: 33.32 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.849e-05/0.2378, allocations: 87.27 kB / 445.5 MB, free: 33.22 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001872/0.238, allocations: 270.6 kB / 445.8 MB, free: 33.07 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.82e-05/0.238, allocations: 32.14 kB / 445.8 MB, free: 33.04 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.732e-05/0.2381, allocations: 212.3 kB / 446 MB, free: 32.86 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.403e-05/0.2382, allocations: 92.53 kB / 446.1 MB, free: 32.79 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.951e-05/0.2383, allocations: 60.48 kB / 446.2 MB, free: 32.75 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.288e-05/0.2383, allocations: 341.3 kB / 446.5 MB, free: 32.42 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001564/0.2385, allocations: 91.17 kB / 446.6 MB, free: 32.38 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001658/0.2386, allocations: 146 kB / 446.8 MB, free: 32.29 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003135/0.239, allocations: 239.2 kB / 447 MB, free: 32.14 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.239, allocations: 3.938 kB / 447 MB, free: 32.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0004038/0.2394, allocations: 304.5 kB / 447.3 MB, free: 32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.196e-05/0.2394, allocations: 6.062 kB / 447.3 MB, free: 32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.68e-06/0.2394, allocations: 6.719 kB / 447.3 MB, free: 32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.432e-05/0.2394, allocations: 7.219 kB / 447.3 MB, free: 31.99 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002484/0.2397, allocations: 71.66 kB / 447.4 MB, free: 31.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.313e-06/0.2397, allocations: 6.547 kB / 447.4 MB, free: 31.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001595/0.2399, allocations: 42.08 kB / 447.4 MB, free: 31.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.615e-05/0.2399, allocations: 6.719 kB / 447.4 MB, free: 31.96 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001751/0.2401, allocations: 192.7 kB / 447.6 MB, free: 31.82 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001278/0.2402, allocations: 137.5 kB / 447.8 MB, free: 31.72 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002362/0.2404, allocations: 211.4 kB / 448 MB, free: 31.59 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.273e-06/0.2405, allocations: 0 / 448 MB, free: 31.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization_lambda0): time 0.0003241/0.2408, allocations: 287.6 kB / 448.2 MB, free: 31.45 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.66e-06/0.2408, allocations: 5.25 kB / 448.3 MB, free: 31.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.964e-06/0.2408, allocations: 0 / 448.3 MB, free: 31.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.406e-06/0.2408, allocations: 6.719 kB / 448.3 MB, free: 31.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002166/0.241, allocations: 63.12 kB / 448.3 MB, free: 31.44 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.346e-06/0.241, allocations: 2.656 kB / 448.3 MB, free: 31.44 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001428/0.2412, allocations: 29.81 kB / 448.4 MB, free: 31.42 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.413e-05/0.2412, allocations: 16.09 kB / 448.4 MB, free: 31.41 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.037e-05/0.2413, allocations: 204.4 kB / 448.6 MB, free: 31.21 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.734e-05/0.2413, allocations: 28 kB / 448.6 MB, free: 31.2 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004205/0.2418, allocations: 275.2 kB / 448.9 MB, free: 31.07 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.2418, allocations: 2.75 kB / 448.9 MB, free: 31.07 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.778e-06/0.2418, allocations: 0 / 448.9 MB, free: 31.07 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.2418, allocations: 6.312 kB / 448.9 MB, free: 31.07 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003162/0.2421, allocations: 401.6 kB / 449.3 MB, free: 30.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.2421, allocations: 3.375 kB / 449.3 MB, free: 30.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002531/0.2424, allocations: 55.11 kB / 449.3 MB, free: 30.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.2424, allocations: 2.688 kB / 449.3 MB, free: 30.77 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.869e-05/0.2424, allocations: 6.688 kB / 449.3 MB, free: 30.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.634e-06/0.2424, allocations: 3.938 kB / 449.3 MB, free: 30.76 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.2424, allocations: 4 kB / 449.3 MB, free: 30.76 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005419/0.243, allocations: 475.2 kB / 449.8 MB, free: 30.48 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.489e-05/0.2431, allocations: 126.7 kB / 449.9 MB, free: 30.36 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.77e-05/0.2431, allocations: 10.8 kB / 449.9 MB, free: 30.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001812/0.2433, allocations: 11.73 kB / 450 MB, free: 30.36 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.249e-05/0.2433, allocations: 15.64 kB / 450 MB, free: 30.35 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.405e-05/0.2434, allocations: 8.953 kB / 450 MB, free: 30.35 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001146/0.2435, allocations: 198 kB / 450.2 MB, free: 30.23 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2435, allocations: 0 / 450.2 MB, free: 30.23 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004039/0.2439, allocations: 147.6 kB / 450.3 MB, free: 30.19 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (Cbody.T,PID.I.y,Ccont.T) * 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 (28): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000665/0.2446, allocations: 1.013 MB / 451.3 MB, free: 29.38 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005355/0.2451, allocations: 358.8 kB / 451.7 MB, free: 29.25 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.2451, allocations: 0 / 451.7 MB, free: 29.25 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001572/0.2453, allocations: 124.4 kB / 451.8 MB, free: 29.21 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004837/0.2458, allocations: 60.2 kB / 451.9 MB, free: 29.19 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00288/0.2487, allocations: 3.189 MB / 455 MB, free: 26.98 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001818/0.2489, allocations: 0.7893 MB / 455.8 MB, free: 26.29 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001786/0.2491, allocations: 38.28 kB / 455.9 MB, free: 26.27 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001323/0.2492, allocations: 116.1 kB / 456 MB, free: 26.18 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2492, allocations: 0 / 456 MB, free: 26.18 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01674/0.2659, allocations: 6.186 MB / 462.2 MB, free: 25.65 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001446/0.2661, allocations: 194.9 kB / 462.4 MB, free: 25.4 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.686/1.953, allocations: 0 / 462.4 MB, free: 25.4 MB / 350.1 MB (rm -f AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_MSL_electrical_thermal_control_fmu --startTime=0 --stopTime=2000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Tuning_brushup_MSL_electrical_thermal_control.fmu > AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.pipe 2>&1)