Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.Modelling_principles.M1_TimeDomain.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Running command: translateModel(AES.Coursework.Modelling_principles.M1_TimeDomain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=200000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Modelling_principles.M1_TimeDomain") translateModel(AES.Coursework.Modelling_principles.M1_TimeDomain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=200000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Modelling_principles.M1_TimeDomain") [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_SS_case_001.mo:3:1-67:19:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_case_001.mo:3:1-55:16:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_002.mo:3:1-91:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_001.mo:3:1-85:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09693/0.09693, allocations: 21.61 MB / 36.56 MB, free: 1.098 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001185/0.001185, allocations: 186.1 kB / 42.83 MB, free: 3.781 MB / 33.03 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.196/1.196, allocations: 223.2 MB / 272.1 MB, free: 1.398 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008169/0.0008169, allocations: 101.5 kB / 328.7 MB, free: 11.75 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003333/0.0003334, allocations: 12 kB / 397 MB, free: 46.49 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07678/0.07713, allocations: 55.81 MB / 452.8 MB, free: 6.66 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2553/0.3325, allocations: 77.63 MB / 0.518 GB, free: 13.11 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001579/0.3327, allocations: 67.42 kB / 0.5181 GB, free: 13.11 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00162/0.3343, allocations: 0.7823 MB / 0.5189 GB, free: 12.77 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.3343, allocations: 0 / 0.5189 GB, free: 12.77 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.432e-06/0.3343, allocations: 0 / 0.5189 GB, free: 12.77 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.000268/0.3346, allocations: 373.8 kB / 0.5192 GB, free: 12.39 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.426e-05/0.3347, allocations: 7.656 kB / 0.5192 GB, free: 12.39 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.085e-05/0.3347, allocations: 7.906 kB / 0.5192 GB, free: 12.39 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.399e-05/0.3348, allocations: 173.4 kB / 0.5194 GB, free: 12.19 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.293e-05/0.3348, allocations: 3.844 kB / 0.5194 GB, free: 12.19 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.047e-05/0.3348, allocations: 7.375 kB / 0.5194 GB, free: 12.19 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001176/0.3349, allocations: 67.89 kB / 0.5195 GB, free: 12.15 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.412e-06/0.335, allocations: 0 / 0.5195 GB, free: 12.15 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.048e-05/0.335, allocations: 3.375 kB / 0.5195 GB, free: 12.15 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-06/0.335, allocations: 11.75 kB / 0.5195 GB, free: 12.15 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.558e-05/0.335, allocations: 31.98 kB / 0.5195 GB, free: 12.15 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003333/0.3354, allocations: 293.2 kB / 0.5198 GB, free: 11.88 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002392/0.3356, allocations: 103.5 kB / 0.5199 GB, free: 11.85 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.573e-05/0.3357, allocations: 0 / 0.5199 GB, free: 11.85 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.423e-05/0.3357, allocations: 37.38 kB / 0.5199 GB, free: 11.81 MB / 362.7 MB Notification: Performance of pre-optimization done (n=10): time 1.042e-06/0.3357, allocations: 0 / 0.5199 GB, free: 11.81 MB / 362.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002131/0.3359, allocations: 110.2 kB / 0.52 GB, free: 11.77 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.479e-05/0.3359, allocations: 51.41 kB / 0.5201 GB, free: 11.71 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.761e-05/0.336, allocations: 102.3 kB / 0.5202 GB, free: 11.62 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.02e-05/0.336, allocations: 28.83 kB / 0.5202 GB, free: 11.59 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.622e-05/0.3361, allocations: 98.25 kB / 0.5203 GB, free: 11.5 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.057e-05/0.3361, allocations: 36.75 kB / 0.5204 GB, free: 11.47 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.328e-06/0.3361, allocations: 1.203 kB / 0.5204 GB, free: 11.47 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 4.801e-05/0.3362, allocations: 321.2 kB / 0.5207 GB, free: 11.16 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.569e-05/0.3362, allocations: 17.44 kB / 0.5207 GB, free: 11.16 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.723e-05/0.3362, allocations: 40.94 kB / 0.5207 GB, free: 11.14 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.925e-05/0.3363, allocations: 22.62 kB / 0.5207 GB, free: 11.14 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.3363, allocations: 7.812 kB / 0.5207 GB, free: 11.13 MB / 362.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001321/0.3364, allocations: 105.3 kB / 0.5208 GB, free: 11.09 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.261e-05/0.3365, allocations: 11.41 kB / 0.5209 GB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.3365, allocations: 0 / 0.5209 GB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/0.3365, allocations: 3.953 kB / 0.5209 GB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001258/0.3366, allocations: 38 kB / 0.5209 GB, free: 11.08 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.859e-06/0.3366, allocations: 4.031 kB / 0.5209 GB, free: 11.08 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.978e-05/0.3367, allocations: 9.219 kB / 0.5209 GB, free: 11.07 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.054e-06/0.3367, allocations: 3.625 kB / 0.5209 GB, free: 11.07 MB / 362.7 MB Warning: Assuming fixed start value for the following 3 variables: Tw:VARIABLE(start = 10.0 fixed = true ) type: Real Ta:VARIABLE(start = 10.0 fixed = true ) type: Real I:VARIABLE(start = 0.0 fixed = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001256/0.3368, allocations: 123 kB / 0.521 GB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.897e-05/0.3369, allocations: 7.719 kB / 0.521 GB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001629/0.337, allocations: 108.5 kB / 0.5211 GB, free: 10.91 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/0.337, allocations: 3.953 kB / 0.5211 GB, free: 10.91 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.337, allocations: 0 / 0.5211 GB, free: 10.91 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.3371, allocations: 1.453 kB / 0.5211 GB, free: 10.91 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000134/0.3372, allocations: 187.2 kB / 0.5213 GB, free: 10.72 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.3372, allocations: 1.5 kB / 0.5213 GB, free: 10.72 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001723/0.3374, allocations: 26.27 kB / 0.5213 GB, free: 10.72 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.3374, allocations: 3.938 kB / 0.5214 GB, free: 10.71 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.262e-05/0.3374, allocations: 7.719 kB / 0.5214 GB, free: 10.71 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.405e-06/0.3374, allocations: 1.641 kB / 0.5214 GB, free: 10.71 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.3374, allocations: 7.953 kB / 0.5214 GB, free: 10.71 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001843/0.3376, allocations: 221.7 kB / 0.5216 GB, free: 10.57 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.15e-05/0.3376, allocations: 81.02 kB / 0.5217 GB, free: 10.47 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.7e-05/0.3377, allocations: 7.594 kB / 0.5217 GB, free: 10.47 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.517e-05/0.3377, allocations: 3.75 kB / 0.5217 GB, free: 10.47 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.554e-05/0.3378, allocations: 5.125 kB / 0.5217 GB, free: 10.47 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.212e-06/0.3378, allocations: 5.406 kB / 0.5217 GB, free: 10.46 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.971e-05/0.3378, allocations: 96.8 kB / 0.5218 GB, free: 10.38 MB / 362.7 MB Notification: Performance of sort global known variables: time 1e-07/0.3378, allocations: 0 / 0.5218 GB, free: 10.38 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002104/0.338, allocations: 22.41 kB / 0.5218 GB, free: 10.38 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (I,Ta,Tw) * 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 (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.898e-05/0.3381, allocations: 96.16 kB / 0.5219 GB, free: 10.29 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001228/0.3383, allocations: 66.27 kB / 0.5219 GB, free: 10.29 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.3383, allocations: 0 / 0.5219 GB, free: 10.29 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.112e-05/0.3383, allocations: 41.53 kB / 0.522 GB, free: 10.29 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000128/0.3384, allocations: 0 / 0.522 GB, free: 10.29 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003817/0.3388, allocations: 244.9 kB / 0.5222 GB, free: 10.12 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001037/0.3389, allocations: 0.6943 MB / 0.5229 GB, free: 9.422 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.49e-05/0.339, allocations: 11.48 kB / 0.5229 GB, free: 9.414 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.398e-05/0.339, allocations: 11.16 kB / 0.5229 GB, free: 9.406 MB / 362.7 MB Notification: Performance of SimCode: time 5.71e-07/0.339, allocations: 0 / 0.5229 GB, free: 9.406 MB / 362.7 MB Notification: Performance of Templates: time 0.001931/0.341, allocations: 0.5037 MB / 0.5234 GB, free: 9.359 MB / 362.7 MB make -j1 -f AES_AES.Coursework.Modelling_principles.M1_TimeDomain.makefile (rm -f AES_AES.Coursework.Modelling_principles.M1_TimeDomain.pipe ; mkfifo AES_AES.Coursework.Modelling_principles.M1_TimeDomain.pipe ; head -c 1048576 < AES_AES.Coursework.Modelling_principles.M1_TimeDomain.pipe >> ../files/AES_AES.Coursework.Modelling_principles.M1_TimeDomain.sim & ./AES_AES.Coursework.Modelling_principles.M1_TimeDomain -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Modelling_principles.M1_TimeDomain.pipe 2>&1)