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.001163/0.001166, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001094/0.001094, allocations: 195 kB / 16.14 MB, free: 6.645 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.174/1.174, allocations: 222.9 MB / 239.8 MB, free: 4.582 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1748/0.1748, allocations: 22.36 MB / 312.3 MB, free: 12.7 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001153/0.001153, allocations: 75.88 kB / 380.2 MB, free: 11.03 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2031/0.2043, allocations: 54.94 MB / 435.2 MB, free: 39.52 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control): time 0.003194/0.2075, allocations: 3.192 MB / 438.4 MB, free: 37.28 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00119/0.2088, allocations: 0.8756 MB / 439.2 MB, free: 36.66 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002475/0.209, allocations: 8.625 kB / 439.2 MB, free: 36.66 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002059/0.2092, allocations: 51.08 kB / 439.3 MB, free: 36.63 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002493/0.2095, allocations: 87.25 kB / 439.4 MB, free: 36.57 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003288/0.2098, allocations: 172.5 kB / 439.5 MB, free: 36.46 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003187/0.2102, allocations: 442.6 kB / 440 MB, free: 36.24 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002411/0.2104, allocations: 197.5 kB / 440.2 MB, free: 36.14 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000128/0.2106, allocations: 150.2 kB / 440.3 MB, free: 36.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001348/0.2107, allocations: 171.4 kB / 440.5 MB, free: 35.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.981e-05/0.2107, allocations: 24.16 kB / 440.5 MB, free: 35.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.564e-05/0.2108, allocations: 22 kB / 440.5 MB, free: 35.98 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.43e-05/0.2108, allocations: 75.73 kB / 440.6 MB, free: 35.93 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001061/0.2109, allocations: 188.8 kB / 440.8 MB, free: 35.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002297/0.2112, allocations: 428.2 kB / 441.2 MB, free: 35.64 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.317e-06/0.2112, allocations: 0 / 441.2 MB, free: 35.64 MB / 350.1 MB Notification: Performance of FrontEnd: time 6.21e-07/0.2112, allocations: 4 kB / 441.2 MB, free: 35.63 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.37e-06/0.2112, allocations: 0 / 441.2 MB, free: 35.63 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.0007303/0.2119, allocations: 0.6955 MB / 441.9 MB, free: 35.08 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.954e-05/0.212, allocations: 19.47 kB / 441.9 MB, free: 35.07 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.28e-05/0.212, allocations: 74.48 kB / 442 MB, free: 35 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.849e-05/0.2121, allocations: 46.91 kB / 442 MB, free: 34.98 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002486/0.2124, allocations: 322.8 kB / 442.4 MB, free: 34.7 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.854e-05/0.2124, allocations: 27.94 kB / 442.4 MB, free: 34.68 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.007e-05/0.2124, allocations: 34.81 kB / 442.4 MB, free: 34.67 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004643/0.2129, allocations: 374.2 kB / 442.8 MB, free: 34.48 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.213e-05/0.2129, allocations: 2.844 kB / 442.8 MB, free: 34.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.668e-05/0.2129, allocations: 14.91 kB / 442.8 MB, free: 34.47 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.795e-06/0.213, allocations: 8.625 kB / 442.8 MB, free: 34.47 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003995/0.2134, allocations: 253.2 kB / 443.1 MB, free: 34.38 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001296/0.2147, allocations: 1.299 MB / 444.4 MB, free: 33.48 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005002/0.2152, allocations: 290.7 kB / 444.6 MB, free: 33.36 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001753/0.2154, allocations: 126.2 kB / 444.8 MB, free: 33.3 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.507e-05/0.2154, allocations: 7.25 kB / 444.8 MB, free: 33.3 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.444e-05/0.2154, allocations: 41.59 kB / 444.8 MB, free: 33.25 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 1.743e-06/0.2154, allocations: 4 kB / 444.8 MB, free: 33.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.0005447/0.216, allocations: 320.8 kB / 445.1 MB, free: 33.12 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.514e-05/0.216, allocations: 79.7 kB / 445.2 MB, free: 33.02 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001662/0.2162, allocations: 273.3 kB / 445.5 MB, free: 32.87 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.631e-05/0.2162, allocations: 32.55 kB / 445.5 MB, free: 32.83 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.145e-05/0.2163, allocations: 207.9 kB / 445.7 MB, free: 32.66 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.065e-05/0.2163, allocations: 96.36 kB / 445.8 MB, free: 32.59 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.633e-05/0.2164, allocations: 64.91 kB / 445.9 MB, free: 32.54 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.287e-05/0.2164, allocations: 336.6 kB / 446.2 MB, free: 32.22 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001567/0.2166, allocations: 96.12 kB / 446.3 MB, free: 32.18 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001648/0.2168, allocations: 145.3 kB / 446.4 MB, free: 32.08 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003081/0.2171, allocations: 240.3 kB / 446.7 MB, free: 31.94 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.2171, allocations: 3.938 kB / 446.7 MB, free: 31.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0004017/0.2175, allocations: 302 kB / 447 MB, free: 31.8 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.009e-05/0.2175, allocations: 2.844 kB / 447 MB, free: 31.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/0.2175, allocations: 3 kB / 447 MB, free: 31.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.146e-05/0.2176, allocations: 10.45 kB / 447 MB, free: 31.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000245/0.2178, allocations: 65.42 kB / 447 MB, free: 31.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.442e-06/0.2178, allocations: 2.938 kB / 447 MB, free: 31.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001556/0.218, allocations: 33.91 kB / 447.1 MB, free: 31.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.731e-05/0.218, allocations: 16.05 kB / 447.1 MB, free: 31.77 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001768/0.2182, allocations: 184.2 kB / 447.3 MB, free: 31.64 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001315/0.2183, allocations: 142.9 kB / 447.4 MB, free: 31.53 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002375/0.2186, allocations: 230.6 kB / 447.6 MB, free: 31.38 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.102e-06/0.2186, allocations: 0 / 447.6 MB, free: 31.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization_lambda0): time 0.0003326/0.2189, allocations: 278.4 kB / 447.9 MB, free: 31.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.192e-06/0.2189, allocations: 6.531 kB / 447.9 MB, free: 31.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.204e-06/0.2189, allocations: 2.125 kB / 447.9 MB, free: 31.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.655e-06/0.2189, allocations: 2.844 kB / 447.9 MB, free: 31.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002149/0.2192, allocations: 65.58 kB / 448 MB, free: 31.24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.358e-06/0.2192, allocations: 7.438 kB / 448 MB, free: 31.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001416/0.2193, allocations: 33.16 kB / 448 MB, free: 31.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.314e-05/0.2193, allocations: 8.062 kB / 448 MB, free: 31.21 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 6.247e-05/0.2194, allocations: 200 kB / 448.2 MB, free: 31.02 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.526e-05/0.2194, allocations: 32.25 kB / 448.3 MB, free: 31 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004209/0.2199, allocations: 277.8 kB / 448.5 MB, free: 30.87 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.2199, allocations: 2.812 kB / 448.5 MB, free: 30.87 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.2199, allocations: 0 / 448.5 MB, free: 30.87 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.2199, allocations: 0 / 448.5 MB, free: 30.87 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002894/0.2202, allocations: 403.7 kB / 448.9 MB, free: 30.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.2202, allocations: 3.375 kB / 448.9 MB, free: 30.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002463/0.2205, allocations: 57.5 kB / 449 MB, free: 30.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.2205, allocations: 0 / 449 MB, free: 30.57 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.605e-05/0.2205, allocations: 6.625 kB / 449 MB, free: 30.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-06/0.2205, allocations: 7.312 kB / 449 MB, free: 30.56 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.2205, allocations: 0 / 449 MB, free: 30.56 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005337/0.221, allocations: 471.3 kB / 449.5 MB, free: 30.29 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.929e-05/0.2211, allocations: 128.5 kB / 449.6 MB, free: 30.17 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.452e-05/0.2212, allocations: 4 kB / 449.6 MB, free: 30.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001748/0.2213, allocations: 21.19 kB / 449.6 MB, free: 30.16 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.665e-05/0.2214, allocations: 19.78 kB / 449.6 MB, free: 30.15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.227e-05/0.2214, allocations: 2.688 kB / 449.6 MB, free: 30.15 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001117/0.2215, allocations: 193.5 kB / 449.8 MB, free: 30.04 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2215, allocations: 0 / 449.8 MB, free: 30.04 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003834/0.2219, allocations: 146.3 kB / 450 MB, free: 30 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.000648/0.2226, allocations: 1.006 MB / 451 MB, free: 29.19 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004976/0.2231, allocations: 348.1 kB / 451.3 MB, free: 29.07 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.093e-06/0.2231, allocations: 3.375 kB / 451.3 MB, free: 29.07 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001604/0.2232, allocations: 126 kB / 451.4 MB, free: 29.03 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004362/0.2237, allocations: 60.16 kB / 451.5 MB, free: 29.01 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002688/0.2264, allocations: 3.191 MB / 454.7 MB, free: 26.81 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000147/0.2265, allocations: 0.7907 MB / 455.5 MB, free: 26.11 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001622/0.2267, allocations: 43.39 kB / 455.5 MB, free: 26.09 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001218/0.2268, allocations: 119.4 kB / 455.6 MB, free: 26 MB / 350.1 MB Notification: Performance of SimCode: time 2.11e-07/0.2268, allocations: 0 / 455.6 MB, free: 26 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01388/0.2407, allocations: 6.011 MB / 461.6 MB, free: 25.49 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001261/0.2409, allocations: 199.6 kB / 461.8 MB, free: 25.24 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.594/1.835, allocations: 5.625 kB / 461.8 MB, free: 25.23 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)