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.001304/0.001304, allocations: 105.3 kB / 16.41 MB, free: 6.461 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.001341/0.001341, allocations: 189.7 kB / 17.34 MB, free: 5.719 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.327/1.327, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09141/0.09141, allocations: 22.32 MB / 313.5 MB, free: 8.863 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001286, allocations: 63.91 kB / 437.7 MB, free: 11.75 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.1118, allocations: 54.95 MB / 492.7 MB, free: 4.754 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control): time 0.004627/0.1164, allocations: 3.169 MB / 495.8 MB, free: 1.562 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001938/0.1184, allocations: 0.8882 MB / 496.7 MB, free: 0.668 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004171/0.1189, allocations: 15.94 kB / 496.7 MB, free: 0.6523 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003226/0.1192, allocations: 67.3 kB / 496.8 MB, free: 0.5859 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004264/0.1197, allocations: 103 kB / 496.9 MB, free: 496 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005128/0.1202, allocations: 190.3 kB / 497.1 MB, free: 308 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006412/0.1208, allocations: 474.9 kB / 497.5 MB, free: 15.84 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003953/0.1212, allocations: 222.1 kB / 497.8 MB, free: 15.61 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002479/0.1215, allocations: 171.3 kB / 497.9 MB, free: 15.45 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002514/0.1218, allocations: 183 kB / 498.1 MB, free: 15.27 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.028e-05/0.1218, allocations: 36 kB / 498.1 MB, free: 15.23 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.58e-05/0.1219, allocations: 40 kB / 498.2 MB, free: 15.19 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.321e-05/0.122, allocations: 87.7 kB / 498.3 MB, free: 15.11 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001897/0.1222, allocations: 202.9 kB / 498.5 MB, free: 14.91 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004767/0.1227, allocations: 458.3 kB / 498.9 MB, free: 14.46 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.299e-06/0.1227, allocations: 0 / 498.9 MB, free: 14.46 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.002e-06/0.1227, allocations: 0 / 498.9 MB, free: 14.46 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.189e-05/0.1227, allocations: 0 / 498.9 MB, free: 14.46 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.001096/0.1238, allocations: 0.7017 MB / 499.6 MB, free: 13.71 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.028e-05/0.1239, allocations: 8.031 kB / 499.6 MB, free: 13.7 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.683e-05/0.124, allocations: 52.38 kB / 499.7 MB, free: 13.65 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004979/0.1245, allocations: 327.3 kB / 500 MB, free: 13.29 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.7e-05/0.1245, allocations: 25.38 kB / 0.4883 GB, free: 13.27 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.042e-05/0.1246, allocations: 36.38 kB / 0.4883 GB, free: 13.23 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006653/0.1252, allocations: 380.2 kB / 0.4887 GB, free: 12.84 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.634e-05/0.1253, allocations: 0 / 0.4887 GB, free: 12.84 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.27e-05/0.1253, allocations: 12 kB / 0.4887 GB, free: 12.83 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.048e-05/0.1253, allocations: 8 kB / 0.4887 GB, free: 12.82 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004899/0.1258, allocations: 251.8 kB / 0.489 GB, free: 12.58 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001872/0.1277, allocations: 1.295 MB / 0.4902 GB, free: 11.2 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006864/0.1284, allocations: 294.4 kB / 0.4905 GB, free: 10.91 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002154/0.1286, allocations: 125.2 kB / 0.4906 GB, free: 10.78 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.206e-05/0.1287, allocations: 12.2 kB / 0.4906 GB, free: 10.77 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.644e-05/0.1287, allocations: 42.73 kB / 0.4907 GB, free: 10.72 MB / 382.1 MB Notification: Performance of pre-optimization done (n=27): time 1.553e-06/0.1287, allocations: 0 / 0.4907 GB, free: 10.72 MB / 382.1 MB Notification: Performance of matching and sorting (n=27): time 0.0007052/0.1294, allocations: 325.4 kB / 0.491 GB, free: 10.4 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.363e-05/0.1295, allocations: 89.09 kB / 0.4911 GB, free: 10.29 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002466/0.1297, allocations: 259 kB / 0.4913 GB, free: 10.04 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.578e-05/0.1298, allocations: 29.7 kB / 0.4913 GB, free: 10 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001342/0.1299, allocations: 224 kB / 0.4916 GB, free: 9.777 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.16e-05/0.13, allocations: 90.64 kB / 0.4916 GB, free: 9.688 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.389e-05/0.1301, allocations: 61.61 kB / 0.4917 GB, free: 9.621 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001128/0.1302, allocations: 338.8 kB / 0.492 GB, free: 9.281 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001882/0.1304, allocations: 92.67 kB / 0.4921 GB, free: 9.188 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002154/0.1306, allocations: 146.8 kB / 0.4923 GB, free: 9.02 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003937/0.131, allocations: 254.6 kB / 0.4925 GB, free: 8.75 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.131, allocations: 0 / 0.4925 GB, free: 8.75 MB / 382.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0005055/0.1316, allocations: 297.2 kB / 0.4928 GB, free: 8.453 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.682e-05/0.1316, allocations: 8 kB / 0.4928 GB, free: 8.445 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.1316, allocations: 0 / 0.4928 GB, free: 8.445 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.773e-05/0.1316, allocations: 4 kB / 0.4928 GB, free: 8.441 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00028/0.1319, allocations: 72.09 kB / 0.4929 GB, free: 8.371 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.987e-06/0.1319, allocations: 3.984 kB / 0.4929 GB, free: 8.367 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001727/0.1321, allocations: 35.69 kB / 0.4929 GB, free: 8.332 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.959e-05/0.1321, allocations: 8 kB / 0.4929 GB, free: 8.324 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002165/0.1323, allocations: 180.1 kB / 0.4931 GB, free: 8.145 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000171/0.1325, allocations: 147.7 kB / 0.4932 GB, free: 7.977 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002984/0.1328, allocations: 218.2 kB / 0.4934 GB, free: 7.742 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.753e-06/0.1328, allocations: 0 / 0.4934 GB, free: 7.742 MB / 382.1 MB Notification: Performance of matching and sorting (n=36) (initialization_lambda0): time 0.0004336/0.1333, allocations: 281 kB / 0.4937 GB, free: 7.461 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.709e-05/0.1333, allocations: 8 kB / 0.4937 GB, free: 7.453 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.535e-06/0.1333, allocations: 0 / 0.4937 GB, free: 7.453 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.861e-06/0.1333, allocations: 4 kB / 0.4937 GB, free: 7.449 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002448/0.1336, allocations: 67.91 kB / 0.4938 GB, free: 7.383 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.919e-06/0.1336, allocations: 3.984 kB / 0.4938 GB, free: 7.379 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001479/0.1337, allocations: 23.94 kB / 0.4938 GB, free: 7.355 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.726e-05/0.1338, allocations: 12 kB / 0.4938 GB, free: 7.344 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.0001231/0.1339, allocations: 204.9 kB / 0.494 GB, free: 7.137 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.381e-05/0.134, allocations: 27.72 kB / 0.494 GB, free: 7.109 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005222/0.1345, allocations: 281.3 kB / 0.4943 GB, free: 6.82 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/0.1345, allocations: 4 kB / 0.4943 GB, free: 6.816 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.1345, allocations: 0 / 0.4943 GB, free: 6.816 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.081e-06/0.1345, allocations: 3.984 kB / 0.4943 GB, free: 6.812 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004269/0.135, allocations: 409 kB / 0.4947 GB, free: 6.363 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.135, allocations: 0 / 0.4947 GB, free: 6.363 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002797/0.1352, allocations: 59.97 kB / 0.4948 GB, free: 6.305 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.998e-06/0.1353, allocations: 0 / 0.4948 GB, free: 6.305 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.024e-05/0.1353, allocations: 4 kB / 0.4948 GB, free: 6.301 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.779e-06/0.1353, allocations: 3.938 kB / 0.4948 GB, free: 6.297 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.693e-06/0.1353, allocations: 3.984 kB / 0.4948 GB, free: 6.293 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006774/0.136, allocations: 475.2 kB / 0.4952 GB, free: 5.812 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001163/0.1361, allocations: 120.8 kB / 0.4953 GB, free: 5.676 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.696e-05/0.1362, allocations: 8 kB / 0.4953 GB, free: 5.668 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000176/0.1363, allocations: 11.98 kB / 0.4954 GB, free: 5.656 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.217e-05/0.1364, allocations: 15.98 kB / 0.4954 GB, free: 5.641 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.815e-05/0.1364, allocations: 12 kB / 0.4954 GB, free: 5.629 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001634/0.1366, allocations: 190 kB / 0.4956 GB, free: 5.441 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1366, allocations: 4 kB / 0.4956 GB, free: 5.438 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004837/0.1371, allocations: 143.4 kB / 0.4957 GB, free: 5.297 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 0.000115/0.1372, allocations: 107.2 kB / 0.4958 GB, free: 5.184 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006446/0.1379, allocations: 353.1 kB / 0.4961 GB, free: 4.84 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.1379, allocations: 4 kB / 0.4961 GB, free: 4.836 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001889/0.1381, allocations: 111.9 kB / 0.4963 GB, free: 4.727 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004729/0.1386, allocations: 69.48 kB / 0.4963 GB, free: 4.66 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001285/0.1398, allocations: 0.7834 MB / 0.4971 GB, free: 3.844 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003284/0.1402, allocations: 0.7915 MB / 0.4979 GB, free: 3.027 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.835e-05/0.1403, allocations: 23.44 kB / 0.4979 GB, free: 3.004 MB / 382.1 MB Notification: Performance of SimCode: time 5.51e-07/0.1403, allocations: 0 / 0.4979 GB, free: 3.004 MB / 382.1 MB Notification: Performance of Templates: time 0.2101/0.3504, allocations: 3.967 MB / 0.5018 GB, free: 21.67 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)