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.007034/0.007034, allocations: 101.2 kB / 15.73 MB, free: 6.043 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.001237/0.001237, allocations: 197.7 kB / 16.68 MB, free: 5.961 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.374/1.374, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08999/0.08999, allocations: 22.32 MB / 312.8 MB, free: 8.855 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001986/0.001986, allocations: 63.91 kB / 437 MB, free: 11.72 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1469/0.1489, allocations: 54.95 MB / 492 MB, free: 4.719 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control): time 0.005543/0.1545, allocations: 3.161 MB / 495.1 MB, free: 1.535 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002419/0.157, allocations: 0.8921 MB / 496 MB, free: 0.6367 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004485/0.1574, allocations: 19.94 kB / 496.1 MB, free: 0.6172 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003281/0.1578, allocations: 63.31 kB / 496.1 MB, free: 0.5547 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004061/0.1583, allocations: 99.02 kB / 496.2 MB, free: 468 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005418/0.1588, allocations: 207.2 kB / 496.4 MB, free: 264 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006343/0.1595, allocations: 462.9 kB / 496.9 MB, free: 15.8 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004254/0.1599, allocations: 222.1 kB / 497.1 MB, free: 15.58 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002563/0.1602, allocations: 167.3 kB / 497.3 MB, free: 15.42 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002699/0.1604, allocations: 187 kB / 497.4 MB, free: 15.23 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.647e-05/0.1605, allocations: 36 kB / 497.5 MB, free: 15.2 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.617e-05/0.1606, allocations: 40 kB / 497.5 MB, free: 15.16 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.742e-05/0.1607, allocations: 87.69 kB / 497.6 MB, free: 15.07 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000212/0.1609, allocations: 198.9 kB / 497.8 MB, free: 14.88 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000581/0.1615, allocations: 466.3 kB / 498.2 MB, free: 14.42 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.199e-06/0.1615, allocations: 3.938 kB / 498.2 MB, free: 14.42 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.026e-06/0.1615, allocations: 4 kB / 498.3 MB, free: 14.41 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.062e-05/0.1615, allocations: 0 / 498.3 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.001188/0.1627, allocations: 0.69 MB / 498.9 MB, free: 13.68 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4e-05/0.1628, allocations: 8.031 kB / 498.9 MB, free: 13.67 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.998e-05/0.1629, allocations: 52.38 kB / 499 MB, free: 13.62 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005022/0.1634, allocations: 327.3 kB / 499.3 MB, free: 13.26 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.834e-05/0.1634, allocations: 21.38 kB / 499.3 MB, free: 13.24 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.39e-05/0.1635, allocations: 40.38 kB / 499.4 MB, free: 13.2 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006881/0.1642, allocations: 376.2 kB / 499.7 MB, free: 12.82 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.231e-05/0.1642, allocations: 0 / 499.7 MB, free: 12.82 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.032e-05/0.1643, allocations: 16 kB / 499.8 MB, free: 12.8 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.249e-05/0.1643, allocations: 8 kB / 499.8 MB, free: 12.79 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005376/0.1648, allocations: 251.8 kB / 0.4883 GB, free: 12.55 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002133/0.167, allocations: 1.299 MB / 0.4896 GB, free: 11.16 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007948/0.1678, allocations: 291.8 kB / 0.4898 GB, free: 10.87 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002307/0.168, allocations: 129.2 kB / 0.49 GB, free: 10.74 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.192e-05/0.1681, allocations: 8.219 kB / 0.49 GB, free: 10.73 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.094e-05/0.1681, allocations: 38.8 kB / 0.49 GB, free: 10.69 MB / 382.1 MB Notification: Performance of pre-optimization done (n=27): time 2.064e-06/0.1681, allocations: 0 / 0.49 GB, free: 10.69 MB / 382.1 MB Notification: Performance of matching and sorting (n=27): time 0.0007375/0.1689, allocations: 329.4 kB / 0.4903 GB, free: 10.36 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.104e-05/0.1689, allocations: 81.11 kB / 0.4904 GB, free: 10.27 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000274/0.1692, allocations: 263 kB / 0.4907 GB, free: 10 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.892e-05/0.1692, allocations: 33.69 kB / 0.4907 GB, free: 9.965 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001525/0.1694, allocations: 224 kB / 0.4909 GB, free: 9.742 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.173e-05/0.1695, allocations: 90.66 kB / 0.491 GB, free: 9.652 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001047/0.1696, allocations: 57.61 kB / 0.491 GB, free: 9.59 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001348/0.1698, allocations: 334.8 kB / 0.4914 GB, free: 9.254 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002074/0.17, allocations: 92.67 kB / 0.4914 GB, free: 9.16 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002301/0.1702, allocations: 150.8 kB / 0.4916 GB, free: 8.988 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004106/0.1706, allocations: 250.6 kB / 0.4918 GB, free: 8.723 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.1706, allocations: 0 / 0.4918 GB, free: 8.723 MB / 382.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0005028/0.1711, allocations: 297.2 kB / 0.4921 GB, free: 8.426 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.6e-05/0.1712, allocations: 8.188 kB / 0.4921 GB, free: 8.418 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.1712, allocations: 0 / 0.4921 GB, free: 8.418 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.553e-05/0.1712, allocations: 4 kB / 0.4921 GB, free: 8.414 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00029/0.1715, allocations: 75.89 kB / 0.4922 GB, free: 8.34 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.862e-05/0.1715, allocations: 0 / 0.4922 GB, free: 8.34 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001731/0.1717, allocations: 35.62 kB / 0.4922 GB, free: 8.305 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.322e-05/0.1717, allocations: 11.98 kB / 0.4922 GB, free: 8.293 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002368/0.172, allocations: 184.1 kB / 0.4924 GB, free: 8.109 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001849/0.1722, allocations: 139.8 kB / 0.4926 GB, free: 7.949 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003108/0.1725, allocations: 222.2 kB / 0.4928 GB, free: 7.711 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.162e-06/0.1725, allocations: 0 / 0.4928 GB, free: 7.711 MB / 382.1 MB Notification: Performance of matching and sorting (n=36) (initialization_lambda0): time 0.0004674/0.173, allocations: 277 kB / 0.493 GB, free: 7.434 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.603e-05/0.173, allocations: 8 kB / 0.493 GB, free: 7.426 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.973e-06/0.173, allocations: 0 / 0.493 GB, free: 7.426 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.288e-06/0.173, allocations: 4 kB / 0.493 GB, free: 7.422 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002397/0.1733, allocations: 72.09 kB / 0.4931 GB, free: 7.352 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.03e-06/0.1733, allocations: 4 kB / 0.4931 GB, free: 7.348 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001453/0.1734, allocations: 19.75 kB / 0.4931 GB, free: 7.328 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.93e-05/0.1735, allocations: 12 kB / 0.4931 GB, free: 7.316 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.0001551/0.1736, allocations: 208.8 kB / 0.4933 GB, free: 7.105 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.947e-05/0.1737, allocations: 23.72 kB / 0.4934 GB, free: 7.082 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005534/0.1742, allocations: 285.4 kB / 0.4936 GB, free: 6.789 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-06/0.1743, allocations: 3.984 kB / 0.4936 GB, free: 6.785 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.113e-06/0.1743, allocations: 4 kB / 0.4936 GB, free: 6.781 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/0.1743, allocations: 4 kB / 0.4936 GB, free: 6.777 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004745/0.1748, allocations: 401 kB / 0.494 GB, free: 6.336 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.1748, allocations: 4 kB / 0.494 GB, free: 6.332 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002812/0.1751, allocations: 59.91 kB / 0.4941 GB, free: 6.273 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.936e-06/0.1751, allocations: 0 / 0.4941 GB, free: 6.273 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.626e-05/0.1751, allocations: 8 kB / 0.4941 GB, free: 6.266 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.1751, allocations: 0 / 0.4941 GB, free: 6.266 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.1751, allocations: 0 / 0.4941 GB, free: 6.266 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006989/0.1758, allocations: 475.2 kB / 0.4946 GB, free: 5.785 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001157/0.1759, allocations: 120.8 kB / 0.4947 GB, free: 5.648 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.172e-05/0.176, allocations: 8 kB / 0.4947 GB, free: 5.641 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001815/0.1762, allocations: 15.98 kB / 0.4947 GB, free: 5.625 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.725e-05/0.1762, allocations: 15.98 kB / 0.4947 GB, free: 5.609 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.482e-05/0.1763, allocations: 8 kB / 0.4947 GB, free: 5.602 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001598/0.1764, allocations: 186 kB / 0.4949 GB, free: 5.418 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1764, allocations: 0 / 0.4949 GB, free: 5.418 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000451/0.1769, allocations: 147.4 kB / 0.495 GB, free: 5.273 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.000108/0.177, allocations: 115.1 kB / 0.4951 GB, free: 5.152 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007718/0.1778, allocations: 348.5 kB / 0.4955 GB, free: 4.812 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.1778, allocations: 4 kB / 0.4955 GB, free: 4.809 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001877/0.178, allocations: 111.9 kB / 0.4956 GB, free: 4.699 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005262/0.1785, allocations: 73.44 kB / 0.4957 GB, free: 4.629 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001224/0.1797, allocations: 0.7494 MB / 0.4964 GB, free: 3.855 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003491/0.1801, allocations: 0.7954 MB / 0.4972 GB, free: 3.035 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001715/0.1803, allocations: 38.95 kB / 0.4972 GB, free: 3 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.207e-05/0.1804, allocations: 27.44 kB / 0.4972 GB, free: 2.973 MB / 382.1 MB Notification: Performance of SimCode: time 6.31e-07/0.1804, allocations: 0 / 0.4972 GB, free: 2.973 MB / 382.1 MB Notification: Performance of Templates: time 0.244/0.4243, allocations: 3.221 MB / 0.5004 GB, free: 21.85 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)