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.001173/0.001173, 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.001203/0.001204, allocations: 195.2 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.336/1.336, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2056/0.2056, allocations: 22.36 MB / 312.8 MB, free: 12.58 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002056/0.002056, allocations: 63.91 kB / 380.9 MB, free: 10.52 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2497/0.2518, allocations: 54.94 MB / 435.9 MB, free: 39.7 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control): time 0.003346/0.2551, allocations: 3.172 MB / 439 MB, free: 37.48 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001188/0.2564, allocations: 0.8854 MB / 439.9 MB, free: 36.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001882/0.2566, allocations: 15.28 kB / 439.9 MB, free: 36.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000201/0.2568, allocations: 69.92 kB / 440 MB, free: 36.79 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002242/0.257, allocations: 104.2 kB / 440.1 MB, free: 36.71 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003231/0.2573, allocations: 193.4 kB / 440.3 MB, free: 36.6 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003257/0.2577, allocations: 469.1 kB / 440.8 MB, free: 36.36 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002766/0.258, allocations: 212.9 kB / 441 MB, free: 36.26 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001233/0.2581, allocations: 160.1 kB / 441.1 MB, free: 36.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001659/0.2583, allocations: 192.8 kB / 441.3 MB, free: 36.07 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.194e-05/0.2583, allocations: 39.12 kB / 441.4 MB, free: 36.07 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.551e-05/0.2584, allocations: 40.06 kB / 441.4 MB, free: 36.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.818e-05/0.2585, allocations: 83.23 kB / 441.5 MB, free: 36.01 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001253/0.2586, allocations: 206.5 kB / 441.7 MB, free: 35.88 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003012/0.2589, allocations: 454.7 kB / 442.1 MB, free: 35.68 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.2589, allocations: 0 / 442.1 MB, free: 35.68 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.2589, allocations: 3.406 kB / 442.1 MB, free: 35.68 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.765e-06/0.2589, allocations: 0 / 442.1 MB, free: 35.68 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.0008456/0.2598, allocations: 0.6852 MB / 442.8 MB, free: 35.13 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.648e-05/0.2598, allocations: 9.438 kB / 442.8 MB, free: 35.13 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.114e-05/0.2599, allocations: 69.23 kB / 442.9 MB, free: 35.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.954e-05/0.26, allocations: 46.38 kB / 442.9 MB, free: 35.05 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002897/0.2603, allocations: 336.2 kB / 443.3 MB, free: 34.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.439e-05/0.2603, allocations: 28.81 kB / 443.3 MB, free: 34.74 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.901e-05/0.2603, allocations: 33.88 kB / 443.3 MB, free: 34.73 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004957/0.2608, allocations: 374.9 kB / 443.7 MB, free: 34.54 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.751e-05/0.2609, allocations: 0 / 443.7 MB, free: 34.54 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.942e-05/0.2609, allocations: 14.78 kB / 443.7 MB, free: 34.53 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.566e-06/0.2609, allocations: 8.625 kB / 443.7 MB, free: 34.53 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004414/0.2614, allocations: 254.2 kB / 444 MB, free: 34.44 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00159/0.263, allocations: 1.303 MB / 445.3 MB, free: 33.54 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006021/0.2636, allocations: 292.1 kB / 445.5 MB, free: 33.42 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000185/0.2638, allocations: 119.3 kB / 445.7 MB, free: 33.37 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.644e-05/0.2638, allocations: 3.234 kB / 445.7 MB, free: 33.37 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.686e-05/0.2638, allocations: 41.8 kB / 445.7 MB, free: 33.32 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 1.503e-06/0.2638, allocations: 0 / 445.7 MB, free: 33.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.0005737/0.2644, allocations: 322.1 kB / 446 MB, free: 33.19 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.528e-05/0.2645, allocations: 80.2 kB / 446.1 MB, free: 33.09 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001878/0.2647, allocations: 277.3 kB / 446.4 MB, free: 32.94 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.828e-05/0.2647, allocations: 29.7 kB / 446.4 MB, free: 32.9 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.918e-05/0.2648, allocations: 213.2 kB / 446.6 MB, free: 32.73 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.693e-05/0.2648, allocations: 93.64 kB / 446.7 MB, free: 32.65 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.071e-05/0.2649, allocations: 60.34 kB / 446.8 MB, free: 32.61 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.312e-05/0.265, allocations: 345.8 kB / 447.1 MB, free: 32.29 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000164/0.2651, allocations: 88.28 kB / 447.2 MB, free: 32.25 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001733/0.2653, allocations: 148.1 kB / 447.3 MB, free: 32.15 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003349/0.2657, allocations: 246.2 kB / 447.6 MB, free: 32 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.826e-06/0.2657, allocations: 3.938 kB / 447.6 MB, free: 32 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0004321/0.2661, allocations: 303.6 kB / 447.9 MB, free: 31.86 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.899e-05/0.2661, allocations: 10.36 kB / 447.9 MB, free: 31.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.762e-06/0.2661, allocations: 10.89 kB / 447.9 MB, free: 31.85 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.726e-05/0.2662, allocations: 2.844 kB / 447.9 MB, free: 31.85 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002745/0.2664, allocations: 64.72 kB / 448 MB, free: 31.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.045e-05/0.2665, allocations: 11.45 kB / 448 MB, free: 31.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000155/0.2666, allocations: 33.47 kB / 448 MB, free: 31.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.627e-05/0.2667, allocations: 6.25 kB / 448 MB, free: 31.82 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001988/0.2669, allocations: 189 kB / 448.2 MB, free: 31.69 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001437/0.267, allocations: 136.9 kB / 448.3 MB, free: 31.59 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002632/0.2673, allocations: 221.4 kB / 448.5 MB, free: 31.44 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.312e-06/0.2673, allocations: 2.562 kB / 448.5 MB, free: 31.44 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization_lambda0): time 0.000342/0.2676, allocations: 279.1 kB / 448.8 MB, free: 31.3 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.742e-06/0.2677, allocations: 4.844 kB / 448.8 MB, free: 31.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.975e-06/0.2677, allocations: 5.656 kB / 448.8 MB, free: 31.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.457e-06/0.2677, allocations: 3.188 kB / 448.8 MB, free: 31.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002216/0.2679, allocations: 65.7 kB / 448.9 MB, free: 31.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.617e-06/0.2679, allocations: 2.344 kB / 448.9 MB, free: 31.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001332/0.268, allocations: 23.59 kB / 448.9 MB, free: 31.28 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.519e-05/0.2681, allocations: 9 kB / 448.9 MB, free: 31.28 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 8.165e-05/0.2682, allocations: 222.9 kB / 449.1 MB, free: 31.07 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.866e-05/0.2682, allocations: 23.97 kB / 449.2 MB, free: 31.05 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004524/0.2687, allocations: 266.2 kB / 449.4 MB, free: 30.93 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.558e-06/0.2687, allocations: 2.625 kB / 449.4 MB, free: 30.93 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.2687, allocations: 0 / 449.4 MB, free: 30.93 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.2687, allocations: 3.188 kB / 449.4 MB, free: 30.93 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003565/0.2691, allocations: 405.6 kB / 449.8 MB, free: 30.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.2691, allocations: 4 kB / 449.8 MB, free: 30.63 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00026/0.2693, allocations: 61.05 kB / 449.9 MB, free: 30.63 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.895e-06/0.2693, allocations: 0 / 449.9 MB, free: 30.63 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.039e-05/0.2694, allocations: 6.625 kB / 449.9 MB, free: 30.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.684e-06/0.2694, allocations: 0 / 449.9 MB, free: 30.62 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.2694, allocations: 0 / 449.9 MB, free: 30.62 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006165/0.27, allocations: 474.1 kB / 450.4 MB, free: 30.36 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.336e-05/0.2701, allocations: 121.9 kB / 450.5 MB, free: 30.23 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.747e-05/0.2702, allocations: 10.56 kB / 450.5 MB, free: 30.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001701/0.2703, allocations: 13.09 kB / 450.5 MB, free: 30.22 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.144e-05/0.2704, allocations: 19.41 kB / 450.5 MB, free: 30.22 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.515e-05/0.2704, allocations: 9.188 kB / 450.5 MB, free: 30.21 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001348/0.2706, allocations: 191 kB / 450.7 MB, free: 30.1 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2706, allocations: 3.938 kB / 450.7 MB, free: 30.1 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004371/0.271, allocations: 153.9 kB / 450.9 MB, free: 30.05 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.0007892/0.2718, allocations: 1.007 MB / 451.9 MB, free: 29.25 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000611/0.2724, allocations: 357.8 kB / 452.2 MB, free: 29.12 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.2724, allocations: 0 / 452.2 MB, free: 29.12 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000175/0.2726, allocations: 119.2 kB / 452.3 MB, free: 29.08 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005381/0.2732, allocations: 73.72 kB / 452.4 MB, free: 29.05 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003465/0.2766, allocations: 3.045 MB / 455.5 MB, free: 27 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002193/0.2769, allocations: 0.794 MB / 456.3 MB, free: 26.29 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001859/0.2771, allocations: 35.84 kB / 456.3 MB, free: 26.28 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001403/0.2772, allocations: 118.2 kB / 456.4 MB, free: 26.19 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.2772, allocations: 0 / 456.4 MB, free: 26.19 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.167/1.445, allocations: 6.287 MB / 462.7 MB, free: 25.53 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.021/9.465, allocations: 1.344 kB / 462.7 MB, free: 25.53 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)