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.0007717/0.0007719, allocations: 91.69 kB / 15.06 MB, free: 1.098 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.0009253/0.0009254, allocations: 172.7 kB / 15.95 MB, free: 208 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.385/1.385, allocations: 223.3 MB / 240 MB, free: 5.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2355/0.2355, allocations: 22.36 MB / 313.4 MB, free: 13.1 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003092/0.0003094, allocations: 8 kB / 382 MB, free: 10.46 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.299/0.2993, allocations: 55.98 MB / 438 MB, free: 39.14 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control): time 0.002884/0.3022, allocations: 2.7 MB / 440.7 MB, free: 37.21 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001241/0.3035, allocations: 0.8349 MB / 441.6 MB, free: 36.61 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001935/0.3037, allocations: 8.5 kB / 441.6 MB, free: 36.61 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001712/0.3039, allocations: 49.88 kB / 441.6 MB, free: 36.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002163/0.3041, allocations: 88.5 kB / 441.7 MB, free: 36.52 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003258/0.3044, allocations: 135.4 kB / 441.8 MB, free: 36.46 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00033/0.3048, allocations: 422.5 kB / 442.2 MB, free: 36.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002383/0.305, allocations: 159.4 kB / 442.4 MB, free: 36.17 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001085/0.3051, allocations: 125.6 kB / 442.5 MB, free: 36.12 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001531/0.3053, allocations: 138.6 kB / 442.7 MB, free: 36.05 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.813e-05/0.3053, allocations: 11.72 kB / 442.7 MB, free: 36.05 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.951e-05/0.3054, allocations: 15.03 kB / 442.7 MB, free: 36.05 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.982e-05/0.3054, allocations: 61.66 kB / 442.7 MB, free: 36.01 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.992e-05/0.3055, allocations: 93.11 kB / 442.8 MB, free: 35.94 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002277/0.3057, allocations: 331.3 kB / 443.2 MB, free: 35.86 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.3058, allocations: 7.938 kB / 443.2 MB, free: 35.85 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.3058, allocations: 0 / 443.2 MB, free: 35.85 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.262e-06/0.3058, allocations: 0 / 443.2 MB, free: 35.85 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.0007472/0.3065, allocations: 0.6262 MB / 443.8 MB, free: 35.35 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.888e-05/0.3066, allocations: 8.438 kB / 443.8 MB, free: 35.35 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.588e-05/0.3066, allocations: 79.45 kB / 443.9 MB, free: 35.28 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.074e-05/0.3067, allocations: 42.72 kB / 443.9 MB, free: 35.26 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003028/0.307, allocations: 308.1 kB / 444.2 MB, free: 34.99 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.377e-05/0.3071, allocations: 27.06 kB / 444.2 MB, free: 34.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.197e-05/0.3071, allocations: 32.22 kB / 444.3 MB, free: 34.97 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005183/0.3076, allocations: 375 kB / 444.6 MB, free: 34.78 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.621e-05/0.3077, allocations: 3.938 kB / 444.6 MB, free: 34.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.713e-05/0.3077, allocations: 15.38 kB / 444.7 MB, free: 34.76 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.396e-06/0.3077, allocations: 11.06 kB / 444.7 MB, free: 34.76 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004344/0.3081, allocations: 256.3 kB / 444.9 MB, free: 34.68 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001461/0.3096, allocations: 1.324 MB / 446.2 MB, free: 33.76 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005461/0.3102, allocations: 295.6 kB / 446.5 MB, free: 33.64 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001876/0.3104, allocations: 130.4 kB / 446.7 MB, free: 33.59 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.823e-05/0.3104, allocations: 2.828 kB / 446.7 MB, free: 33.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.1e-05/0.3104, allocations: 37.73 kB / 446.7 MB, free: 33.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 1.603e-06/0.3105, allocations: 0 / 446.7 MB, free: 33.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.0005858/0.311, allocations: 338.8 kB / 447 MB, free: 33.4 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.653e-05/0.3111, allocations: 83.84 kB / 447.1 MB, free: 33.3 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001874/0.3113, allocations: 264.6 kB / 447.4 MB, free: 33.16 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.77e-05/0.3113, allocations: 29.7 kB / 447.4 MB, free: 33.12 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.823e-05/0.3114, allocations: 212.3 kB / 447.6 MB, free: 32.95 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.118e-05/0.3115, allocations: 101.4 kB / 447.7 MB, free: 32.87 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.284e-05/0.3115, allocations: 8 kB / 447.7 MB, free: 32.86 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.016e-05/0.3115, allocations: 349.6 kB / 448.1 MB, free: 32.53 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001566/0.3117, allocations: 80.38 kB / 448.1 MB, free: 32.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001795/0.3119, allocations: 155.2 kB / 448.3 MB, free: 32.4 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000175/0.3121, allocations: 99.86 kB / 448.4 MB, free: 32.36 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.3121, allocations: 4.031 kB / 448.4 MB, free: 32.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0004299/0.3125, allocations: 305.4 kB / 448.7 MB, free: 32.22 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.118e-05/0.3126, allocations: 141.7 kB / 448.8 MB, free: 32.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.491e-06/0.3126, allocations: 0 / 448.8 MB, free: 32.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.448e-05/0.3126, allocations: 9.828 kB / 448.8 MB, free: 32.06 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002658/0.3129, allocations: 77.59 kB / 448.9 MB, free: 32.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.775e-06/0.3129, allocations: 2.781 kB / 448.9 MB, free: 32.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001644/0.3131, allocations: 29.77 kB / 448.9 MB, free: 32.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.762e-05/0.3131, allocations: 12.28 kB / 449 MB, free: 32.04 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.38e-06/0.3131, allocations: 2.906 kB / 449 MB, free: 32.04 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003093/0.3134, allocations: 231.3 kB / 449.2 MB, free: 31.94 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.785e-06/0.3134, allocations: 2.75 kB / 449.2 MB, free: 31.94 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.597e-06/0.3134, allocations: 2.781 kB / 449.2 MB, free: 31.94 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002295/0.3137, allocations: 65.17 kB / 449.3 MB, free: 31.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.138e-06/0.3137, allocations: 2.875 kB / 449.3 MB, free: 31.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001377/0.3138, allocations: 33.28 kB / 449.3 MB, free: 31.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.549e-05/0.3139, allocations: 12.81 kB / 449.3 MB, free: 31.91 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.0001366/0.314, allocations: 233.5 kB / 449.5 MB, free: 31.68 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.857e-05/0.3141, allocations: 31.38 kB / 449.6 MB, free: 31.67 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000487/0.3146, allocations: 274 kB / 449.8 MB, free: 31.55 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.3146, allocations: 2.75 kB / 449.8 MB, free: 31.55 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.3146, allocations: 4 kB / 449.8 MB, free: 31.54 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.588e-06/0.3146, allocations: 3.281 kB / 449.8 MB, free: 31.54 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003496/0.3149, allocations: 400.9 kB / 450.2 MB, free: 31.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.315, allocations: 3.938 kB / 450.2 MB, free: 31.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002626/0.3152, allocations: 59.48 kB / 450.3 MB, free: 31.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.3152, allocations: 3.984 kB / 450.3 MB, free: 31.25 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.708e-05/0.3153, allocations: 6.75 kB / 450.3 MB, free: 31.24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.3153, allocations: 0 / 450.3 MB, free: 31.24 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.3153, allocations: 0 / 450.3 MB, free: 31.24 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005929/0.3159, allocations: 489.2 kB / 450.8 MB, free: 30.96 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.265e-05/0.316, allocations: 129.7 kB / 450.9 MB, free: 30.84 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.636e-05/0.316, allocations: 7.938 kB / 450.9 MB, free: 30.83 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001768/0.3162, allocations: 22.81 kB / 450.9 MB, free: 30.82 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.874e-05/0.3162, allocations: 19.84 kB / 451 MB, free: 30.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.341e-05/0.3163, allocations: 5.844 kB / 451 MB, free: 30.82 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001261/0.3164, allocations: 187.2 kB / 451.1 MB, free: 30.71 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3164, allocations: 0 / 451.1 MB, free: 30.71 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004429/0.3168, allocations: 148.7 kB / 451.3 MB, free: 30.66 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.0007528/0.3176, allocations: 1.016 MB / 452.3 MB, free: 29.86 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005628/0.3182, allocations: 347 kB / 452.6 MB, free: 29.75 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.3182, allocations: 0 / 452.6 MB, free: 29.75 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001775/0.3184, allocations: 127.4 kB / 452.8 MB, free: 29.7 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005015/0.3189, allocations: 64.86 kB / 452.8 MB, free: 29.68 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002432/0.3213, allocations: 1.99 MB / 454.8 MB, free: 28.52 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001893/0.3215, allocations: 0.7894 MB / 455.6 MB, free: 27.82 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001917/0.3217, allocations: 39.19 kB / 455.6 MB, free: 27.81 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001456/0.3219, allocations: 116.9 kB / 455.8 MB, free: 27.72 MB / 350.1 MB Notification: Performance of SimCode: time 4e-07/0.3219, allocations: 0 / 455.8 MB, free: 27.72 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01759/0.3395, allocations: 5.795 MB / 461.6 MB, free: 27.32 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001213/0.3396, allocations: 195 kB / 461.7 MB, free: 27.07 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.849/2.189, allocations: 0 / 461.7 MB, free: 27.07 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: