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.001492/0.001492, allocations: 101.5 kB / 16.35 MB, free: 5.875 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.001656/0.001656, allocations: 198.3 kB / 17.3 MB, free: 5.516 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.343/1.343, allocations: 222.9 MB / 241 MB, free: 14.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09314/0.09314, allocations: 22.32 MB / 313.5 MB, free: 8.875 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001427/0.001427, allocations: 64.41 kB / 382.2 MB, free: 40.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09721/0.09866, allocations: 54.96 MB / 437.2 MB, free: 12.23 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control): time 0.004751/0.1034, allocations: 3.158 MB / 440.4 MB, free: 9.051 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001818/0.1053, allocations: 0.8881 MB / 441.2 MB, free: 8.156 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003683/0.1057, allocations: 8 kB / 441.3 MB, free: 8.148 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002864/0.1061, allocations: 75.25 kB / 441.3 MB, free: 8.074 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004005/0.1065, allocations: 103 kB / 441.4 MB, free: 7.973 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004547/0.1069, allocations: 187.3 kB / 441.6 MB, free: 7.793 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004568/0.1074, allocations: 482.9 kB / 442.1 MB, free: 7.32 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003385/0.1078, allocations: 214.1 kB / 442.3 MB, free: 7.113 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001509/0.1079, allocations: 159.3 kB / 442.4 MB, free: 6.957 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002057/0.1081, allocations: 183.1 kB / 442.6 MB, free: 6.777 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.561e-05/0.1082, allocations: 39.94 kB / 442.7 MB, free: 6.738 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.491e-05/0.1082, allocations: 40 kB / 442.7 MB, free: 6.699 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.228e-05/0.1083, allocations: 91.62 kB / 442.8 MB, free: 6.609 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001579/0.1085, allocations: 198.9 kB / 443 MB, free: 6.414 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004345/0.1089, allocations: 470.2 kB / 443.4 MB, free: 5.953 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.1089, allocations: 4 kB / 443.5 MB, free: 5.949 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.109, allocations: 0 / 443.5 MB, free: 5.949 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.001e-05/0.109, allocations: 0 / 443.5 MB, free: 5.949 MB / 318.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.0009438/0.1099, allocations: 0.6939 MB / 444.1 MB, free: 5.203 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.251e-05/0.11, allocations: 8.031 kB / 444.2 MB, free: 5.195 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.75e-05/0.11, allocations: 52.36 kB / 444.2 MB, free: 5.145 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004275/0.1105, allocations: 323.3 kB / 444.5 MB, free: 4.789 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.609e-05/0.1105, allocations: 29.36 kB / 444.5 MB, free: 4.762 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.382e-05/0.1106, allocations: 36.38 kB / 444.6 MB, free: 4.727 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005669/0.1111, allocations: 376.2 kB / 445 MB, free: 4.344 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.482e-05/0.1112, allocations: 0 / 445 MB, free: 4.344 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.236e-05/0.1112, allocations: 16 kB / 445 MB, free: 4.328 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.937e-06/0.1112, allocations: 8 kB / 445 MB, free: 4.32 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004787/0.1117, allocations: 247.9 kB / 445.2 MB, free: 4.078 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001723/0.1134, allocations: 1.307 MB / 446.5 MB, free: 2.684 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006298/0.1141, allocations: 287.8 kB / 446.8 MB, free: 2.395 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002344/0.1143, allocations: 129.2 kB / 446.9 MB, free: 2.266 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.977e-05/0.1144, allocations: 240 / 446.9 MB, free: 2.266 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.207e-05/0.1144, allocations: 38.8 kB / 447 MB, free: 2.219 MB / 318.1 MB Notification: Performance of pre-optimization done (n=27): time 1.162e-06/0.1144, allocations: 0 / 447 MB, free: 2.219 MB / 318.1 MB Notification: Performance of matching and sorting (n=27): time 0.00065/0.1151, allocations: 321.5 kB / 447.3 MB, free: 1.902 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.54e-05/0.1151, allocations: 81.11 kB / 447.4 MB, free: 1.805 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002368/0.1154, allocations: 270.9 kB / 447.6 MB, free: 1.531 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.567e-05/0.1154, allocations: 33.64 kB / 447.7 MB, free: 1.492 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001337/0.1155, allocations: 212.1 kB / 447.9 MB, free: 1.281 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.241e-05/0.1156, allocations: 94.64 kB / 448 MB, free: 1.188 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.215e-05/0.1157, allocations: 61.61 kB / 448 MB, free: 1.121 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001262/0.1158, allocations: 342.8 kB / 448.4 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001908/0.116, allocations: 92.75 kB / 448.4 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002125/0.1163, allocations: 146.8 kB / 448.6 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003998/0.1167, allocations: 255.2 kB / 448.8 MB, free: 252 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.1167, allocations: 0 / 448.8 MB, free: 252 kB / 318.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0005189/0.1172, allocations: 301.1 kB / 449.1 MB, free: 15.94 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/0.1172, allocations: 8 kB / 449.1 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.1172, allocations: 4.188 kB / 449.1 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.469e-05/0.1173, allocations: 7.938 kB / 449.2 MB, free: 15.92 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000287/0.1176, allocations: 67.91 kB / 449.2 MB, free: 15.86 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.653e-06/0.1176, allocations: 4 kB / 449.2 MB, free: 15.85 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001621/0.1177, allocations: 31.77 kB / 449.3 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.114e-05/0.1178, allocations: 12 kB / 449.3 MB, free: 15.81 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002272/0.118, allocations: 184 kB / 449.4 MB, free: 15.62 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001851/0.1182, allocations: 139.9 kB / 449.6 MB, free: 15.46 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003063/0.1185, allocations: 222.2 kB / 449.8 MB, free: 15.23 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.353e-06/0.1185, allocations: 0 / 449.8 MB, free: 15.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=36) (initialization_lambda0): time 0.0004086/0.1189, allocations: 277.1 kB / 450.1 MB, free: 14.95 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.035e-06/0.119, allocations: 8 kB / 450.1 MB, free: 14.94 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.964e-06/0.119, allocations: 0 / 450.1 MB, free: 14.94 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.858e-06/0.119, allocations: 4 kB / 450.1 MB, free: 14.94 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002435/0.1192, allocations: 64.09 kB / 450.1 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.811e-06/0.1192, allocations: 7.938 kB / 450.1 MB, free: 14.87 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001443/0.1194, allocations: 27.73 kB / 450.2 MB, free: 14.84 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.765e-05/0.1194, allocations: 12 kB / 450.2 MB, free: 14.83 MB / 334.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.0001154/0.1195, allocations: 200.9 kB / 450.4 MB, free: 14.62 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.334e-05/0.1196, allocations: 31.62 kB / 450.4 MB, free: 14.59 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004965/0.1201, allocations: 268.6 kB / 450.7 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.339e-06/0.1201, allocations: 8 kB / 450.7 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.1201, allocations: 0 / 450.7 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.1201, allocations: 0 / 450.7 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004048/0.1205, allocations: 397.1 kB / 451.1 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.1205, allocations: 7.922 kB / 451.1 MB, free: 13.87 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002819/0.1208, allocations: 59.91 kB / 451.1 MB, free: 13.81 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.1208, allocations: 0 / 451.1 MB, free: 13.81 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.098e-05/0.1209, allocations: 8 kB / 451.1 MB, free: 13.8 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.1209, allocations: 0 / 451.1 MB, free: 13.8 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.1209, allocations: 0 / 451.1 MB, free: 13.8 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006832/0.1216, allocations: 484 kB / 451.6 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001195/0.1217, allocations: 124.7 kB / 451.7 MB, free: 13.18 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.835e-05/0.1217, allocations: 11.98 kB / 451.8 MB, free: 13.16 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001831/0.1219, allocations: 12 kB / 451.8 MB, free: 13.15 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.278e-05/0.122, allocations: 15.97 kB / 451.8 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.678e-05/0.122, allocations: 16 kB / 451.8 MB, free: 13.12 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001809/0.1222, allocations: 190 kB / 452 MB, free: 12.93 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1222, allocations: 0 / 452 MB, free: 12.93 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004539/0.1227, allocations: 147.4 kB / 452.1 MB, free: 12.79 MB / 334.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 0.0001154/0.1228, allocations: 107.2 kB / 452.2 MB, free: 12.68 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006449/0.1234, allocations: 348 kB / 452.6 MB, free: 12.34 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.1235, allocations: 0 / 452.6 MB, free: 12.34 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001991/0.1237, allocations: 119.8 kB / 452.7 MB, free: 12.22 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004621/0.1241, allocations: 73.02 kB / 452.8 MB, free: 12.15 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001276/0.1254, allocations: 0.7506 MB / 453.5 MB, free: 11.38 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003382/0.1258, allocations: 0.7953 MB / 454.3 MB, free: 10.55 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001553/0.126, allocations: 38.95 kB / 454.3 MB, free: 10.51 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.007e-05/0.126, allocations: 23.44 kB / 454.4 MB, free: 10.49 MB / 334.1 MB Notification: Performance of SimCode: time 2.21e-07/0.126, allocations: 0 / 454.4 MB, free: 10.49 MB / 334.1 MB Notification: Performance of Templates: time 0.006797/0.1328, allocations: 3.109 MB / 457.5 MB, free: 7.41 MB / 334.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 -s gbode -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.pipe 2>&1)