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.001089/0.001089, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00114/0.00114, allocations: 194.4 kB / 16.53 MB, free: 6.664 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.338/1.338, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.201/0.201, allocations: 22.34 MB / 312.7 MB, free: 12.54 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002329/0.002329, allocations: 56.14 kB / 380.9 MB, free: 10.53 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2897/0.292, allocations: 54.94 MB / 435.9 MB, free: 39.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop): time 0.002716/0.2948, allocations: 2.282 MB / 438.1 MB, free: 38.03 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006224/0.2954, allocations: 0.5126 MB / 438.7 MB, free: 37.66 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.431e-05/0.2955, allocations: 5.375 kB / 438.7 MB, free: 37.66 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001115/0.2957, allocations: 25.22 kB / 438.7 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.256e-05/0.2958, allocations: 58.84 kB / 438.7 MB, free: 37.6 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001296/0.2959, allocations: 59.8 kB / 438.8 MB, free: 37.56 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001712/0.2961, allocations: 211.4 kB / 439 MB, free: 37.46 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001869/0.2963, allocations: 97.98 kB / 439.1 MB, free: 37.41 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.015e-05/0.2964, allocations: 78.02 kB / 439.2 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001065/0.2965, allocations: 88.25 kB / 439.3 MB, free: 37.33 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.698e-05/0.2965, allocations: 18.16 kB / 439.3 MB, free: 37.33 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.098e-05/0.2965, allocations: 18 kB / 439.3 MB, free: 37.33 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.04e-05/0.2966, allocations: 43.8 kB / 439.3 MB, free: 37.3 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.363e-05/0.2967, allocations: 96.12 kB / 439.4 MB, free: 37.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001582/0.2968, allocations: 210 kB / 439.6 MB, free: 37.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.2968, allocations: 0 / 439.6 MB, free: 37.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2968, allocations: 4 kB / 439.6 MB, free: 37.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.103e-05/0.2969, allocations: 3.328 kB / 439.7 MB, free: 37.16 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.0004855/0.2973, allocations: 471.5 kB / 440.1 MB, free: 36.74 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.243e-05/0.2974, allocations: 9.781 kB / 440.1 MB, free: 36.74 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.161e-05/0.2974, allocations: 49.89 kB / 440.2 MB, free: 36.69 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.994e-05/0.2975, allocations: 23.84 kB / 440.2 MB, free: 36.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001615/0.2976, allocations: 223.2 kB / 440.4 MB, free: 36.44 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.639e-05/0.2977, allocations: 17.41 kB / 440.4 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.933e-05/0.2977, allocations: 18.84 kB / 440.4 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002688/0.298, allocations: 174.4 kB / 440.6 MB, free: 36.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.206e-05/0.298, allocations: 0 / 440.6 MB, free: 36.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.84e-05/0.298, allocations: 10.84 kB / 440.6 MB, free: 36.34 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.911e-06/0.298, allocations: 5.781 kB / 440.6 MB, free: 36.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000232/0.2983, allocations: 119 kB / 440.8 MB, free: 36.29 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007852/0.2991, allocations: 0.6836 MB / 441.4 MB, free: 35.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002457/0.2993, allocations: 132.6 kB / 441.6 MB, free: 35.72 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001124/0.2994, allocations: 74.73 kB / 441.6 MB, free: 35.68 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.399e-05/0.2995, allocations: 0 / 441.6 MB, free: 35.68 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.426e-05/0.2995, allocations: 45.19 kB / 441.7 MB, free: 35.63 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.052e-06/0.2995, allocations: 0 / 441.7 MB, free: 35.63 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0003452/0.2998, allocations: 174.3 kB / 441.9 MB, free: 35.55 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.24e-05/0.2999, allocations: 54.25 kB / 441.9 MB, free: 35.48 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.113e-05/0.2999, allocations: 127.7 kB / 442 MB, free: 35.38 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.354e-05/0.3, allocations: 32.94 kB / 442.1 MB, free: 35.34 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.016e-05/0.3, allocations: 127.6 kB / 442.2 MB, free: 35.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.85e-05/0.3, allocations: 58.03 kB / 442.2 MB, free: 35.18 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.478e-05/0.3001, allocations: 40.56 kB / 442.3 MB, free: 35.15 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.282e-05/0.3001, allocations: 318.1 kB / 442.6 MB, free: 34.83 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.563e-05/0.3002, allocations: 40.22 kB / 442.6 MB, free: 34.82 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.349e-05/0.3003, allocations: 69.45 kB / 442.7 MB, free: 34.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001734/0.3005, allocations: 121.9 kB / 442.8 MB, free: 34.7 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.3005, allocations: 0 / 442.8 MB, free: 34.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002332/0.3008, allocations: 162.3 kB / 443 MB, free: 34.62 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.267e-05/0.3008, allocations: 5.75 kB / 443 MB, free: 34.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.419e-06/0.3008, allocations: 0 / 443 MB, free: 34.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.31e-05/0.3008, allocations: 3 kB / 443 MB, free: 34.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001609/0.301, allocations: 58.14 kB / 443 MB, free: 34.6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.172e-06/0.301, allocations: 3.984 kB / 443 MB, free: 34.6 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.824e-05/0.3011, allocations: 11.09 kB / 443.1 MB, free: 34.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.887e-06/0.3011, allocations: 10.81 kB / 443.1 MB, free: 34.59 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 6.707e-05/0.3011, allocations: 131.9 kB / 443.2 MB, free: 34.45 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.236e-05/0.3012, allocations: 13.59 kB / 443.2 MB, free: 34.45 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.717e-05/0.3012, allocations: 19.88 kB / 443.2 MB, free: 34.44 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-06/0.3012, allocations: 0 / 443.2 MB, free: 34.44 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.337e-06/0.3012, allocations: 4 kB / 443.2 MB, free: 34.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.3012, allocations: 2.938 kB / 443.2 MB, free: 34.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001932/0.3014, allocations: 262.5 kB / 443.5 MB, free: 34.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.3014, allocations: 4 kB / 443.5 MB, free: 34.19 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000181/0.3016, allocations: 33.11 kB / 443.5 MB, free: 34.19 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.3016, allocations: 0 / 443.5 MB, free: 34.19 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.197e-05/0.3017, allocations: 4 kB / 443.5 MB, free: 34.19 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.3017, allocations: 6.812 kB / 443.5 MB, free: 34.18 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.3017, allocations: 3.375 kB / 443.5 MB, free: 34.18 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000323/0.302, allocations: 279.9 kB / 443.8 MB, free: 33.99 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.247e-05/0.302, allocations: 91.77 kB / 443.9 MB, free: 33.89 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.047e-05/0.3021, allocations: 10.27 kB / 443.9 MB, free: 33.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001076/0.3022, allocations: 6.688 kB / 443.9 MB, free: 33.88 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.838e-05/0.3022, allocations: 13.95 kB / 443.9 MB, free: 33.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.765e-06/0.3022, allocations: 2.875 kB / 443.9 MB, free: 33.88 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.427e-05/0.3023, allocations: 95.75 kB / 444 MB, free: 33.8 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3023, allocations: 4.062 kB / 444 MB, free: 33.79 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002596/0.3025, allocations: 47.19 kB / 444.1 MB, free: 33.78 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.0004509/0.303, allocations: 0.8175 MB / 444.9 MB, free: 33.05 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002301/0.3032, allocations: 128 kB / 445 MB, free: 33.01 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.3033, allocations: 0 / 445 MB, free: 33.01 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.832e-05/0.3033, allocations: 55.5 kB / 445.1 MB, free: 32.99 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003052/0.3037, allocations: 13.62 kB / 445.1 MB, free: 32.98 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001632/0.3053, allocations: 1.897 MB / 447 MB, free: 31.43 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001292/0.3054, allocations: 0.7306 MB / 447.7 MB, free: 30.72 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.908e-05/0.3055, allocations: 15.23 kB / 447.7 MB, free: 30.72 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.768e-05/0.3056, allocations: 44.69 kB / 447.8 MB, free: 30.68 MB / 350.1 MB Notification: Performance of SimCode: time 3.4e-07/0.3056, allocations: 0 / 447.8 MB, free: 30.68 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01717/0.3228, allocations: 2.769 MB / 450.5 MB, free: 30.25 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.871/8.194, allocations: 17.22 kB / 450.6 MB, free: 30.24 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)