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.005572/0.005572, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.001277/0.001277, allocations: 191.3 kB / 16.67 MB, free: 5.523 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.299/1.299, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08689/0.08689, allocations: 22.33 MB / 312.8 MB, free: 8.898 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001241/0.001241, allocations: 63.91 kB / 437 MB, free: 11.78 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1167/0.1179, allocations: 54.94 MB / 492 MB, free: 4.789 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control): time 0.004349/0.1223, allocations: 3.167 MB / 495.2 MB, free: 1.602 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001399/0.1237, allocations: 0.892 MB / 496 MB, free: 0.7031 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001926/0.1239, allocations: 12 kB / 496.1 MB, free: 0.6914 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002219/0.1242, allocations: 71.23 kB / 496.1 MB, free: 0.6211 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002835/0.1245, allocations: 99.08 kB / 496.2 MB, free: 0.5234 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003825/0.1249, allocations: 195.6 kB / 496.4 MB, free: 340 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004745/0.1253, allocations: 467 kB / 496.9 MB, free: 15.88 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000341/0.1257, allocations: 218.1 kB / 497.1 MB, free: 15.66 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001591/0.1259, allocations: 175.2 kB / 497.3 MB, free: 15.48 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002176/0.1261, allocations: 187.1 kB / 497.4 MB, free: 15.3 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.25e-05/0.1261, allocations: 36 kB / 497.5 MB, free: 15.27 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.402e-05/0.1262, allocations: 40 kB / 497.5 MB, free: 15.23 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.174e-05/0.1263, allocations: 83.7 kB / 497.6 MB, free: 15.14 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001613/0.1264, allocations: 206.9 kB / 497.8 MB, free: 14.94 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004057/0.1269, allocations: 462.3 kB / 498.2 MB, free: 14.49 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.1269, allocations: 0 / 498.2 MB, free: 14.49 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1269, allocations: 0 / 498.2 MB, free: 14.49 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.785e-06/0.1269, allocations: 0 / 498.2 MB, free: 14.49 MB / 382.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.0009665/0.1279, allocations: 0.6978 MB / 498.9 MB, free: 13.74 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.997e-05/0.1279, allocations: 8.031 kB / 499 MB, free: 13.73 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.766e-05/0.128, allocations: 52.31 kB / 499 MB, free: 13.68 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004025/0.1284, allocations: 331.3 kB / 499.3 MB, free: 13.32 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.713e-05/0.1284, allocations: 25.38 kB / 499.3 MB, free: 13.3 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.594e-05/0.1285, allocations: 32.38 kB / 499.4 MB, free: 13.27 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006017/0.1291, allocations: 372.2 kB / 499.7 MB, free: 12.89 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.566e-05/0.1291, allocations: 7.938 kB / 499.8 MB, free: 12.88 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.139e-05/0.1292, allocations: 16 kB / 499.8 MB, free: 12.86 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.027e-06/0.1292, allocations: 8 kB / 499.8 MB, free: 12.86 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004884/0.1297, allocations: 251.9 kB / 0.4883 GB, free: 12.61 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001814/0.1315, allocations: 1.295 MB / 0.4896 GB, free: 11.23 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006267/0.1321, allocations: 287.8 kB / 0.4898 GB, free: 10.94 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002197/0.1324, allocations: 125.3 kB / 0.49 GB, free: 10.82 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.384e-05/0.1324, allocations: 12.16 kB / 0.49 GB, free: 10.8 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.661e-05/0.1324, allocations: 38.72 kB / 0.49 GB, free: 10.76 MB / 382.1 MB Notification: Performance of pre-optimization done (n=27): time 1.412e-06/0.1324, allocations: 0 / 0.49 GB, free: 10.76 MB / 382.1 MB Notification: Performance of matching and sorting (n=27): time 0.0006492/0.1331, allocations: 329.4 kB / 0.4903 GB, free: 10.43 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.561e-05/0.1331, allocations: 81.11 kB / 0.4904 GB, free: 10.34 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002281/0.1334, allocations: 267 kB / 0.4907 GB, free: 10.07 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.773e-05/0.1334, allocations: 29.7 kB / 0.4907 GB, free: 10.04 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001416/0.1336, allocations: 220 kB / 0.4909 GB, free: 9.816 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.242e-05/0.1336, allocations: 94.58 kB / 0.491 GB, free: 9.723 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.042e-05/0.1337, allocations: 61.61 kB / 0.491 GB, free: 9.656 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001877/0.1339, allocations: 334.8 kB / 0.4914 GB, free: 9.32 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001858/0.1341, allocations: 100.7 kB / 0.4915 GB, free: 9.219 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002245/0.1343, allocations: 146.8 kB / 0.4916 GB, free: 9.051 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004005/0.1347, allocations: 250.7 kB / 0.4918 GB, free: 8.785 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.1348, allocations: 0 / 0.4918 GB, free: 8.785 MB / 382.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0004765/0.1352, allocations: 297.1 kB / 0.4921 GB, free: 8.488 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.308e-05/0.1353, allocations: 8 kB / 0.4921 GB, free: 8.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.1353, allocations: 0 / 0.4921 GB, free: 8.48 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.474e-05/0.1353, allocations: 4 kB / 0.4921 GB, free: 8.477 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002812/0.1356, allocations: 75.89 kB / 0.4922 GB, free: 8.402 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.412e-06/0.1356, allocations: 0 / 0.4922 GB, free: 8.402 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001581/0.1358, allocations: 35.88 kB / 0.4922 GB, free: 8.367 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.995e-05/0.1358, allocations: 12 kB / 0.4923 GB, free: 8.355 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002105/0.136, allocations: 180.1 kB / 0.4924 GB, free: 8.176 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001602/0.1362, allocations: 139.7 kB / 0.4926 GB, free: 8.016 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002991/0.1365, allocations: 226.1 kB / 0.4928 GB, free: 7.773 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.142e-06/0.1365, allocations: 0 / 0.4928 GB, free: 7.773 MB / 382.1 MB Notification: Performance of matching and sorting (n=36) (initialization_lambda0): time 0.0003951/0.1369, allocations: 277.1 kB / 0.493 GB, free: 7.496 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.327e-06/0.1369, allocations: 8 kB / 0.493 GB, free: 7.488 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.556e-06/0.1369, allocations: 3.984 kB / 0.493 GB, free: 7.484 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.429e-06/0.1369, allocations: 4 kB / 0.4931 GB, free: 7.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002376/0.1372, allocations: 59.92 kB / 0.4931 GB, free: 7.422 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.469e-06/0.1372, allocations: 3.984 kB / 0.4931 GB, free: 7.418 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001455/0.1373, allocations: 23.75 kB / 0.4931 GB, free: 7.395 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.689e-05/0.1373, allocations: 15.94 kB / 0.4931 GB, free: 7.379 MB / 382.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.0001092/0.1375, allocations: 205.1 kB / 0.4933 GB, free: 7.172 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.189e-05/0.1375, allocations: 31.66 kB / 0.4934 GB, free: 7.141 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005099/0.138, allocations: 273.4 kB / 0.4936 GB, free: 6.859 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.319e-06/0.138, allocations: 4 kB / 0.4936 GB, free: 6.855 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.1381, allocations: 0 / 0.4936 GB, free: 6.855 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.1381, allocations: 3.984 kB / 0.4936 GB, free: 6.852 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000422/0.1385, allocations: 401.1 kB / 0.494 GB, free: 6.41 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.1385, allocations: 0 / 0.494 GB, free: 6.41 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002859/0.1388, allocations: 71.91 kB / 0.4941 GB, free: 6.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.1388, allocations: 0 / 0.4941 GB, free: 6.34 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.967e-05/0.1388, allocations: 8 kB / 0.4941 GB, free: 6.332 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.1388, allocations: 0 / 0.4941 GB, free: 6.332 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.1388, allocations: 0 / 0.4941 GB, free: 6.332 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006887/0.1395, allocations: 471.2 kB / 0.4946 GB, free: 5.855 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001014/0.1396, allocations: 128.7 kB / 0.4947 GB, free: 5.711 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.923e-05/0.1397, allocations: 11.94 kB / 0.4947 GB, free: 5.699 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001792/0.1399, allocations: 11.98 kB / 0.4947 GB, free: 5.688 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.479e-05/0.1399, allocations: 11.98 kB / 0.4947 GB, free: 5.676 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.594e-05/0.14, allocations: 12 kB / 0.4947 GB, free: 5.664 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001547/0.1401, allocations: 186 kB / 0.4949 GB, free: 5.48 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1401, allocations: 0 / 0.4949 GB, free: 5.48 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004373/0.1406, allocations: 147.4 kB / 0.495 GB, free: 5.336 MB / 382.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 9.639e-05/0.1407, allocations: 107.2 kB / 0.4951 GB, free: 5.223 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006069/0.1413, allocations: 348.3 kB / 0.4955 GB, free: 4.883 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.1413, allocations: 0.75 kB / 0.4955 GB, free: 4.883 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000193/0.1415, allocations: 119.8 kB / 0.4956 GB, free: 4.766 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004675/0.142, allocations: 76.09 kB / 0.4957 GB, free: 4.691 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001132/0.1431, allocations: 0.7544 MB / 0.4964 GB, free: 3.91 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003288/0.1434, allocations: 0.7876 MB / 0.4972 GB, free: 3.098 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001488/0.1436, allocations: 38.97 kB / 0.4972 GB, free: 3.062 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.416e-05/0.1437, allocations: 31.42 kB / 0.4972 GB, free: 3.031 MB / 382.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1437, allocations: 0 / 0.4972 GB, free: 3.031 MB / 382.1 MB Notification: Performance of Templates: time 0.2071/0.3508, allocations: 3.142 MB / 0.5003 GB, free: 21.92 MB / 382.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)