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.001125/0.001125, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001267/0.001267, allocations: 190.9 kB / 16.13 MB, free: 6.645 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.318/1.318, allocations: 222.9 MB / 239.8 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2103/0.2103, allocations: 22.36 MB / 312.3 MB, free: 12.72 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001229/0.001229, allocations: 59.91 kB / 380.1 MB, free: 11.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.268/0.2692, allocations: 54.95 MB / 435 MB, free: 39.39 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control): time 0.004162/0.2734, allocations: 3.207 MB / 438.2 MB, free: 37.15 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001602/0.275, allocations: 0.8722 MB / 439.1 MB, free: 36.53 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004446/0.2755, allocations: 16.06 kB / 439.1 MB, free: 36.52 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003035/0.2758, allocations: 44.42 kB / 439.2 MB, free: 36.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004062/0.2763, allocations: 84.03 kB / 439.3 MB, free: 36.44 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004493/0.2767, allocations: 176.4 kB / 439.4 MB, free: 36.33 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004966/0.2772, allocations: 437.9 kB / 439.9 MB, free: 36.11 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003709/0.2776, allocations: 199.2 kB / 440.1 MB, free: 36.02 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002526/0.2779, allocations: 148.4 kB / 440.2 MB, free: 35.94 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002955/0.2782, allocations: 174.1 kB / 440.4 MB, free: 35.85 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.814e-05/0.2783, allocations: 22.34 kB / 440.4 MB, free: 35.85 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.179e-05/0.2783, allocations: 23.84 kB / 440.4 MB, free: 35.85 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.531e-05/0.2784, allocations: 77.23 kB / 440.5 MB, free: 35.8 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001472/0.2785, allocations: 188.7 kB / 440.7 MB, free: 35.68 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003038/0.2789, allocations: 426.5 kB / 441.1 MB, free: 35.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.2789, allocations: 2.719 kB / 441.1 MB, free: 35.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.51e-07/0.2789, allocations: 0 / 441.1 MB, free: 35.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.482e-06/0.2789, allocations: 0 / 441.1 MB, free: 35.5 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.0009049/0.2798, allocations: 0.6969 MB / 441.8 MB, free: 34.95 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.842e-05/0.2798, allocations: 13.62 kB / 441.8 MB, free: 34.95 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.708e-05/0.2799, allocations: 49.44 kB / 441.9 MB, free: 34.92 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003042/0.2802, allocations: 319.8 kB / 442.2 MB, free: 34.64 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.319e-05/0.2803, allocations: 20.97 kB / 442.2 MB, free: 34.63 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.761e-05/0.2803, allocations: 39.81 kB / 442.2 MB, free: 34.61 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005188/0.2808, allocations: 382.1 kB / 442.6 MB, free: 34.42 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.434e-05/0.2809, allocations: 0 / 442.6 MB, free: 34.42 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.187e-05/0.2809, allocations: 14.97 kB / 442.6 MB, free: 34.41 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.586e-06/0.2809, allocations: 8.469 kB / 442.6 MB, free: 34.41 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000437/0.2814, allocations: 253.8 kB / 442.9 MB, free: 34.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001544/0.2829, allocations: 1.303 MB / 444.2 MB, free: 33.41 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000583/0.2835, allocations: 286.4 kB / 444.5 MB, free: 33.29 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002016/0.2837, allocations: 130.1 kB / 444.6 MB, free: 33.24 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.878e-05/0.2838, allocations: 3.141 kB / 444.6 MB, free: 33.24 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.142e-05/0.2838, allocations: 34.8 kB / 444.6 MB, free: 33.2 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 1.553e-06/0.2838, allocations: 0 / 444.6 MB, free: 33.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.0006589/0.2845, allocations: 324.5 kB / 444.9 MB, free: 33.06 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.616e-05/0.2845, allocations: 86.3 kB / 445 MB, free: 32.96 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000205/0.2847, allocations: 264.7 kB / 445.3 MB, free: 32.81 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.907e-05/0.2847, allocations: 32.14 kB / 445.3 MB, free: 32.78 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.757e-05/0.2848, allocations: 219.1 kB / 445.5 MB, free: 32.6 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.219e-05/0.2849, allocations: 96.59 kB / 445.6 MB, free: 32.52 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.69e-05/0.285, allocations: 60.73 kB / 445.7 MB, free: 32.48 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.713e-05/0.2851, allocations: 339.5 kB / 446 MB, free: 32.16 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001678/0.2852, allocations: 93.81 kB / 446.1 MB, free: 32.12 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001775/0.2854, allocations: 145.3 kB / 446.2 MB, free: 32.02 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003317/0.2858, allocations: 233.9 kB / 446.5 MB, free: 31.88 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.327e-06/0.2858, allocations: 3.281 kB / 446.5 MB, free: 31.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0004295/0.2862, allocations: 309.8 kB / 446.8 MB, free: 31.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.647e-05/0.2862, allocations: 5.844 kB / 446.8 MB, free: 31.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.2862, allocations: 2.969 kB / 446.8 MB, free: 31.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.672e-05/0.2863, allocations: 7.141 kB / 446.8 MB, free: 31.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002676/0.2865, allocations: 72.56 kB / 446.9 MB, free: 31.72 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.056e-06/0.2866, allocations: 6.156 kB / 446.9 MB, free: 31.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001811/0.2867, allocations: 38.67 kB / 446.9 MB, free: 31.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.77e-05/0.2868, allocations: 8.5 kB / 446.9 MB, free: 31.7 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001959/0.287, allocations: 187.8 kB / 447.1 MB, free: 31.56 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00014/0.2871, allocations: 142.5 kB / 447.2 MB, free: 31.46 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002584/0.2874, allocations: 216.1 kB / 447.4 MB, free: 31.32 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.523e-06/0.2874, allocations: 0 / 447.4 MB, free: 31.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization_lambda0): time 0.0003601/0.2877, allocations: 284 kB / 447.7 MB, free: 31.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.464e-06/0.2878, allocations: 9.562 kB / 447.7 MB, free: 31.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.246e-06/0.2878, allocations: 2.031 kB / 447.7 MB, free: 31.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.238e-06/0.2878, allocations: 7.844 kB / 447.7 MB, free: 31.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002285/0.288, allocations: 63.84 kB / 447.8 MB, free: 31.17 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.577e-06/0.288, allocations: 3.719 kB / 447.8 MB, free: 31.17 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000165/0.2882, allocations: 28.73 kB / 447.8 MB, free: 31.15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.599e-05/0.2882, allocations: 16.78 kB / 447.9 MB, free: 31.14 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.314e-05/0.2883, allocations: 201.1 kB / 448 MB, free: 30.95 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.133e-05/0.2884, allocations: 26.94 kB / 448.1 MB, free: 30.93 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004508/0.2888, allocations: 271.6 kB / 448.3 MB, free: 30.8 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.979e-06/0.2888, allocations: 2.5 kB / 448.3 MB, free: 30.8 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.652e-06/0.2889, allocations: 0 / 448.3 MB, free: 30.8 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.2889, allocations: 3.281 kB / 448.3 MB, free: 30.8 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003581/0.2892, allocations: 410.7 kB / 448.7 MB, free: 30.51 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.2892, allocations: 0 / 448.7 MB, free: 30.51 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002645/0.2895, allocations: 63.45 kB / 448.8 MB, free: 30.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.2895, allocations: 0 / 448.8 MB, free: 30.5 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.939e-05/0.2895, allocations: 4 kB / 448.8 MB, free: 30.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.036e-06/0.2895, allocations: 3.531 kB / 448.8 MB, free: 30.5 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.2896, allocations: 3.234 kB / 448.8 MB, free: 30.5 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000601/0.2902, allocations: 470.6 kB / 449.3 MB, free: 30.22 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.55e-05/0.2903, allocations: 126.3 kB / 449.4 MB, free: 30.1 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.853e-05/0.2903, allocations: 6.625 kB / 449.4 MB, free: 30.1 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001861/0.2905, allocations: 15.02 kB / 449.4 MB, free: 30.09 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.163e-05/0.2905, allocations: 19.69 kB / 449.4 MB, free: 30.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.247e-05/0.2906, allocations: 3.906 kB / 449.4 MB, free: 30.09 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001268/0.2907, allocations: 196.6 kB / 449.6 MB, free: 29.97 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.2907, allocations: 0 / 449.6 MB, free: 29.97 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004353/0.2911, allocations: 147.9 kB / 449.8 MB, free: 29.93 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.584e-05/0.2912, allocations: 102.9 kB / 449.9 MB, free: 29.83 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005679/0.2918, allocations: 349.1 kB / 450.2 MB, free: 29.72 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.2918, allocations: 4 kB / 450.2 MB, free: 29.71 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001763/0.292, allocations: 118.8 kB / 450.3 MB, free: 29.68 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005456/0.2926, allocations: 70.02 kB / 450.4 MB, free: 29.65 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001186/0.2937, allocations: 0.9095 MB / 451.3 MB, free: 29.03 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001869/0.2939, allocations: 0.7968 MB / 452.1 MB, free: 28.32 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001883/0.2941, allocations: 32.06 kB / 452.2 MB, free: 28.31 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.666e-05/0.2942, allocations: 23.47 kB / 452.2 MB, free: 28.3 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2942, allocations: 0 / 452.2 MB, free: 28.3 MB / 350.1 MB Notification: Performance of Templates: time 0.006132/0.3004, allocations: 2.967 MB / 455.1 MB, free: 28.09 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)