Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop.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_OpenLoop,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_electrical_thermal_OpenLoop",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_electrical_thermal_OpenLoop",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.001242/0.001242, 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.001252/0.001252, allocations: 193.2 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.176/1.176, allocations: 222.9 MB / 239.8 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1734/0.1734, allocations: 22.35 MB / 312.3 MB, free: 12.68 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001186/0.001186, allocations: 55.91 kB / 380.2 MB, free: 11.04 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2011/0.2023, allocations: 54.94 MB / 435.1 MB, free: 39.57 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop): time 0.002368/0.2047, allocations: 2.334 MB / 437.5 MB, free: 37.95 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004763/0.2052, allocations: 0.5056 MB / 438 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.844e-05/0.2053, allocations: 8.656 kB / 438 MB, free: 37.58 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001027/0.2054, allocations: 20.67 kB / 438 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.19e-05/0.2055, allocations: 53.08 kB / 438.1 MB, free: 37.54 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001042/0.2056, allocations: 29.55 kB / 438.1 MB, free: 37.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001363/0.2058, allocations: 220.2 kB / 438.3 MB, free: 37.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001415/0.2059, allocations: 88.69 kB / 438.4 MB, free: 37.36 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.469e-05/0.206, allocations: 71.62 kB / 438.5 MB, free: 37.33 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.488e-05/0.2061, allocations: 86.22 kB / 438.6 MB, free: 37.29 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.34e-05/0.2061, allocations: 18.94 kB / 438.6 MB, free: 37.29 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.003e-05/0.2061, allocations: 13.66 kB / 438.6 MB, free: 37.29 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.511e-05/0.2062, allocations: 35.22 kB / 438.6 MB, free: 37.26 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.722e-05/0.2062, allocations: 93.33 kB / 438.7 MB, free: 37.21 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001252/0.2064, allocations: 205.2 kB / 438.9 MB, free: 37.13 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.2064, allocations: 0 / 438.9 MB, free: 37.13 MB / 350.1 MB Notification: Performance of FrontEnd: time 6.61e-07/0.2064, allocations: 0 / 438.9 MB, free: 37.13 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.052e-06/0.2064, allocations: 0 / 438.9 MB, free: 37.13 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: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.000425/0.2068, allocations: 477.2 kB / 439.4 MB, free: 36.7 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.941e-05/0.2069, allocations: 13.22 kB / 439.4 MB, free: 36.7 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.475e-05/0.2069, allocations: 57.22 kB / 439.4 MB, free: 36.65 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.586e-05/0.2069, allocations: 19.34 kB / 439.5 MB, free: 36.64 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001309/0.2071, allocations: 210.8 kB / 439.7 MB, free: 36.41 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.19e-05/0.2071, allocations: 17.22 kB / 439.7 MB, free: 36.41 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.705e-05/0.2071, allocations: 19.75 kB / 439.7 MB, free: 36.4 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002543/0.2074, allocations: 181 kB / 439.9 MB, free: 36.31 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.091e-05/0.2074, allocations: 4 kB / 439.9 MB, free: 36.3 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.597e-05/0.2074, allocations: 10.41 kB / 439.9 MB, free: 36.3 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.76e-06/0.2074, allocations: 5.469 kB / 439.9 MB, free: 36.3 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002154/0.2077, allocations: 120.2 kB / 440 MB, free: 36.25 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007088/0.2084, allocations: 0.6814 MB / 440.7 MB, free: 35.75 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002139/0.2086, allocations: 134.8 kB / 440.8 MB, free: 35.68 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.897e-05/0.2087, allocations: 67.31 kB / 440.9 MB, free: 35.65 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.403e-05/0.2087, allocations: 3.375 kB / 440.9 MB, free: 35.65 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.141e-05/0.2087, allocations: 38.38 kB / 440.9 MB, free: 35.61 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.703e-06/0.2087, allocations: 3.984 kB / 440.9 MB, free: 35.6 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0003038/0.2091, allocations: 174.1 kB / 441.1 MB, free: 35.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.469e-05/0.2091, allocations: 53.44 kB / 441.2 MB, free: 35.45 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.523e-05/0.2091, allocations: 127.8 kB / 441.3 MB, free: 35.34 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.081e-05/0.2092, allocations: 32.2 kB / 441.3 MB, free: 35.31 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.214e-05/0.2092, allocations: 130 kB / 441.4 MB, free: 35.19 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.448e-05/0.2092, allocations: 58.22 kB / 441.5 MB, free: 35.14 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.951e-05/0.2093, allocations: 36.94 kB / 441.5 MB, free: 35.12 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.363e-05/0.2093, allocations: 325.2 kB / 441.9 MB, free: 34.8 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.857e-05/0.2094, allocations: 34.42 kB / 441.9 MB, free: 34.79 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.008e-05/0.2095, allocations: 74.88 kB / 442 MB, free: 34.74 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001536/0.2096, allocations: 127.3 kB / 442.1 MB, free: 34.66 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.2096, allocations: 0 / 442.1 MB, free: 34.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002119/0.2099, allocations: 159.4 kB / 442.2 MB, free: 34.58 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.217e-06/0.2099, allocations: 5.969 kB / 442.3 MB, free: 34.58 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.527e-06/0.2099, allocations: 0 / 442.3 MB, free: 34.58 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.011e-05/0.2099, allocations: 3 kB / 442.3 MB, free: 34.58 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001477/0.21, allocations: 41.92 kB / 442.3 MB, free: 34.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.859e-06/0.2101, allocations: 7.125 kB / 442.3 MB, free: 34.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.661e-05/0.2101, allocations: 23.16 kB / 442.3 MB, free: 34.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.456e-06/0.2102, allocations: 6.031 kB / 442.3 MB, free: 34.55 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (21): * Single equations (assignments): 21 * 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 5.873e-05/0.2102, allocations: 134.6 kB / 442.5 MB, free: 34.42 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.969e-05/0.2102, allocations: 13.53 kB / 442.5 MB, free: 34.41 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.357e-05/0.2103, allocations: 15.81 kB / 442.5 MB, free: 34.41 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.2103, allocations: 0 / 442.5 MB, free: 34.41 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.966e-06/0.2103, allocations: 0 / 442.5 MB, free: 34.41 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.2103, allocations: 3.422 kB / 442.5 MB, free: 34.41 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001789/0.2105, allocations: 268.1 kB / 442.8 MB, free: 34.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.2105, allocations: 0 / 442.8 MB, free: 34.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001593/0.2107, allocations: 35.09 kB / 442.8 MB, free: 34.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.2107, allocations: 7.125 kB / 442.8 MB, free: 34.16 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.277e-06/0.2107, allocations: 0 / 442.8 MB, free: 34.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.2107, allocations: 0 / 442.8 MB, free: 34.16 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.2107, allocations: 2.969 kB / 442.8 MB, free: 34.16 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002904/0.211, allocations: 287.1 kB / 443.1 MB, free: 33.96 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.053e-05/0.211, allocations: 91.48 kB / 443.2 MB, free: 33.86 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.819e-05/0.211, allocations: 4 kB / 443.2 MB, free: 33.85 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001075/0.2112, allocations: 8.969 kB / 443.2 MB, free: 33.85 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.522e-05/0.2112, allocations: 12.58 kB / 443.2 MB, free: 33.85 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.705e-06/0.2112, allocations: 6.562 kB / 443.2 MB, free: 33.84 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.055e-05/0.2112, allocations: 95.36 kB / 443.3 MB, free: 33.77 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2112, allocations: 2.656 kB / 443.3 MB, free: 33.77 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002352/0.2115, allocations: 53.34 kB / 443.4 MB, free: 33.75 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Cbody.T,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 (16): * Single equations (assignments): 16 * 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.0004038/0.2119, allocations: 0.819 MB / 444.2 MB, free: 33.02 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002012/0.2121, allocations: 106.3 kB / 444.3 MB, free: 32.99 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.2121, allocations: 4.062 kB / 444.3 MB, free: 32.99 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.22e-05/0.2122, allocations: 60.14 kB / 444.3 MB, free: 32.97 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002593/0.2125, allocations: 17.08 kB / 444.4 MB, free: 32.96 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001439/0.2139, allocations: 1.976 MB / 446.3 MB, free: 31.34 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.988e-05/0.214, allocations: 0.7208 MB / 447 MB, free: 30.64 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.285e-05/0.2141, allocations: 14.19 kB / 447.1 MB, free: 30.63 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.423e-05/0.2142, allocations: 46.5 kB / 447.1 MB, free: 30.6 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2142, allocations: 0 / 447.1 MB, free: 30.6 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01031/0.2245, allocations: 2.576 MB / 449.7 MB, free: 30.3 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000129/0.2246, allocations: 204 kB / 449.9 MB, free: 30.05 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.585/1.81, allocations: 0 / 449.9 MB, free: 30.05 MB / 350.1 MB (rm -f AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_MSL_electrical_thermal_OpenLoop_fmu --startTime=0 --stopTime=15000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Tuning_brushup_MSL_electrical_thermal_OpenLoop.fmu > AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop.pipe 2>&1)