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.0009827/0.0009826, allocations: 92.16 kB / 16.02 MB, free: 80 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.001091/0.001091, allocations: 173 kB / 16.92 MB, free: 6.652 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: 223.3 MB / 241 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.1972/0.1972, allocations: 22.35 MB / 314.4 MB, free: 13.07 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003223/0.0003225, allocations: 8 kB / 383.2 MB, free: 10.15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2763/0.2766, allocations: 55.98 MB / 439.2 MB, free: 39.3 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control): time 0.002954/0.2796, allocations: 2.82 MB / 442.1 MB, free: 37.26 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001611/0.2813, allocations: 0.8636 MB / 442.9 MB, free: 36.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003924/0.2817, allocations: 12.16 kB / 442.9 MB, free: 36.64 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002335/0.2819, allocations: 49.22 kB / 443 MB, free: 36.61 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003627/0.2823, allocations: 79.25 kB / 443.1 MB, free: 36.55 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000429/0.2827, allocations: 176.1 kB / 443.2 MB, free: 36.45 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003771/0.2831, allocations: 442.1 kB / 443.7 MB, free: 36.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003099/0.2834, allocations: 187.8 kB / 443.8 MB, free: 36.14 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001304/0.2836, allocations: 128.1 kB / 444 MB, free: 36.08 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001584/0.2837, allocations: 151 kB / 444.1 MB, free: 36 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.472e-05/0.2838, allocations: 14.47 kB / 444.1 MB, free: 36 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.023e-05/0.2838, allocations: 14.16 kB / 444.1 MB, free: 36 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.395e-05/0.2839, allocations: 52.75 kB / 444.2 MB, free: 35.97 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001519/0.284, allocations: 196.5 kB / 444.4 MB, free: 35.83 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002918/0.2843, allocations: 332.6 kB / 444.7 MB, free: 35.75 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.2843, allocations: 0 / 444.7 MB, free: 35.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2844, allocations: 2.5 kB / 444.7 MB, free: 35.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.001e-06/0.2844, allocations: 0 / 444.7 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.0007837/0.2852, allocations: 0.6283 MB / 445.3 MB, free: 35.23 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.737e-05/0.2852, allocations: 11.88 kB / 445.4 MB, free: 35.23 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.489e-05/0.2853, allocations: 45.81 kB / 445.4 MB, free: 35.21 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003018/0.2856, allocations: 320.6 kB / 445.7 MB, free: 34.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.553e-05/0.2856, allocations: 30.09 kB / 445.7 MB, free: 34.91 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.184e-05/0.2857, allocations: 41.28 kB / 445.8 MB, free: 34.89 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005298/0.2862, allocations: 379.7 kB / 446.2 MB, free: 34.7 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.477e-05/0.2862, allocations: 0 / 446.2 MB, free: 34.7 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.345e-05/0.2863, allocations: 15.78 kB / 446.2 MB, free: 34.69 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.536e-06/0.2863, allocations: 7.062 kB / 446.2 MB, free: 34.69 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004492/0.2867, allocations: 268.1 kB / 446.4 MB, free: 34.6 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001543/0.2883, allocations: 1.316 MB / 447.8 MB, free: 33.69 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005773/0.2889, allocations: 301.6 kB / 448 MB, free: 33.57 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001984/0.2891, allocations: 131.4 kB / 448.2 MB, free: 33.52 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.769e-05/0.2891, allocations: 3.203 kB / 448.2 MB, free: 33.52 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.702e-05/0.2892, allocations: 34.8 kB / 448.2 MB, free: 33.47 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 1.523e-06/0.2892, allocations: 0 / 448.2 MB, free: 33.47 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.0006112/0.2898, allocations: 336.9 kB / 448.5 MB, free: 33.34 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.298e-05/0.2898, allocations: 86.64 kB / 448.6 MB, free: 33.24 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001881/0.29, allocations: 268.3 kB / 448.9 MB, free: 33.09 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.977e-05/0.2901, allocations: 29.7 kB / 448.9 MB, free: 33.05 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.661e-05/0.2901, allocations: 217.9 kB / 449.1 MB, free: 32.87 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.392e-05/0.2902, allocations: 99.06 kB / 449.2 MB, free: 32.79 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.5e-05/0.2902, allocations: 30.03 kB / 449.3 MB, free: 32.77 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.424e-05/0.2903, allocations: 345.8 kB / 449.6 MB, free: 32.44 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001689/0.2905, allocations: 85.77 kB / 449.7 MB, free: 32.41 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001873/0.2907, allocations: 155.4 kB / 449.8 MB, free: 32.31 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003508/0.291, allocations: 245.4 kB / 450.1 MB, free: 32.17 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.291, allocations: 0 / 450.1 MB, free: 32.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0004683/0.2915, allocations: 319.2 kB / 450.4 MB, free: 32.02 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.672e-05/0.2916, allocations: 135.4 kB / 450.5 MB, free: 31.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.092e-06/0.2916, allocations: 2.969 kB / 450.5 MB, free: 31.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.419e-05/0.2916, allocations: 2.969 kB / 450.5 MB, free: 31.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002631/0.2919, allocations: 71.11 kB / 450.6 MB, free: 31.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.498e-06/0.2919, allocations: 6 kB / 450.6 MB, free: 31.87 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001828/0.2921, allocations: 40.8 kB / 450.6 MB, free: 31.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.768e-05/0.2921, allocations: 14.56 kB / 450.6 MB, free: 31.84 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.911e-06/0.2921, allocations: 6 kB / 450.7 MB, free: 31.84 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003081/0.2924, allocations: 220.1 kB / 450.9 MB, free: 31.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.554e-06/0.2924, allocations: 2.938 kB / 450.9 MB, free: 31.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.206e-06/0.2925, allocations: 2.969 kB / 450.9 MB, free: 31.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000221/0.2927, allocations: 66.42 kB / 450.9 MB, free: 31.74 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.867e-06/0.2927, allocations: 2.906 kB / 450.9 MB, free: 31.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001412/0.2928, allocations: 27.42 kB / 451 MB, free: 31.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.443e-05/0.2929, allocations: 19.97 kB / 451 MB, free: 31.71 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.0001307/0.293, allocations: 235.3 kB / 451.2 MB, free: 31.49 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.875e-05/0.293, allocations: 34.16 kB / 451.3 MB, free: 31.47 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004805/0.2935, allocations: 287.2 kB / 451.5 MB, free: 31.34 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.189e-06/0.2935, allocations: 2.219 kB / 451.5 MB, free: 31.34 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.2936, allocations: 0 / 451.5 MB, free: 31.34 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.2936, allocations: 9.359 kB / 451.5 MB, free: 31.33 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003482/0.2939, allocations: 391.3 kB / 451.9 MB, free: 31.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.2939, allocations: 0 / 451.9 MB, free: 31.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002654/0.2942, allocations: 68.34 kB / 452 MB, free: 31.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/0.2942, allocations: 3.188 kB / 452 MB, free: 31.04 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.741e-05/0.2942, allocations: 10.22 kB / 452 MB, free: 31.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.2942, allocations: 2.656 kB / 452 MB, free: 31.03 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.093e-06/0.2943, allocations: 0 / 452 MB, free: 31.03 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006086/0.2949, allocations: 475.9 kB / 452.5 MB, free: 30.77 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.312e-05/0.295, allocations: 126.4 kB / 452.6 MB, free: 30.64 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.482e-05/0.295, allocations: 6.812 kB / 452.6 MB, free: 30.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001864/0.2952, allocations: 20.55 kB / 452.6 MB, free: 30.63 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.682e-05/0.2952, allocations: 20.7 kB / 452.6 MB, free: 30.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.322e-05/0.2953, allocations: 6.094 kB / 452.6 MB, free: 30.62 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001375/0.2954, allocations: 193.8 kB / 452.8 MB, free: 30.51 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.2954, allocations: 2.625 kB / 452.8 MB, free: 30.51 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004412/0.2959, allocations: 148.6 kB / 453 MB, free: 30.46 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 9.142e-05/0.296, allocations: 100.6 kB / 453.1 MB, free: 30.37 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005546/0.2965, allocations: 355.4 kB / 453.4 MB, free: 30.26 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.2965, allocations: 0 / 453.4 MB, free: 30.26 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001751/0.2967, allocations: 110.8 kB / 453.5 MB, free: 30.23 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005394/0.2973, allocations: 77.73 kB / 453.6 MB, free: 30.2 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001163/0.2984, allocations: 1.006 MB / 454.6 MB, free: 29.53 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001804/0.2986, allocations: 0.789 MB / 455.4 MB, free: 28.82 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.504e-05/0.2987, allocations: 25 kB / 455.4 MB, free: 28.82 MB / 350.1 MB Notification: Performance of SimCode: time 3.71e-07/0.2987, allocations: 3.938 kB / 455.4 MB, free: 28.81 MB / 350.1 MB Notification: Performance of Templates: time 0.005391/0.3041, allocations: 3.844 MB / 459.3 MB, free: 28.45 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)