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.001065/0.001066, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001274/0.001274, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.546/1.546, allocations: 223.3 MB / 240 MB, free: 5.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2379/0.2379, allocations: 22.34 MB / 313.4 MB, free: 13.11 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004297/0.0004298, allocations: 15.98 kB / 381.9 MB, free: 10.54 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.389/0.3895, allocations: 55.97 MB / 437.9 MB, free: 39.07 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control): time 0.002921/0.3925, allocations: 2.697 MB / 440.6 MB, free: 37.14 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001442/0.394, allocations: 0.8349 MB / 441.4 MB, free: 36.55 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002351/0.3942, allocations: 12.66 kB / 441.5 MB, free: 36.54 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002099/0.3944, allocations: 49.42 kB / 441.5 MB, free: 36.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002727/0.3947, allocations: 87.77 kB / 441.6 MB, free: 36.45 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004191/0.3951, allocations: 140.5 kB / 441.7 MB, free: 36.38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004563/0.3956, allocations: 422.2 kB / 442.1 MB, free: 36.17 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003678/0.396, allocations: 152.6 kB / 442.3 MB, free: 36.11 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001554/0.3961, allocations: 125.5 kB / 442.4 MB, free: 36.05 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002264/0.3964, allocations: 139.7 kB / 442.6 MB, free: 35.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.999e-05/0.3964, allocations: 18.88 kB / 442.6 MB, free: 35.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.711e-05/0.3965, allocations: 14.03 kB / 442.6 MB, free: 35.98 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.311e-05/0.3966, allocations: 52.42 kB / 442.6 MB, free: 35.95 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.094e-05/0.3966, allocations: 92.8 kB / 442.7 MB, free: 35.88 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003863/0.397, allocations: 327.6 kB / 443 MB, free: 35.8 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.438e-06/0.397, allocations: 0 / 443 MB, free: 35.8 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.3971, allocations: 0 / 443 MB, free: 35.8 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.788e-06/0.3971, allocations: 2.562 kB / 443 MB, free: 35.8 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.001006/0.3981, allocations: 0.631 MB / 443.7 MB, free: 35.29 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.263e-05/0.3982, allocations: 15.22 kB / 443.7 MB, free: 35.28 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.825e-05/0.3983, allocations: 41.47 kB / 443.7 MB, free: 35.26 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004205/0.3987, allocations: 310.1 kB / 444 MB, free: 34.99 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.074e-05/0.3987, allocations: 32.28 kB / 444.1 MB, free: 34.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.001e-05/0.3988, allocations: 38.23 kB / 444.1 MB, free: 34.96 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006179/0.3994, allocations: 364.4 kB / 444.5 MB, free: 34.77 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.123e-05/0.3995, allocations: 3.953 kB / 444.5 MB, free: 34.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.765e-05/0.3995, allocations: 17.66 kB / 444.5 MB, free: 34.76 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.359e-05/0.3995, allocations: 12.59 kB / 444.5 MB, free: 34.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004573/0.4, allocations: 259 kB / 444.7 MB, free: 34.67 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001659/0.4017, allocations: 1.317 MB / 446.1 MB, free: 33.75 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005806/0.4023, allocations: 303.9 kB / 446.4 MB, free: 33.63 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001941/0.4025, allocations: 124.5 kB / 446.5 MB, free: 33.58 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.274e-05/0.4025, allocations: 6.531 kB / 446.5 MB, free: 33.58 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.681e-05/0.4025, allocations: 37.67 kB / 446.5 MB, free: 33.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 1.433e-06/0.4025, allocations: 0 / 446.5 MB, free: 33.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.0006103/0.4031, allocations: 341.7 kB / 446.9 MB, free: 33.39 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.508e-05/0.4032, allocations: 79.92 kB / 446.9 MB, free: 33.3 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000206/0.4034, allocations: 267.3 kB / 447.2 MB, free: 33.14 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.959e-05/0.4034, allocations: 32.45 kB / 447.2 MB, free: 33.11 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001019/0.4035, allocations: 217.1 kB / 447.4 MB, free: 32.93 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.33e-05/0.4036, allocations: 98.89 kB / 447.5 MB, free: 32.85 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.366e-05/0.4036, allocations: 6.781 kB / 447.5 MB, free: 32.85 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.843e-05/0.4037, allocations: 340.5 kB / 447.9 MB, free: 32.52 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001597/0.4039, allocations: 82.81 kB / 448 MB, free: 32.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001853/0.4041, allocations: 153.4 kB / 448.1 MB, free: 32.39 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001926/0.4043, allocations: 107.8 kB / 448.2 MB, free: 32.35 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.4043, allocations: 0 / 448.2 MB, free: 32.35 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0004582/0.4047, allocations: 305.6 kB / 448.5 MB, free: 32.21 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.991e-05/0.4048, allocations: 134.5 kB / 448.6 MB, free: 32.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.4048, allocations: 2.969 kB / 448.6 MB, free: 32.06 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.711e-05/0.4049, allocations: 13.94 kB / 448.7 MB, free: 32.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002816/0.4051, allocations: 65.81 kB / 448.7 MB, free: 32.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.628e-06/0.4052, allocations: 2.938 kB / 448.7 MB, free: 32.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001701/0.4053, allocations: 30.8 kB / 448.8 MB, free: 32.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.21e-05/0.4054, allocations: 17.47 kB / 448.8 MB, free: 32.03 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.523e-06/0.4054, allocations: 3.25 kB / 448.8 MB, free: 32.03 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003283/0.4057, allocations: 233.5 kB / 449 MB, free: 31.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.034e-06/0.4057, allocations: 0 / 449 MB, free: 31.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.538e-06/0.4057, allocations: 2.906 kB / 449 MB, free: 31.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002253/0.406, allocations: 65.66 kB / 449.1 MB, free: 31.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.129e-06/0.406, allocations: 2.969 kB / 449.1 MB, free: 31.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001333/0.4061, allocations: 38.86 kB / 449.1 MB, free: 31.9 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.563e-05/0.4062, allocations: 10.25 kB / 449.1 MB, free: 31.9 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001483/0.4063, allocations: 232.3 kB / 449.4 MB, free: 31.68 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.829e-05/0.4064, allocations: 30.16 kB / 449.4 MB, free: 31.66 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004741/0.4068, allocations: 283.8 kB / 449.7 MB, free: 31.53 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.083e-06/0.4069, allocations: 6.719 kB / 449.7 MB, free: 31.53 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.4069, allocations: 6.5 kB / 449.7 MB, free: 31.52 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.049e-06/0.4069, allocations: 3.281 kB / 449.7 MB, free: 31.52 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003773/0.4073, allocations: 392.7 kB / 450.1 MB, free: 31.24 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.4073, allocations: 0 / 450.1 MB, free: 31.24 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000263/0.4075, allocations: 66.31 kB / 450.1 MB, free: 31.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.4075, allocations: 0 / 450.1 MB, free: 31.23 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.082e-05/0.4076, allocations: 6.594 kB / 450.1 MB, free: 31.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.4076, allocations: 0 / 450.1 MB, free: 31.23 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.4076, allocations: 4 kB / 450.1 MB, free: 31.23 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000623/0.4082, allocations: 482.3 kB / 450.6 MB, free: 30.96 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.898e-05/0.4083, allocations: 131.6 kB / 450.7 MB, free: 30.83 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.763e-05/0.4084, allocations: 4 kB / 450.7 MB, free: 30.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001705/0.4085, allocations: 21.12 kB / 450.8 MB, free: 30.82 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.21e-05/0.4086, allocations: 14.36 kB / 450.8 MB, free: 30.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.386e-05/0.4086, allocations: 6.719 kB / 450.8 MB, free: 30.82 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001408/0.4088, allocations: 190 kB / 451 MB, free: 30.7 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4088, allocations: 2.75 kB / 451 MB, free: 30.7 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004687/0.4093, allocations: 152.6 kB / 451.1 MB, free: 30.66 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001029/0.4094, allocations: 102.6 kB / 451.2 MB, free: 30.56 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005798/0.4099, allocations: 350.3 kB / 451.6 MB, free: 30.45 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.41, allocations: 0 / 451.6 MB, free: 30.45 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001761/0.4101, allocations: 115.4 kB / 451.7 MB, free: 30.41 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005196/0.4107, allocations: 59.16 kB / 451.7 MB, free: 30.39 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001236/0.4119, allocations: 0.9433 MB / 452.7 MB, free: 29.79 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002269/0.4122, allocations: 0.7895 MB / 453.5 MB, free: 29.09 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001806/0.4123, allocations: 37.48 kB / 453.5 MB, free: 29.08 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.618e-05/0.4124, allocations: 25.08 kB / 453.5 MB, free: 29.07 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.4124, allocations: 4 kB / 453.5 MB, free: 29.07 MB / 350.1 MB Notification: Performance of Templates: time 0.006248/0.4187, allocations: 2.852 MB / 456.4 MB, free: 28.85 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)