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.001053/0.001053, allocations: 90.67 kB / 15.36 MB, free: 0.7383 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.007005/0.007005, allocations: 170.4 kB / 16.26 MB, free: 6.613 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.41/1.41, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2201/0.2201, allocations: 22.34 MB / 313.8 MB, free: 13.07 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003258/0.0003259, allocations: 12 kB / 382.7 MB, free: 10.02 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2704/0.2708, allocations: 55.98 MB / 438.7 MB, free: 39.4 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control): time 0.002538/0.2734, allocations: 2.807 MB / 441.5 MB, free: 37.37 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001139/0.2745, allocations: 0.871 MB / 442.4 MB, free: 36.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001959/0.2747, allocations: 11.62 kB / 442.4 MB, free: 36.74 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001774/0.2749, allocations: 46.45 kB / 442.4 MB, free: 36.71 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002291/0.2752, allocations: 83.55 kB / 442.5 MB, free: 36.66 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003268/0.2755, allocations: 179.5 kB / 442.7 MB, free: 36.55 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003202/0.2758, allocations: 443.9 kB / 443.1 MB, free: 36.33 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002721/0.2761, allocations: 188.4 kB / 443.3 MB, free: 36.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001117/0.2762, allocations: 133.8 kB / 443.4 MB, free: 36.17 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001571/0.2764, allocations: 142.4 kB / 443.6 MB, free: 36.1 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.372e-05/0.2764, allocations: 11.44 kB / 443.6 MB, free: 36.1 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.595e-05/0.2765, allocations: 15.41 kB / 443.6 MB, free: 36.1 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.075e-05/0.2765, allocations: 60.56 kB / 443.6 MB, free: 36.06 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001126/0.2766, allocations: 193.5 kB / 443.8 MB, free: 35.93 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002652/0.2769, allocations: 417.4 kB / 444.2 MB, free: 35.79 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.2769, allocations: 0 / 444.2 MB, free: 35.79 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.2769, allocations: 0 / 444.2 MB, free: 35.79 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.318e-06/0.2769, allocations: 6.781 kB / 444.3 MB, free: 35.79 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.0007213/0.2777, allocations: 0.6198 MB / 444.9 MB, free: 35.28 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.586e-05/0.2777, allocations: 16.56 kB / 444.9 MB, free: 35.27 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.05e-05/0.2778, allocations: 72.88 kB / 445 MB, free: 35.21 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.281e-05/0.2778, allocations: 43.78 kB / 445 MB, free: 35.19 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002891/0.2781, allocations: 324.1 kB / 445.3 MB, free: 34.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.441e-05/0.2782, allocations: 27.72 kB / 445.3 MB, free: 34.89 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.941e-05/0.2782, allocations: 37.5 kB / 445.4 MB, free: 34.88 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005327/0.2788, allocations: 384.1 kB / 445.8 MB, free: 34.68 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.366e-05/0.2788, allocations: 0 / 445.8 MB, free: 34.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.114e-05/0.2788, allocations: 14.81 kB / 445.8 MB, free: 34.67 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.506e-06/0.2788, allocations: 8.531 kB / 445.8 MB, free: 34.67 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004576/0.2793, allocations: 264.3 kB / 446 MB, free: 34.58 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001475/0.2808, allocations: 1.319 MB / 447.4 MB, free: 33.67 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005796/0.2814, allocations: 300.5 kB / 447.6 MB, free: 33.55 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001965/0.2816, allocations: 127.4 kB / 447.8 MB, free: 33.5 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.793e-05/0.2816, allocations: 3.234 kB / 447.8 MB, free: 33.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.744e-05/0.2816, allocations: 37.73 kB / 447.8 MB, free: 33.46 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 1.683e-06/0.2816, allocations: 0 / 447.8 MB, free: 33.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.0006206/0.2823, allocations: 340.3 kB / 448.1 MB, free: 33.32 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.755e-05/0.2823, allocations: 87.94 kB / 448.2 MB, free: 33.22 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000196/0.2825, allocations: 268.7 kB / 448.5 MB, free: 33.07 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.346e-05/0.2826, allocations: 32.33 kB / 448.5 MB, free: 33.03 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.356e-05/0.2827, allocations: 211.8 kB / 448.7 MB, free: 32.86 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.183e-05/0.2827, allocations: 93.7 kB / 448.8 MB, free: 32.78 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.878e-05/0.2828, allocations: 34.09 kB / 448.9 MB, free: 32.75 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.021e-05/0.2828, allocations: 338.8 kB / 449.2 MB, free: 32.43 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001711/0.283, allocations: 90.72 kB / 449.3 MB, free: 32.4 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000198/0.2832, allocations: 153.3 kB / 449.4 MB, free: 32.3 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003581/0.2836, allocations: 247.5 kB / 449.7 MB, free: 32.15 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.427e-06/0.2836, allocations: 6.656 kB / 449.7 MB, free: 32.15 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0004546/0.284, allocations: 310.7 kB / 450 MB, free: 32.01 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.713e-05/0.2841, allocations: 129.3 kB / 450.1 MB, free: 31.87 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.092e-06/0.2841, allocations: 6.219 kB / 450.1 MB, free: 31.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.308e-05/0.2841, allocations: 6.188 kB / 450.1 MB, free: 31.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002671/0.2844, allocations: 73.81 kB / 450.2 MB, free: 31.85 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.506e-06/0.2844, allocations: 7.219 kB / 450.2 MB, free: 31.85 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001762/0.2846, allocations: 39.84 kB / 450.2 MB, free: 31.83 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.798e-05/0.2846, allocations: 5.719 kB / 450.2 MB, free: 31.83 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.406e-06/0.2846, allocations: 8.062 kB / 450.2 MB, free: 31.82 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003137/0.285, allocations: 232.1 kB / 450.5 MB, free: 31.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.036e-06/0.285, allocations: 7.922 kB / 450.5 MB, free: 31.72 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.937e-06/0.285, allocations: 5.531 kB / 450.5 MB, free: 31.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002235/0.2852, allocations: 65.67 kB / 450.6 MB, free: 31.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.367e-06/0.2852, allocations: 2.969 kB / 450.6 MB, free: 31.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001395/0.2854, allocations: 23.58 kB / 450.6 MB, free: 31.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.469e-05/0.2854, allocations: 17.25 kB / 450.6 MB, free: 31.7 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 0.000129/0.2855, allocations: 237.7 kB / 450.8 MB, free: 31.47 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.944e-05/0.2856, allocations: 36.75 kB / 450.9 MB, free: 31.45 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005164/0.2861, allocations: 275.2 kB / 451.1 MB, free: 31.32 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.2861, allocations: 6.875 kB / 451.1 MB, free: 31.32 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.2861, allocations: 3 kB / 451.1 MB, free: 31.32 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.107e-06/0.2861, allocations: 0 / 451.1 MB, free: 31.32 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003406/0.2865, allocations: 400.1 kB / 451.5 MB, free: 31.03 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.2865, allocations: 3.938 kB / 451.5 MB, free: 31.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002664/0.2868, allocations: 56.5 kB / 451.6 MB, free: 31.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.2868, allocations: 2.875 kB / 451.6 MB, free: 31.02 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.851e-05/0.2868, allocations: 11.08 kB / 451.6 MB, free: 31.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.2868, allocations: 0 / 451.6 MB, free: 31.02 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2868, allocations: 4 kB / 451.6 MB, free: 31.02 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006185/0.2874, allocations: 472.6 kB / 452.1 MB, free: 30.75 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.017e-05/0.2875, allocations: 135 kB / 452.2 MB, free: 30.62 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.535e-05/0.2876, allocations: 4 kB / 452.2 MB, free: 30.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001903/0.2878, allocations: 22.48 kB / 452.2 MB, free: 30.61 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.041e-05/0.2878, allocations: 20.06 kB / 452.2 MB, free: 30.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.263e-05/0.2878, allocations: 6.719 kB / 452.3 MB, free: 30.61 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001231/0.288, allocations: 188.4 kB / 452.4 MB, free: 30.49 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.288, allocations: 0 / 452.4 MB, free: 30.49 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004227/0.2884, allocations: 152.3 kB / 452.6 MB, free: 30.45 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.0007496/0.2891, allocations: 1.014 MB / 453.6 MB, free: 29.64 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005702/0.2897, allocations: 349.6 kB / 453.9 MB, free: 29.54 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.2897, allocations: 0 / 453.9 MB, free: 29.54 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001853/0.2899, allocations: 127.6 kB / 454.1 MB, free: 29.49 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005103/0.2904, allocations: 67.11 kB / 454.1 MB, free: 29.47 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003197/0.2937, allocations: 3.282 MB / 457.4 MB, free: 27.25 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002225/0.2939, allocations: 0.7906 MB / 458.2 MB, free: 26.55 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001929/0.2941, allocations: 43.11 kB / 458.2 MB, free: 26.53 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001403/0.2942, allocations: 112.8 kB / 458.4 MB, free: 26.45 MB / 350.1 MB Notification: Performance of SimCode: time 5.31e-07/0.2942, allocations: 0 / 458.4 MB, free: 26.45 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01738/0.3116, allocations: 5.912 MB / 464.3 MB, free: 26.04 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001298/0.3118, allocations: 205 kB / 464.5 MB, free: 25.78 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.859/2.171, allocations: 2.75 kB / 464.5 MB, free: 25.78 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)