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: translateModel(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control") translateModel(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001644/0.001644, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001928/0.001928, allocations: 191.9 kB / 16.25 MB, free: 6.637 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.313/1.313, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2035/0.2035, allocations: 22.34 MB / 312.4 MB, free: 12.6 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001471/0.001471, allocations: 63.91 kB / 380.3 MB, free: 11.01 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2933/0.2948, allocations: 54.95 MB / 435.2 MB, free: 39.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control): time 0.003705/0.2986, allocations: 3.202 MB / 438.4 MB, free: 37.49 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001482/0.3001, allocations: 0.8732 MB / 439.3 MB, free: 36.87 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000244/0.3003, allocations: 11.78 kB / 439.3 MB, free: 36.87 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000244/0.3006, allocations: 47.33 kB / 439.4 MB, free: 36.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000277/0.3009, allocations: 88.23 kB / 439.4 MB, free: 36.78 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003722/0.3013, allocations: 170.5 kB / 439.6 MB, free: 36.67 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003868/0.3017, allocations: 465.2 kB / 440.1 MB, free: 36.44 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003213/0.302, allocations: 215.5 kB / 440.3 MB, free: 36.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001631/0.3022, allocations: 175.1 kB / 440.4 MB, free: 36.24 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001824/0.3024, allocations: 182.5 kB / 440.6 MB, free: 36.14 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.044e-05/0.3024, allocations: 36.66 kB / 440.7 MB, free: 36.14 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.828e-05/0.3025, allocations: 40.88 kB / 440.7 MB, free: 36.14 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.284e-05/0.3025, allocations: 88.52 kB / 440.8 MB, free: 36.08 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001211/0.3027, allocations: 202 kB / 441 MB, free: 35.95 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003339/0.303, allocations: 452.8 kB / 441.4 MB, free: 35.75 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.303, allocations: 2.969 kB / 441.4 MB, free: 35.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.303, allocations: 0 / 441.4 MB, free: 35.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.685e-06/0.303, allocations: 0 / 441.4 MB, free: 35.75 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.0008375/0.3039, allocations: 0.6884 MB / 442.1 MB, free: 35.2 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.446e-05/0.3039, allocations: 11.69 kB / 442.1 MB, free: 35.2 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.489e-05/0.304, allocations: 45.97 kB / 442.2 MB, free: 35.18 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000302/0.3043, allocations: 331.1 kB / 442.5 MB, free: 34.88 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.435e-05/0.3043, allocations: 25.59 kB / 442.5 MB, free: 34.88 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.228e-05/0.3044, allocations: 39.59 kB / 442.6 MB, free: 34.86 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005624/0.305, allocations: 377.2 kB / 442.9 MB, free: 34.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.686e-05/0.305, allocations: 3.312 kB / 442.9 MB, free: 34.66 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.009e-05/0.305, allocations: 14.72 kB / 442.9 MB, free: 34.65 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.576e-06/0.305, allocations: 8.281 kB / 443 MB, free: 34.65 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004202/0.3055, allocations: 243.8 kB / 443.2 MB, free: 34.57 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001463/0.3069, allocations: 1.305 MB / 444.5 MB, free: 33.67 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005806/0.3075, allocations: 297.9 kB / 444.8 MB, free: 33.54 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001897/0.3077, allocations: 123.5 kB / 444.9 MB, free: 33.49 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.32e-05/0.3078, allocations: 3.359 kB / 444.9 MB, free: 33.49 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2e-05/0.3078, allocations: 37.64 kB / 444.9 MB, free: 33.45 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 1.403e-06/0.3078, allocations: 0 / 444.9 MB, free: 33.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.0005989/0.3084, allocations: 329 kB / 445.3 MB, free: 33.3 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.073e-05/0.3085, allocations: 78.39 kB / 445.3 MB, free: 33.21 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001884/0.3086, allocations: 265.2 kB / 445.6 MB, free: 33.06 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.216e-05/0.3087, allocations: 32.61 kB / 445.6 MB, free: 33.03 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001065/0.3088, allocations: 221 kB / 445.9 MB, free: 32.84 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.942e-05/0.3088, allocations: 95.95 kB / 445.9 MB, free: 32.77 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.682e-05/0.3089, allocations: 60.55 kB / 446 MB, free: 32.73 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.056e-05/0.309, allocations: 338.2 kB / 446.3 MB, free: 32.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001691/0.3092, allocations: 98.17 kB / 446.4 MB, free: 32.36 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000183/0.3094, allocations: 144.2 kB / 446.6 MB, free: 32.27 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000346/0.3097, allocations: 236.7 kB / 446.8 MB, free: 32.12 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.3097, allocations: 0 / 446.8 MB, free: 32.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0004488/0.3102, allocations: 310.2 kB / 447.1 MB, free: 31.98 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.554e-05/0.3102, allocations: 5.562 kB / 447.1 MB, free: 31.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.766e-06/0.3102, allocations: 6.969 kB / 447.1 MB, free: 31.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.692e-05/0.3102, allocations: 5.844 kB / 447.1 MB, free: 31.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002694/0.3105, allocations: 71.28 kB / 447.2 MB, free: 31.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.665e-06/0.3105, allocations: 2.219 kB / 447.2 MB, free: 31.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001764/0.3107, allocations: 43.64 kB / 447.2 MB, free: 31.94 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.976e-05/0.3107, allocations: 8.844 kB / 447.2 MB, free: 31.94 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001995/0.3109, allocations: 188.5 kB / 447.4 MB, free: 31.81 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001433/0.3111, allocations: 137.4 kB / 447.6 MB, free: 31.71 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002476/0.3114, allocations: 215.3 kB / 447.8 MB, free: 31.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.964e-06/0.3114, allocations: 3.984 kB / 447.8 MB, free: 31.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization_lambda0): time 0.0003468/0.3117, allocations: 283.3 kB / 448.1 MB, free: 31.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.524e-06/0.3117, allocations: 8.438 kB / 448.1 MB, free: 31.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.924e-06/0.3117, allocations: 0 / 448.1 MB, free: 31.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.875e-06/0.3117, allocations: 2.719 kB / 448.1 MB, free: 31.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002328/0.312, allocations: 66.38 kB / 448.1 MB, free: 31.42 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.088e-06/0.312, allocations: 10.84 kB / 448.1 MB, free: 31.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001578/0.3122, allocations: 33.19 kB / 448.2 MB, free: 31.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.487e-05/0.3122, allocations: 12.69 kB / 448.2 MB, free: 31.39 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 7.724e-05/0.3123, allocations: 201.9 kB / 448.4 MB, free: 31.19 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.866e-05/0.3123, allocations: 27.31 kB / 448.4 MB, free: 31.18 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004747/0.3128, allocations: 269.9 kB / 448.7 MB, free: 31.05 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.3128, allocations: 2.906 kB / 448.7 MB, free: 31.05 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.3128, allocations: 4 kB / 448.7 MB, free: 31.05 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.55e-06/0.3128, allocations: 3.328 kB / 448.7 MB, free: 31.05 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003494/0.3132, allocations: 400.7 kB / 449.1 MB, free: 30.76 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.3132, allocations: 0 / 449.1 MB, free: 30.76 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002775/0.3135, allocations: 62.98 kB / 449.1 MB, free: 30.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.325e-06/0.3135, allocations: 2.906 kB / 449.1 MB, free: 30.75 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.032e-05/0.3135, allocations: 6.938 kB / 449.1 MB, free: 30.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.3135, allocations: 0 / 449.1 MB, free: 30.75 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.3135, allocations: 0 / 449.1 MB, free: 30.75 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006043/0.3141, allocations: 474.7 kB / 449.6 MB, free: 30.47 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.526e-05/0.3142, allocations: 124.7 kB / 449.7 MB, free: 30.35 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.015e-05/0.3143, allocations: 6.25 kB / 449.7 MB, free: 30.35 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001958/0.3145, allocations: 17.48 kB / 449.8 MB, free: 30.34 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.846e-05/0.3145, allocations: 18.77 kB / 449.8 MB, free: 30.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.411e-05/0.3146, allocations: 9.156 kB / 449.8 MB, free: 30.34 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000138/0.3147, allocations: 193.8 kB / 450 MB, free: 30.22 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3147, allocations: 3.938 kB / 450 MB, free: 30.21 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004363/0.3151, allocations: 149.8 kB / 450.1 MB, free: 30.17 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 8.449e-05/0.3152, allocations: 102.9 kB / 450.2 MB, free: 30.08 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005868/0.3158, allocations: 367.3 kB / 450.6 MB, free: 29.95 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.3158, allocations: 0 / 450.6 MB, free: 29.95 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001666/0.316, allocations: 114.8 kB / 450.7 MB, free: 29.91 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005236/0.3165, allocations: 66.06 kB / 450.8 MB, free: 29.89 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001096/0.3177, allocations: 0.9068 MB / 451.7 MB, free: 29.28 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001743/0.3178, allocations: 0.7962 MB / 452.5 MB, free: 28.57 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001804/0.318, allocations: 35.73 kB / 452.5 MB, free: 28.55 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.636e-05/0.3181, allocations: 27.69 kB / 452.5 MB, free: 28.54 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3181, allocations: 0 / 452.5 MB, free: 28.54 MB / 350.1 MB Notification: Performance of Templates: time 0.005876/0.324, allocations: 3.094 MB / 455.6 MB, free: 28.33 MB / 350.1 MB make -j1 -f AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.makefile (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 & ./AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.pipe 2>&1)