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.001007/0.001007, allocations: 99.16 kB / 15.05 MB, free: 1.105 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.0008715/0.0008719, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.178/1.178, allocations: 223.2 MB / 239.9 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1741/0.1741, allocations: 22.35 MB / 313.3 MB, free: 13.14 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003114/0.0003114, allocations: 12 kB / 381.9 MB, free: 10.48 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2626/0.263, allocations: 55.98 MB / 437.9 MB, free: 39.19 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control): time 0.002269/0.2653, allocations: 2.612 MB / 440.5 MB, free: 37.33 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001162/0.2665, allocations: 0.8402 MB / 441.4 MB, free: 36.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002323/0.2667, allocations: 8.969 kB / 441.4 MB, free: 36.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 7.583e-05/0.2668, allocations: 45.08 kB / 441.4 MB, free: 36.71 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003592/0.2672, allocations: 125.2 kB / 441.5 MB, free: 36.62 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003036/0.2675, allocations: 155.1 kB / 441.7 MB, free: 36.54 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000345/0.2678, allocations: 308.4 kB / 442 MB, free: 36.37 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002047/0.268, allocations: 157.5 kB / 442.1 MB, free: 36.3 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001349/0.2682, allocations: 123.7 kB / 442.3 MB, free: 36.25 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001537/0.2683, allocations: 139.2 kB / 442.4 MB, free: 36.18 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.403e-05/0.2684, allocations: 14.16 kB / 442.4 MB, free: 36.18 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.906e-05/0.2684, allocations: 16.97 kB / 442.4 MB, free: 36.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.611e-05/0.2685, allocations: 50.69 kB / 442.5 MB, free: 36.14 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.741e-05/0.2685, allocations: 100.1 kB / 442.6 MB, free: 36.07 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001959/0.2687, allocations: 323.5 kB / 442.9 MB, free: 35.99 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.833e-06/0.2687, allocations: 0 / 442.9 MB, free: 35.99 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2687, allocations: 0 / 442.9 MB, free: 35.99 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.766e-06/0.2687, allocations: 2.906 kB / 442.9 MB, free: 35.99 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.0007087/0.2695, allocations: 0.627 MB / 443.5 MB, free: 35.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.945e-05/0.2695, allocations: 10.97 kB / 443.5 MB, free: 35.48 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.666e-05/0.2696, allocations: 71.5 kB / 443.6 MB, free: 35.42 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.647e-05/0.2696, allocations: 47.06 kB / 443.6 MB, free: 35.4 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002862/0.2699, allocations: 309.8 kB / 443.9 MB, free: 35.13 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.913e-05/0.27, allocations: 26.88 kB / 444 MB, free: 35.12 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.959e-05/0.27, allocations: 44.19 kB / 444 MB, free: 35.1 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004674/0.2705, allocations: 362.1 kB / 444.4 MB, free: 34.91 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.431e-05/0.2705, allocations: 7.172 kB / 444.4 MB, free: 34.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.793e-05/0.2705, allocations: 18.03 kB / 444.4 MB, free: 34.89 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.053e-06/0.2706, allocations: 6.281 kB / 444.4 MB, free: 34.89 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004117/0.271, allocations: 257.1 kB / 444.6 MB, free: 34.81 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001411/0.2724, allocations: 1.319 MB / 446 MB, free: 33.89 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005349/0.2729, allocations: 309.2 kB / 446.3 MB, free: 33.77 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.019e-05/0.273, allocations: 7.266 kB / 446.3 MB, free: 33.77 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.695e-05/0.273, allocations: 42.16 kB / 446.3 MB, free: 33.72 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 1.342e-06/0.273, allocations: 0 / 446.3 MB, free: 33.72 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.0005465/0.2735, allocations: 334.8 kB / 446.6 MB, free: 33.58 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.732e-05/0.2736, allocations: 83.36 kB / 446.7 MB, free: 33.49 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001815/0.2738, allocations: 266.5 kB / 447 MB, free: 33.33 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.808e-05/0.2738, allocations: 32.8 kB / 447 MB, free: 33.3 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.095e-05/0.2739, allocations: 217.2 kB / 447.2 MB, free: 33.12 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.358e-05/0.2739, allocations: 90.5 kB / 447.3 MB, free: 33.04 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.157e-05/0.274, allocations: 6.969 kB / 447.3 MB, free: 33.04 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.24e-05/0.274, allocations: 338.8 kB / 447.7 MB, free: 32.71 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001528/0.2742, allocations: 87.97 kB / 447.7 MB, free: 32.68 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001746/0.2743, allocations: 157 kB / 447.9 MB, free: 32.58 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000173/0.2745, allocations: 102.5 kB / 448 MB, free: 32.54 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.2745, allocations: 0 / 448 MB, free: 32.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0004078/0.275, allocations: 307.5 kB / 448.3 MB, free: 32.4 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.662e-05/0.2751, allocations: 0.6213 MB / 448.9 MB, free: 31.74 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.2751, allocations: 0 / 448.9 MB, free: 31.74 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.303e-05/0.2751, allocations: 6.484 kB / 448.9 MB, free: 31.74 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002555/0.2753, allocations: 72.97 kB / 449 MB, free: 31.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/0.2754, allocations: 2.688 kB / 449 MB, free: 31.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001678/0.2755, allocations: 31.03 kB / 449 MB, free: 31.72 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.679e-05/0.2756, allocations: 11.42 kB / 449 MB, free: 31.72 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.033e-06/0.2756, allocations: 8.844 kB / 449 MB, free: 31.71 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002858/0.2759, allocations: 219.2 kB / 449.3 MB, free: 31.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.206e-06/0.2759, allocations: 3.031 kB / 449.3 MB, free: 31.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.398e-06/0.2759, allocations: 11.03 kB / 449.3 MB, free: 31.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002154/0.2761, allocations: 64.69 kB / 449.3 MB, free: 31.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.997e-06/0.2761, allocations: 2.875 kB / 449.3 MB, free: 31.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001405/0.2763, allocations: 39.09 kB / 449.4 MB, free: 31.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.322e-05/0.2763, allocations: 8.688 kB / 449.4 MB, free: 31.59 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001179/0.2764, allocations: 227.6 kB / 449.6 MB, free: 31.37 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.489e-05/0.2765, allocations: 35.66 kB / 449.6 MB, free: 31.35 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004235/0.2769, allocations: 281.1 kB / 449.9 MB, free: 31.22 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.2769, allocations: 6.156 kB / 449.9 MB, free: 31.21 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.868e-06/0.2769, allocations: 0 / 449.9 MB, free: 31.21 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.668e-06/0.2769, allocations: 5.547 kB / 449.9 MB, free: 31.21 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003155/0.2772, allocations: 397.1 kB / 450.3 MB, free: 30.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.2772, allocations: 0 / 450.3 MB, free: 30.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002516/0.2775, allocations: 59.62 kB / 450.4 MB, free: 30.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.005e-06/0.2775, allocations: 0 / 450.4 MB, free: 30.93 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.804e-05/0.2775, allocations: 9.953 kB / 450.4 MB, free: 30.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.2775, allocations: 7.984 kB / 450.4 MB, free: 30.91 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.2776, allocations: 0 / 450.4 MB, free: 30.91 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005607/0.2781, allocations: 487.7 kB / 450.9 MB, free: 30.64 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.343e-05/0.2782, allocations: 126.2 kB / 451 MB, free: 30.51 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.36e-05/0.2783, allocations: 6.844 kB / 451 MB, free: 30.51 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001782/0.2784, allocations: 19.77 kB / 451 MB, free: 30.5 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.526e-05/0.2785, allocations: 17.72 kB / 451 MB, free: 30.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.353e-05/0.2785, allocations: 9.703 kB / 451 MB, free: 30.5 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001212/0.2786, allocations: 190.5 kB / 451.2 MB, free: 30.38 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.2786, allocations: 3.031 kB / 451.2 MB, free: 30.38 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000411/0.279, allocations: 146.4 kB / 451.4 MB, free: 30.34 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006949/0.2797, allocations: 1.012 MB / 452.4 MB, free: 29.54 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005236/0.2803, allocations: 352 kB / 452.7 MB, free: 29.42 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.2803, allocations: 0 / 452.7 MB, free: 29.42 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001634/0.2805, allocations: 116.6 kB / 452.8 MB, free: 29.39 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003564/0.2808, allocations: 62.16 kB / 452.9 MB, free: 29.37 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002328/0.2832, allocations: 2.882 MB / 455.8 MB, free: 27.31 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001748/0.2834, allocations: 0.8017 MB / 456.6 MB, free: 26.61 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000162/0.2835, allocations: 38.75 kB / 456.6 MB, free: 26.59 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001238/0.2836, allocations: 113.2 kB / 456.7 MB, free: 26.51 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.2837, allocations: 3.719 kB / 456.7 MB, free: 26.51 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.897/4.181, allocations: 5.777 MB / 462.5 MB, free: 26.11 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001525/4.181, allocations: 187.1 kB / 462.7 MB, free: 25.86 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.463/7.645, allocations: 6.062 kB / 462.7 MB, free: 25.86 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/linux/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) Environment - environmentSimulation: