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.00719/0.00719, allocations: 101.7 kB / 15.88 MB, free: 5.867 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.001856/0.001856, allocations: 192.9 kB / 16.79 MB, free: 5.809 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.337/1.337, allocations: 222.9 MB / 240.5 MB, free: 4.562 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2024/0.2024, allocations: 22.35 MB / 313 MB, free: 12.66 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00127/0.00127, allocations: 63.91 kB / 380.8 MB, free: 11.1 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2593/0.2606, allocations: 54.94 MB / 435.7 MB, free: 39.8 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control): time 0.004692/0.2654, allocations: 3.198 MB / 438.9 MB, free: 37.56 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001492/0.2669, allocations: 0.8775 MB / 439.8 MB, free: 36.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002222/0.2671, allocations: 13.66 kB / 439.8 MB, free: 36.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002137/0.2674, allocations: 49.95 kB / 439.8 MB, free: 36.9 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002314/0.2676, allocations: 88.02 kB / 439.9 MB, free: 36.84 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003522/0.268, allocations: 174.8 kB / 440.1 MB, free: 36.73 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003242/0.2683, allocations: 448 kB / 440.5 MB, free: 36.51 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002714/0.2686, allocations: 193.8 kB / 440.7 MB, free: 36.41 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001228/0.2687, allocations: 145.4 kB / 440.9 MB, free: 36.34 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001629/0.2689, allocations: 177.8 kB / 441 MB, free: 36.25 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.501e-05/0.2689, allocations: 20.97 kB / 441.1 MB, free: 36.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.229e-05/0.269, allocations: 25.53 kB / 441.1 MB, free: 36.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.002e-05/0.2691, allocations: 76.34 kB / 441.2 MB, free: 36.2 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001295/0.2692, allocations: 182.2 kB / 441.3 MB, free: 36.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002246/0.2694, allocations: 338.7 kB / 441.7 MB, free: 35.97 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.2695, allocations: 0 / 441.7 MB, free: 35.97 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.2695, allocations: 0 / 441.7 MB, free: 35.97 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.744e-06/0.2695, allocations: 0 / 441.7 MB, free: 35.97 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.0008769/0.2704, allocations: 0.6985 MB / 442.4 MB, free: 35.41 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.431e-05/0.2704, allocations: 12.09 kB / 442.4 MB, free: 35.41 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.675e-05/0.2705, allocations: 48.5 kB / 442.4 MB, free: 35.38 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002865/0.2708, allocations: 319.3 kB / 442.7 MB, free: 35.1 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.319e-05/0.2708, allocations: 29.56 kB / 442.8 MB, free: 35.09 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.485e-05/0.2708, allocations: 29.06 kB / 442.8 MB, free: 35.08 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005303/0.2714, allocations: 383.5 kB / 443.2 MB, free: 34.88 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.669e-05/0.2714, allocations: 0 / 443.2 MB, free: 34.88 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.157e-05/0.2714, allocations: 14.84 kB / 443.2 MB, free: 34.87 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.835e-06/0.2715, allocations: 8.344 kB / 443.2 MB, free: 34.87 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004342/0.2719, allocations: 252.7 kB / 443.4 MB, free: 34.79 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001513/0.2734, allocations: 1.306 MB / 444.7 MB, free: 33.88 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005741/0.274, allocations: 289 kB / 445 MB, free: 33.76 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000194/0.2742, allocations: 122.6 kB / 445.1 MB, free: 33.71 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.051e-05/0.2743, allocations: 7.234 kB / 445.1 MB, free: 33.7 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.721e-05/0.2743, allocations: 33.77 kB / 445.2 MB, free: 33.66 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 1.363e-06/0.2743, allocations: 0 / 445.2 MB, free: 33.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.0006101/0.2749, allocations: 323.1 kB / 445.5 MB, free: 33.53 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.562e-05/0.2749, allocations: 86.89 kB / 445.6 MB, free: 33.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001977/0.2751, allocations: 270.1 kB / 445.8 MB, free: 33.28 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.919e-05/0.2752, allocations: 36.33 kB / 445.9 MB, free: 33.24 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.644e-05/0.2753, allocations: 215.7 kB / 446.1 MB, free: 33.06 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.909e-05/0.2753, allocations: 93.34 kB / 446.2 MB, free: 32.99 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.541e-05/0.2754, allocations: 57.12 kB / 446.2 MB, free: 32.95 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.744e-05/0.2755, allocations: 338.3 kB / 446.6 MB, free: 32.62 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001748/0.2757, allocations: 94.91 kB / 446.7 MB, free: 32.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001869/0.2758, allocations: 143.6 kB / 446.8 MB, free: 32.49 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003738/0.2762, allocations: 245.6 kB / 447 MB, free: 32.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.2762, allocations: 3.875 kB / 447 MB, free: 32.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0004466/0.2767, allocations: 302.6 kB / 447.3 MB, free: 32.2 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.741e-05/0.2767, allocations: 5.312 kB / 447.3 MB, free: 32.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.2767, allocations: 2.781 kB / 447.3 MB, free: 32.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.573e-05/0.2767, allocations: 3.438 kB / 447.4 MB, free: 32.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002792/0.277, allocations: 71.66 kB / 447.4 MB, free: 32.19 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.427e-06/0.2771, allocations: 6.781 kB / 447.4 MB, free: 32.19 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001774/0.2772, allocations: 35.36 kB / 447.5 MB, free: 32.17 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.884e-05/0.2773, allocations: 13.06 kB / 447.5 MB, free: 32.16 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001993/0.2775, allocations: 191.3 kB / 447.7 MB, free: 32.03 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001462/0.2776, allocations: 139.2 kB / 447.8 MB, free: 31.93 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000268/0.2779, allocations: 221.6 kB / 448 MB, free: 31.79 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.172e-06/0.2779, allocations: 0 / 448 MB, free: 31.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization_lambda0): time 0.0003676/0.2783, allocations: 282.2 kB / 448.3 MB, free: 31.65 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.903e-06/0.2783, allocations: 9.594 kB / 448.3 MB, free: 31.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.853e-06/0.2783, allocations: 0 / 448.3 MB, free: 31.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.126e-06/0.2783, allocations: 2.75 kB / 448.3 MB, free: 31.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002397/0.2786, allocations: 62.39 kB / 448.4 MB, free: 31.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.3e-06/0.2786, allocations: 11.27 kB / 448.4 MB, free: 31.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001572/0.2787, allocations: 24.72 kB / 448.4 MB, free: 31.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.579e-05/0.2788, allocations: 13.09 kB / 448.4 MB, free: 31.62 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 9.382e-05/0.2789, allocations: 208.8 kB / 448.6 MB, free: 31.41 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.951e-05/0.2789, allocations: 33.86 kB / 448.6 MB, free: 31.39 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004664/0.2794, allocations: 273.9 kB / 448.9 MB, free: 31.26 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/0.2794, allocations: 3.125 kB / 448.9 MB, free: 31.26 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.259e-06/0.2794, allocations: 0 / 448.9 MB, free: 31.26 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.07e-06/0.2794, allocations: 3.281 kB / 448.9 MB, free: 31.26 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004041/0.2798, allocations: 399.2 kB / 449.3 MB, free: 30.97 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.2798, allocations: 0 / 449.3 MB, free: 30.97 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003001/0.2801, allocations: 66.64 kB / 449.4 MB, free: 30.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-06/0.2802, allocations: 0 / 449.4 MB, free: 30.96 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.793e-05/0.2802, allocations: 4 kB / 449.4 MB, free: 30.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.945e-06/0.2802, allocations: 2.625 kB / 449.4 MB, free: 30.96 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.2802, allocations: 3.938 kB / 449.4 MB, free: 30.96 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005993/0.2808, allocations: 470.3 kB / 449.8 MB, free: 30.69 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.168e-05/0.2809, allocations: 124.9 kB / 450 MB, free: 30.57 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.914e-05/0.2809, allocations: 7.594 kB / 450 MB, free: 30.56 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001909/0.2811, allocations: 20.83 kB / 450 MB, free: 30.55 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.353e-05/0.2812, allocations: 12.73 kB / 450 MB, free: 30.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.4e-05/0.2812, allocations: 9.594 kB / 450 MB, free: 30.55 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001286/0.2813, allocations: 185.7 kB / 450.2 MB, free: 30.44 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.11e-07/0.2813, allocations: 7 kB / 450.2 MB, free: 30.44 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004376/0.2818, allocations: 158.2 kB / 450.4 MB, free: 30.38 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.146e-05/0.2819, allocations: 104.6 kB / 450.5 MB, free: 30.29 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005643/0.2824, allocations: 345.7 kB / 450.8 MB, free: 30.18 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2825, allocations: 4.688 kB / 450.8 MB, free: 30.17 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001722/0.2826, allocations: 116.9 kB / 450.9 MB, free: 30.13 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005294/0.2832, allocations: 69.22 kB / 451 MB, free: 30.11 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001141/0.2843, allocations: 0.9344 MB / 451.9 MB, free: 29.46 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001662/0.2845, allocations: 0.789 MB / 452.7 MB, free: 28.76 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.297e-05/0.2846, allocations: 25.41 kB / 452.7 MB, free: 28.75 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.2846, allocations: 4 kB / 452.7 MB, free: 28.75 MB / 350.1 MB Notification: Performance of Templates: time 0.005796/0.2904, allocations: 3.884 MB / 456.6 MB, free: 28.34 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)