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.001621/0.001621, allocations: 107.2 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.001837/0.001837, allocations: 187 kB / 17.34 MB, free: 5.723 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.339/1.339, allocations: 222.9 MB / 241 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08777/0.08777, allocations: 22.33 MB / 313.5 MB, free: 8.848 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00149/0.00149, allocations: 68.08 kB / 437.7 MB, free: 11.71 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.1152, allocations: 54.96 MB / 492.7 MB, free: 4.707 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control): time 0.005011/0.1202, allocations: 3.161 MB / 495.8 MB, free: 1.523 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002037/0.1223, allocations: 0.896 MB / 496.7 MB, free: 0.6211 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004698/0.1228, allocations: 11.94 kB / 496.7 MB, free: 0.6094 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003438/0.1232, allocations: 71.25 kB / 496.8 MB, free: 0.5391 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004713/0.1237, allocations: 99.06 kB / 496.9 MB, free: 452 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005622/0.1242, allocations: 199.1 kB / 497.1 MB, free: 256 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006955/0.1249, allocations: 467 kB / 497.6 MB, free: 15.79 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004216/0.1254, allocations: 214.1 kB / 497.8 MB, free: 15.58 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000274/0.1257, allocations: 171.3 kB / 497.9 MB, free: 15.41 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002965/0.126, allocations: 179.1 kB / 498.1 MB, free: 15.23 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.111e-05/0.1261, allocations: 40 kB / 498.1 MB, free: 15.2 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.279e-05/0.1262, allocations: 40 kB / 498.2 MB, free: 15.16 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.835e-05/0.1263, allocations: 91.67 kB / 498.3 MB, free: 15.07 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002066/0.1265, allocations: 202.9 kB / 498.5 MB, free: 14.87 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005393/0.127, allocations: 462.3 kB / 498.9 MB, free: 14.41 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.127, allocations: 0 / 498.9 MB, free: 14.41 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.127, allocations: 0 / 498.9 MB, free: 14.41 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.674e-05/0.1271, allocations: 0 / 498.9 MB, free: 14.41 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.001199/0.1283, allocations: 0.694 MB / 499.6 MB, free: 13.67 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.83e-05/0.1283, allocations: 8.031 kB / 499.6 MB, free: 13.66 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001186/0.1284, allocations: 48.38 kB / 499.7 MB, free: 13.62 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005668/0.129, allocations: 339.2 kB / 0.4883 GB, free: 13.25 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.044e-05/0.1291, allocations: 21.38 kB / 0.4883 GB, free: 13.23 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.866e-05/0.1291, allocations: 40.38 kB / 0.4883 GB, free: 13.19 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006767/0.1298, allocations: 372.2 kB / 0.4887 GB, free: 12.81 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.903e-05/0.1298, allocations: 0 / 0.4887 GB, free: 12.81 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.66e-05/0.1299, allocations: 12 kB / 0.4887 GB, free: 12.8 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.123e-05/0.1299, allocations: 8 kB / 0.4887 GB, free: 12.79 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005235/0.1304, allocations: 259.8 kB / 0.489 GB, free: 12.54 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002003/0.1324, allocations: 1.299 MB / 0.4902 GB, free: 11.15 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006466/0.1331, allocations: 294.9 kB / 0.4905 GB, free: 10.86 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002261/0.1333, allocations: 125.2 kB / 0.4906 GB, free: 10.73 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.963e-05/0.1334, allocations: 240 / 0.4906 GB, free: 10.73 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.091e-05/0.1334, allocations: 46.73 kB / 0.4907 GB, free: 10.68 MB / 382.1 MB Notification: Performance of pre-optimization done (n=27): time 1.333e-06/0.1334, allocations: 0 / 0.4907 GB, free: 10.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=27): time 0.0007118/0.1341, allocations: 329.4 kB / 0.491 GB, free: 10.36 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.517e-05/0.1342, allocations: 81.11 kB / 0.4911 GB, free: 10.26 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000265/0.1345, allocations: 267 kB / 0.4913 GB, free: 9.992 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.926e-05/0.1345, allocations: 29.7 kB / 0.4914 GB, free: 9.957 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001472/0.1347, allocations: 220 kB / 0.4916 GB, free: 9.738 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.138e-05/0.1348, allocations: 90.66 kB / 0.4917 GB, free: 9.648 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.171e-05/0.1349, allocations: 57.61 kB / 0.4917 GB, free: 9.586 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000127/0.135, allocations: 342.8 kB / 0.492 GB, free: 9.242 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001966/0.1352, allocations: 88.69 kB / 0.4921 GB, free: 9.152 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002207/0.1354, allocations: 154.8 kB / 0.4923 GB, free: 8.977 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004125/0.1359, allocations: 242.7 kB / 0.4925 GB, free: 8.719 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/0.1359, allocations: 4 kB / 0.4925 GB, free: 8.715 MB / 382.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0005368/0.1364, allocations: 297.1 kB / 0.4928 GB, free: 8.418 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.864e-05/0.1365, allocations: 12.19 kB / 0.4928 GB, free: 8.406 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.1365, allocations: 0 / 0.4928 GB, free: 8.406 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.093e-05/0.1365, allocations: 7.938 kB / 0.4928 GB, free: 8.398 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002951/0.1368, allocations: 67.91 kB / 0.4929 GB, free: 8.332 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.225e-05/0.1368, allocations: 4 kB / 0.4929 GB, free: 8.328 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001916/0.137, allocations: 35.67 kB / 0.4929 GB, free: 8.293 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.031e-05/0.137, allocations: 8 kB / 0.4929 GB, free: 8.285 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002443/0.1373, allocations: 184.1 kB / 0.4931 GB, free: 8.102 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001794/0.1375, allocations: 147.7 kB / 0.4932 GB, free: 7.934 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003064/0.1378, allocations: 218.2 kB / 0.4934 GB, free: 7.699 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.553e-06/0.1378, allocations: 0 / 0.4934 GB, free: 7.699 MB / 382.1 MB Notification: Performance of matching and sorting (n=36) (initialization_lambda0): time 0.0004296/0.1382, allocations: 277.1 kB / 0.4937 GB, free: 7.422 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.081e-05/0.1383, allocations: 8 kB / 0.4937 GB, free: 7.414 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.344e-06/0.1383, allocations: 3.938 kB / 0.4937 GB, free: 7.41 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.062e-06/0.1383, allocations: 4.188 kB / 0.4937 GB, free: 7.406 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002475/0.1385, allocations: 67.91 kB / 0.4938 GB, free: 7.34 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.218e-06/0.1385, allocations: 4 kB / 0.4938 GB, free: 7.336 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001638/0.1387, allocations: 23.75 kB / 0.4938 GB, free: 7.312 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.12e-05/0.1387, allocations: 16 kB / 0.4938 GB, free: 7.297 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.0001419/0.1389, allocations: 204.9 kB / 0.494 GB, free: 7.09 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.142e-05/0.139, allocations: 27.72 kB / 0.494 GB, free: 7.062 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005595/0.1395, allocations: 285.3 kB / 0.4943 GB, free: 6.77 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-06/0.1396, allocations: 4 kB / 0.4943 GB, free: 6.766 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.1396, allocations: 0 / 0.4943 GB, free: 6.766 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/0.1396, allocations: 0 / 0.4943 GB, free: 6.766 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004672/0.14, allocations: 401.1 kB / 0.4947 GB, free: 6.324 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.1401, allocations: 0 / 0.4947 GB, free: 6.324 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002845/0.1403, allocations: 63.91 kB / 0.4948 GB, free: 6.262 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.659e-06/0.1404, allocations: 0 / 0.4948 GB, free: 6.262 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.696e-05/0.1404, allocations: 11.98 kB / 0.4948 GB, free: 6.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.1404, allocations: 0 / 0.4948 GB, free: 6.25 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.1404, allocations: 0 / 0.4948 GB, free: 6.25 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007231/0.1411, allocations: 467.2 kB / 0.4952 GB, free: 5.777 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001295/0.1413, allocations: 124.8 kB / 0.4953 GB, free: 5.637 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.169e-05/0.1413, allocations: 0 / 0.4953 GB, free: 5.637 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001899/0.1415, allocations: 15.98 kB / 0.4954 GB, free: 5.621 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.218e-05/0.1416, allocations: 27.91 kB / 0.4954 GB, free: 5.594 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.813e-05/0.1416, allocations: 8 kB / 0.4954 GB, free: 5.586 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001799/0.1418, allocations: 190 kB / 0.4956 GB, free: 5.398 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1418, allocations: 0 / 0.4956 GB, free: 5.398 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005063/0.1423, allocations: 143.4 kB / 0.4957 GB, free: 5.258 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.0001214/0.1424, allocations: 103.2 kB / 0.4958 GB, free: 5.148 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006979/0.1431, allocations: 352.4 kB / 0.4961 GB, free: 4.805 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.1432, allocations: 0 / 0.4961 GB, free: 4.805 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002041/0.1434, allocations: 115.9 kB / 0.4963 GB, free: 4.691 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005066/0.1439, allocations: 75.25 kB / 0.4963 GB, free: 4.617 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001404/0.1453, allocations: 0.7795 MB / 0.4971 GB, free: 3.805 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003398/0.1456, allocations: 0.7915 MB / 0.4979 GB, free: 2.988 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.984e-05/0.1458, allocations: 27.44 kB / 0.4979 GB, free: 2.961 MB / 382.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1458, allocations: 3.938 kB / 0.4979 GB, free: 2.957 MB / 382.1 MB Notification: Performance of Templates: time 0.2267/0.3725, allocations: 3.907 MB / 0.5017 GB, free: 21.51 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)