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.0008947/0.0008948, allocations: 99.42 kB / 16.02 MB, free: 76 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.0009611/0.0009611, allocations: 185.9 kB / 16.92 MB, free: 6.75 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.267/1.267, allocations: 223.3 MB / 241 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1794/0.1794, allocations: 22.34 MB / 314.4 MB, free: 13.11 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002752/0.0002752, allocations: 8 kB / 383.3 MB, free: 10.15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2222/0.2225, allocations: 55.98 MB / 439.2 MB, free: 39.57 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control): time 0.002362/0.2249, allocations: 2.814 MB / 442.1 MB, free: 37.54 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001198/0.2261, allocations: 0.8592 MB / 442.9 MB, free: 36.92 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002346/0.2264, allocations: 11.16 kB / 442.9 MB, free: 36.92 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001623/0.2266, allocations: 51.58 kB / 443 MB, free: 36.89 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002503/0.2268, allocations: 90.06 kB / 443.1 MB, free: 36.82 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003341/0.2272, allocations: 161.9 kB / 443.2 MB, free: 36.73 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003221/0.2275, allocations: 446 kB / 443.7 MB, free: 36.51 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002551/0.2278, allocations: 185.5 kB / 443.8 MB, free: 36.41 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001046/0.2279, allocations: 132.9 kB / 444 MB, free: 36.35 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001443/0.228, allocations: 149.8 kB / 444.1 MB, free: 36.27 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.619e-05/0.2281, allocations: 14.16 kB / 444.1 MB, free: 36.27 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.631e-05/0.2281, allocations: 14.12 kB / 444.1 MB, free: 36.27 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.907e-05/0.2282, allocations: 61.11 kB / 444.2 MB, free: 36.23 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001016/0.2283, allocations: 188.2 kB / 444.4 MB, free: 36.1 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001993/0.2285, allocations: 336.2 kB / 444.7 MB, free: 36.02 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.2285, allocations: 0 / 444.7 MB, free: 36.02 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.2285, allocations: 3.281 kB / 444.7 MB, free: 36.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.833e-06/0.2285, allocations: 0 / 444.7 MB, free: 36.02 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.000703/0.2292, allocations: 0.6277 MB / 445.3 MB, free: 35.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.072e-05/0.2293, allocations: 17.72 kB / 445.4 MB, free: 35.5 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.609e-05/0.2293, allocations: 44.28 kB / 445.4 MB, free: 35.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002654/0.2296, allocations: 313.1 kB / 445.7 MB, free: 35.2 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.935e-05/0.2296, allocations: 31.08 kB / 445.7 MB, free: 35.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.792e-05/0.2297, allocations: 36.91 kB / 445.8 MB, free: 35.17 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005194/0.2302, allocations: 382.6 kB / 446.2 MB, free: 34.98 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.592e-05/0.2302, allocations: 0 / 446.2 MB, free: 34.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.971e-05/0.2303, allocations: 14.47 kB / 446.2 MB, free: 34.96 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.934e-06/0.2303, allocations: 7.688 kB / 446.2 MB, free: 34.96 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004451/0.2307, allocations: 262.1 kB / 446.4 MB, free: 34.88 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001435/0.2322, allocations: 1.324 MB / 447.8 MB, free: 33.96 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005621/0.2327, allocations: 303.3 kB / 448.1 MB, free: 33.84 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001976/0.233, allocations: 130.5 kB / 448.2 MB, free: 33.79 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.207e-05/0.233, allocations: 7.172 kB / 448.2 MB, free: 33.79 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.232e-05/0.233, allocations: 34.11 kB / 448.2 MB, free: 33.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 1.362e-06/0.233, allocations: 4 kB / 448.2 MB, free: 33.74 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.000602/0.2336, allocations: 334.3 kB / 448.6 MB, free: 33.61 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.643e-05/0.2337, allocations: 82.86 kB / 448.6 MB, free: 33.51 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001826/0.2338, allocations: 272.3 kB / 448.9 MB, free: 33.36 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.783e-05/0.2339, allocations: 28.58 kB / 448.9 MB, free: 33.32 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.925e-05/0.234, allocations: 221.3 kB / 449.1 MB, free: 33.14 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.391e-05/0.234, allocations: 93.58 kB / 449.2 MB, free: 33.07 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.698e-05/0.234, allocations: 33.61 kB / 449.3 MB, free: 33.04 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.434e-05/0.2341, allocations: 341.8 kB / 449.6 MB, free: 32.71 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001707/0.2343, allocations: 86.22 kB / 449.7 MB, free: 32.69 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001855/0.2345, allocations: 154.6 kB / 449.8 MB, free: 32.59 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000353/0.2348, allocations: 247.4 kB / 450.1 MB, free: 32.44 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.2348, allocations: 4 kB / 450.1 MB, free: 32.44 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0004537/0.2353, allocations: 313.1 kB / 450.4 MB, free: 32.3 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.525e-05/0.2353, allocations: 140.8 kB / 450.5 MB, free: 32.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.2354, allocations: 2.844 kB / 450.5 MB, free: 32.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.291e-05/0.2354, allocations: 2.406 kB / 450.5 MB, free: 32.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002869/0.2357, allocations: 78.09 kB / 450.6 MB, free: 32.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.622e-06/0.2357, allocations: 2.844 kB / 450.6 MB, free: 32.13 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001783/0.2359, allocations: 34.88 kB / 450.6 MB, free: 32.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.612e-05/0.2359, allocations: 7.594 kB / 450.6 MB, free: 32.12 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.601e-06/0.2359, allocations: 5.094 kB / 450.7 MB, free: 32.12 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003212/0.2362, allocations: 231.1 kB / 450.9 MB, free: 32.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.285e-06/0.2362, allocations: 0 / 450.9 MB, free: 32.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.267e-06/0.2362, allocations: 3.125 kB / 450.9 MB, free: 32.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002386/0.2365, allocations: 68.23 kB / 450.9 MB, free: 32.01 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.467e-06/0.2365, allocations: 7.188 kB / 451 MB, free: 32.01 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001464/0.2367, allocations: 30.36 kB / 451 MB, free: 31.99 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.463e-05/0.2367, allocations: 8.375 kB / 451 MB, free: 31.99 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.0001144/0.2368, allocations: 237 kB / 451.2 MB, free: 31.77 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.794e-05/0.2368, allocations: 34.81 kB / 451.3 MB, free: 31.75 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004706/0.2373, allocations: 286.6 kB / 451.5 MB, free: 31.61 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.2373, allocations: 2.688 kB / 451.5 MB, free: 31.61 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.2373, allocations: 4 kB / 451.5 MB, free: 31.61 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-06/0.2374, allocations: 7.359 kB / 451.6 MB, free: 31.6 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003161/0.2377, allocations: 392.4 kB / 451.9 MB, free: 31.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.2377, allocations: 0 / 451.9 MB, free: 31.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002751/0.238, allocations: 60.03 kB / 452 MB, free: 31.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.238, allocations: 0 / 452 MB, free: 31.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.677e-05/0.238, allocations: 14.31 kB / 452 MB, free: 31.31 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.664e-06/0.238, allocations: 0 / 452 MB, free: 31.31 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.083e-06/0.238, allocations: 0 / 452 MB, free: 31.31 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005982/0.2386, allocations: 480.2 kB / 452.5 MB, free: 31.04 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.559e-05/0.2387, allocations: 127.5 kB / 452.6 MB, free: 30.91 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.478e-05/0.2387, allocations: 6.531 kB / 452.6 MB, free: 30.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001966/0.2389, allocations: 26.02 kB / 452.6 MB, free: 30.9 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.396e-05/0.239, allocations: 17 kB / 452.7 MB, free: 30.9 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.272e-05/0.239, allocations: 3.844 kB / 452.7 MB, free: 30.9 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001221/0.2391, allocations: 191.8 kB / 452.8 MB, free: 30.79 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2392, allocations: 0 / 452.8 MB, free: 30.79 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004214/0.2396, allocations: 147.9 kB / 453 MB, free: 30.74 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 7.241e-05/0.2397, allocations: 109.3 kB / 453.1 MB, free: 30.64 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000551/0.2402, allocations: 351.2 kB / 453.4 MB, free: 30.53 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.2402, allocations: 6.812 kB / 453.4 MB, free: 30.53 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001749/0.2404, allocations: 111.1 kB / 453.6 MB, free: 30.5 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004795/0.2409, allocations: 73.92 kB / 453.6 MB, free: 30.47 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001018/0.2419, allocations: 1.012 MB / 454.6 MB, free: 29.79 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001486/0.2421, allocations: 0.7896 MB / 455.4 MB, free: 29.09 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.005e-05/0.2422, allocations: 26.69 kB / 455.5 MB, free: 29.08 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2422, allocations: 0 / 455.5 MB, free: 29.08 MB / 350.1 MB Notification: Performance of Templates: time 0.004659/0.2468, allocations: 3.841 MB / 459.3 MB, free: 28.72 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)