Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.Modelling_principles.M2_PhasorDomain.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.M2_PhasorDomain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=80400,variableFilter="",fileNamePrefix="AES_AES.Coursework.Modelling_principles.M2_PhasorDomain") translateModel(AES.Coursework.Modelling_principles.M2_PhasorDomain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=80400,variableFilter="",fileNamePrefix="AES_AES.Coursework.Modelling_principles.M2_PhasorDomain") [/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.09536/0.09536, allocations: 21.61 MB / 36.56 MB, free: 1.09 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.0009724/0.0009723, allocations: 179.1 kB / 42.82 MB, free: 3.789 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.203/1.203, allocations: 223.2 MB / 272.2 MB, free: 1.367 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.0008108/0.0008109, allocations: 92.33 kB / 328.7 MB, free: 11.7 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000278/0.000278, allocations: 4 kB / 397 MB, free: 46.47 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08032/0.08062, allocations: 55.82 MB / 452.9 MB, free: 6.633 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2643/0.345, allocations: 77.52 MB / 0.5179 GB, free: 13.2 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001694/0.3452, allocations: 72.08 kB / 0.518 GB, free: 13.2 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.001207/0.3464, allocations: 0.6205 MB / 0.5186 GB, free: 12.87 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.492e-06/0.3464, allocations: 0 / 0.5186 GB, free: 12.87 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.761e-06/0.3464, allocations: 7.875 kB / 0.5186 GB, free: 12.87 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0002377/0.3467, allocations: 348.6 kB / 0.519 GB, free: 12.51 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.832e-05/0.3467, allocations: 7.688 kB / 0.519 GB, free: 12.51 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.787e-05/0.3467, allocations: 7.812 kB / 0.519 GB, free: 12.5 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.464e-05/0.3468, allocations: 173.8 kB / 0.5191 GB, free: 12.3 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.218e-06/0.3468, allocations: 4.266 kB / 0.5191 GB, free: 12.3 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.952e-05/0.3468, allocations: 7.812 kB / 0.5192 GB, free: 12.3 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.091e-05/0.3469, allocations: 53.55 kB / 0.5192 GB, free: 12.26 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.781e-06/0.347, allocations: 3.906 kB / 0.5192 GB, free: 12.26 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.556e-06/0.347, allocations: 0 / 0.5192 GB, free: 12.26 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.619e-06/0.347, allocations: 3.953 kB / 0.5192 GB, free: 12.26 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.81e-05/0.347, allocations: 13.36 kB / 0.5192 GB, free: 12.26 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002926/0.3473, allocations: 267.3 kB / 0.5195 GB, free: 12 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001454/0.3475, allocations: 62.7 kB / 0.5195 GB, free: 11.96 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.809e-06/0.3475, allocations: 3.391 kB / 0.5195 GB, free: 11.96 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.141e-05/0.3475, allocations: 34.52 kB / 0.5196 GB, free: 11.92 MB / 362.7 MB Notification: Performance of pre-optimization done (n=4): time 1.152e-06/0.3475, allocations: 0 / 0.5196 GB, free: 11.92 MB / 362.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001386/0.3477, allocations: 63.55 kB / 0.5196 GB, free: 11.89 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.708e-05/0.3477, allocations: 59.25 kB / 0.5197 GB, free: 11.82 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.679e-05/0.3478, allocations: 107.9 kB / 0.5198 GB, free: 11.73 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.334e-06/0.3478, allocations: 25.7 kB / 0.5198 GB, free: 11.7 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.094e-05/0.3478, allocations: 101 kB / 0.5199 GB, free: 11.61 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.049e-05/0.3478, allocations: 13.39 kB / 0.5199 GB, free: 11.6 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.607e-06/0.3478, allocations: 3.812 kB / 0.5199 GB, free: 11.6 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 3.54e-05/0.3479, allocations: 316.3 kB / 0.5202 GB, free: 11.29 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.184e-05/0.3479, allocations: 13.42 kB / 0.5202 GB, free: 11.29 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.456e-05/0.3479, allocations: 21.14 kB / 0.5203 GB, free: 11.27 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.327e-05/0.348, allocations: 11.03 kB / 0.5203 GB, free: 11.27 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.348, allocations: 7.844 kB / 0.5203 GB, free: 11.27 MB / 362.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001143/0.3481, allocations: 79.12 kB / 0.5204 GB, free: 11.23 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.699e-06/0.3481, allocations: 3.844 kB / 0.5204 GB, free: 11.23 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.3481, allocations: 6.203 kB / 0.5204 GB, free: 11.22 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.658e-06/0.3481, allocations: 0 / 0.5204 GB, free: 11.22 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.201e-05/0.3482, allocations: 21.72 kB / 0.5204 GB, free: 11.22 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.92e-06/0.3482, allocations: 1.641 kB / 0.5204 GB, free: 11.22 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.093e-05/0.3483, allocations: 3.938 kB / 0.5204 GB, free: 11.22 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.933e-06/0.3483, allocations: 7.219 kB / 0.5204 GB, free: 11.22 MB / 362.7 MB Warning: Assuming fixed start value for the following 2 variables: Tw:VARIABLE(start = 10.0 fixed = true ) type: Real Ta:VARIABLE(start = 10.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 (8): * Single equations (assignments): 8 * 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.0001048/0.3484, allocations: 113.8 kB / 0.5205 GB, free: 11.1 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.403e-05/0.3484, allocations: 6.109 kB / 0.5205 GB, free: 11.1 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.38e-05/0.3485, allocations: 15.42 kB / 0.5205 GB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.3485, allocations: 7.891 kB / 0.5205 GB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.3485, allocations: 1.422 kB / 0.5205 GB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.925e-06/0.3485, allocations: 2.125 kB / 0.5205 GB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001079/0.3486, allocations: 167.6 kB / 0.5207 GB, free: 10.9 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.704e-06/0.3486, allocations: 6.047 kB / 0.5207 GB, free: 10.89 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.599e-05/0.3487, allocations: 15.56 kB / 0.5207 GB, free: 10.89 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.3487, allocations: 2.578 kB / 0.5207 GB, free: 10.89 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.224e-06/0.3487, allocations: 0 / 0.5207 GB, free: 10.89 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.3487, allocations: 3.844 kB / 0.5207 GB, free: 10.89 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.3488, allocations: 3.953 kB / 0.5207 GB, free: 10.89 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000114/0.3489, allocations: 160.9 kB / 0.5209 GB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.867e-05/0.3489, allocations: 83.5 kB / 0.521 GB, free: 10.66 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.309e-05/0.3489, allocations: 0 / 0.521 GB, free: 10.66 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.556e-05/0.349, allocations: 4.062 kB / 0.521 GB, free: 10.66 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.481e-05/0.349, allocations: 14.23 kB / 0.521 GB, free: 10.65 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.106e-06/0.349, allocations: 3.938 kB / 0.521 GB, free: 10.64 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.92e-05/0.3491, allocations: 95.66 kB / 0.5211 GB, free: 10.57 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3491, allocations: 0 / 0.5211 GB, free: 10.57 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001972/0.3493, allocations: 10.56 kB / 0.5211 GB, free: 10.57 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (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 (4): * Single equations (assignments): 4 * 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 9.45e-05/0.3494, allocations: 101.4 kB / 0.5212 GB, free: 10.48 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 9.479e-05/0.3495, allocations: 34.5 kB / 0.5212 GB, free: 10.47 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.3495, allocations: 0 / 0.5212 GB, free: 10.47 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.852e-05/0.3495, allocations: 15.25 kB / 0.5212 GB, free: 10.47 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001137/0.3496, allocations: 1.562 kB / 0.5212 GB, free: 10.47 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000214/0.3498, allocations: 176.8 kB / 0.5214 GB, free: 10.32 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.412e-05/0.3499, allocations: 0.6926 MB / 0.5221 GB, free: 9.621 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 2.552e-05/0.35, allocations: 2.859 kB / 0.5221 GB, free: 9.621 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.577e-05/0.35, allocations: 11.31 kB / 0.5221 GB, free: 9.613 MB / 362.7 MB Notification: Performance of SimCode: time 2.31e-07/0.35, allocations: 0 / 0.5221 GB, free: 9.613 MB / 362.7 MB Notification: Performance of Templates: time 0.001621/0.3516, allocations: 385.5 kB / 0.5225 GB, free: 9.57 MB / 362.7 MB make -j1 -f AES_AES.Coursework.Modelling_principles.M2_PhasorDomain.makefile (rm -f AES_AES.Coursework.Modelling_principles.M2_PhasorDomain.pipe ; mkfifo AES_AES.Coursework.Modelling_principles.M2_PhasorDomain.pipe ; head -c 1048576 < AES_AES.Coursework.Modelling_principles.M2_PhasorDomain.pipe >> ../files/AES_AES.Coursework.Modelling_principles.M2_PhasorDomain.sim & ./AES_AES.Coursework.Modelling_principles.M2_PhasorDomain -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Modelling_principles.M2_PhasorDomain.pipe 2>&1)