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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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.1637/0.1637, allocations: 21.46 MB / 36.42 MB, free: 1.141 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001309/0.001309, allocations: 182.5 kB / 42.65 MB, free: 3.996 MB / 33.03 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.715/1.715, allocations: 205.4 MB / 254.1 MB, free: 15.19 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008689/0.0008689, allocations: 88.73 kB / 307.8 MB, free: 11.09 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003706/0.0003704, allocations: 7.375 kB / 373.3 MB, free: 59.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08364/0.08403, allocations: 52.96 MB / 426.2 MB, free: 13.04 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Modelling_principles.M2_PhasorDomain): time 0.0005236/0.0846, allocations: 296.7 kB / 426.5 MB, free: 12.75 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001288/0.08474, allocations: 34.42 kB / 426.5 MB, free: 12.71 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.172e-05/0.08478, allocations: 0 / 426.5 MB, free: 12.71 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.149e-05/0.0848, allocations: 3.938 kB / 426.5 MB, free: 12.71 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.468e-05/0.08486, allocations: 4 kB / 426.5 MB, free: 12.71 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001308/0.085, allocations: 11.92 kB / 426.6 MB, free: 12.7 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 5.016e-05/0.08506, allocations: 23.92 kB / 426.6 MB, free: 12.67 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.223e-05/0.08512, allocations: 7.984 kB / 426.6 MB, free: 12.66 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.298e-05/0.08515, allocations: 15.92 kB / 426.6 MB, free: 12.65 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.131e-05/0.08522, allocations: 15.92 kB / 426.6 MB, free: 12.63 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.356e-05/0.08524, allocations: 0 / 426.6 MB, free: 12.63 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.033e-05/0.08525, allocations: 4 kB / 426.6 MB, free: 12.63 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.069e-05/0.08527, allocations: 4 kB / 426.6 MB, free: 12.62 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.722e-05/0.08529, allocations: 37.64 kB / 426.7 MB, free: 12.58 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 3.383e-05/0.08533, allocations: 11.97 kB / 426.7 MB, free: 12.57 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.367e-06/0.08534, allocations: 0 / 426.7 MB, free: 12.57 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.08535, allocations: 0 / 426.7 MB, free: 12.57 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.496e-06/0.08536, allocations: 0 / 426.7 MB, free: 12.57 MB / 298.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.0003132/0.08568, allocations: 355.2 kB / 427 MB, free: 12.18 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.885e-05/0.08571, allocations: 8.031 kB / 427 MB, free: 12.17 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.827e-05/0.08575, allocations: 4 kB / 427 MB, free: 12.16 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.856e-05/0.08582, allocations: 175 kB / 427.2 MB, free: 11.95 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.145e-05/0.08584, allocations: 4 kB / 427.2 MB, free: 11.95 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.773e-05/0.08586, allocations: 11.89 kB / 427.2 MB, free: 11.94 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.139e-05/0.08596, allocations: 49.61 kB / 427.3 MB, free: 11.88 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.981e-06/0.08597, allocations: 0 / 427.3 MB, free: 11.88 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.526e-06/0.08599, allocations: 4 kB / 427.3 MB, free: 11.88 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.379e-06/0.086, allocations: 0 / 427.3 MB, free: 11.88 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.88e-05/0.08604, allocations: 16 kB / 427.3 MB, free: 11.86 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000306/0.08636, allocations: 272.8 kB / 427.6 MB, free: 11.55 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001479/0.08652, allocations: 62.42 kB / 427.6 MB, free: 11.48 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.593e-05/0.08655, allocations: 12.86 kB / 427.6 MB, free: 11.46 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.502e-06/0.08657, allocations: 0 / 427.6 MB, free: 11.46 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.067e-05/0.08658, allocations: 34.56 kB / 427.7 MB, free: 11.42 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 7.71e-07/0.08659, allocations: 0 / 427.7 MB, free: 11.42 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001347/0.08673, allocations: 65.69 kB / 427.7 MB, free: 11.35 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.905e-05/0.08675, allocations: 51.41 kB / 427.8 MB, free: 11.29 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.297e-05/0.08682, allocations: 125.8 kB / 427.9 MB, free: 11.15 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.913e-06/0.08684, allocations: 29.7 kB / 427.9 MB, free: 11.12 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.68e-05/0.08687, allocations: 92.05 kB / 428 MB, free: 11.02 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.098e-05/0.08689, allocations: 11.8 kB / 428 MB, free: 11.01 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.517e-06/0.08689, allocations: 0 / 428 MB, free: 11.01 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.71e-05/0.08694, allocations: 322.8 kB / 428.3 MB, free: 10.69 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.203e-05/0.08696, allocations: 15.98 kB / 428.4 MB, free: 10.67 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.765e-05/0.087, allocations: 21.72 kB / 428.4 MB, free: 10.64 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.67e-05/0.08704, allocations: 20 kB / 428.4 MB, free: 10.62 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.08705, allocations: 0 / 428.4 MB, free: 10.62 MB / 298.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 8.962e-05/0.08714, allocations: 77.53 kB / 428.5 MB, free: 10.54 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.208e-06/0.08716, allocations: 4 kB / 428.5 MB, free: 10.54 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.576e-06/0.08717, allocations: 0 / 428.5 MB, free: 10.54 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.074e-05/0.08718, allocations: 4 kB / 428.5 MB, free: 10.54 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.036e-05/0.08728, allocations: 24.02 kB / 428.5 MB, free: 10.51 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.368e-06/0.08729, allocations: 0 / 428.5 MB, free: 10.51 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.374e-05/0.08735, allocations: 0 / 428.5 MB, free: 10.51 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.312e-06/0.08736, allocations: 4 kB / 428.5 MB, free: 10.51 MB / 298.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.0001062/0.08747, allocations: 121.8 kB / 428.6 MB, free: 10.38 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.426e-05/0.0875, allocations: 8.031 kB / 428.6 MB, free: 10.37 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.09e-05/0.08753, allocations: 11.91 kB / 428.7 MB, free: 10.36 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.08754, allocations: 7.984 kB / 428.7 MB, free: 10.35 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.785e-06/0.08755, allocations: 3.938 kB / 428.7 MB, free: 10.35 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.08755, allocations: 0 / 428.7 MB, free: 10.35 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001224/0.08768, allocations: 173.6 kB / 428.8 MB, free: 10.13 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.08769, allocations: 0 / 428.8 MB, free: 10.13 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.444e-05/0.08779, allocations: 12 kB / 428.8 MB, free: 10.12 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.0878, allocations: 64 / 428.8 MB, free: 10.12 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.025e-06/0.08781, allocations: 4 kB / 428.8 MB, free: 10.11 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.133e-06/0.08782, allocations: 0 / 428.8 MB, free: 10.11 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.08782, allocations: 3.984 kB / 428.9 MB, free: 10.11 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001183/0.08795, allocations: 168.4 kB / 429 MB, free: 9.93 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.797e-05/0.08797, allocations: 84.97 kB / 429.1 MB, free: 9.828 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.158e-05/0.08799, allocations: 0 / 429.1 MB, free: 9.828 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.664e-05/0.08806, allocations: 4.031 kB / 429.1 MB, free: 9.824 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.097e-05/0.08808, allocations: 7.922 kB / 429.1 MB, free: 9.816 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.168e-06/0.08809, allocations: 4 kB / 429.1 MB, free: 9.812 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.001e-05/0.08812, allocations: 99.64 kB / 429.2 MB, free: 9.715 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.08813, allocations: 0 / 429.2 MB, free: 9.715 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002003/0.08833, allocations: 12.06 kB / 429.2 MB, free: 9.703 MB / 298.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 5.426e-05/0.08839, allocations: 95.03 kB / 429.3 MB, free: 9.598 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 8.396e-05/0.08848, allocations: 31.98 kB / 429.3 MB, free: 9.566 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.704e-06/0.08849, allocations: 0 / 429.3 MB, free: 9.566 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 1.874e-05/0.08852, allocations: 15.94 kB / 429.4 MB, free: 9.551 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001874/0.08871, allocations: 6.812 kB / 429.4 MB, free: 9.547 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002598/0.08897, allocations: 175.4 kB / 429.5 MB, free: 9.344 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.977e-05/0.08908, allocations: 0.6809 MB / 430.2 MB, free: 8.637 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.738e-05/0.08911, allocations: 7.984 kB / 430.2 MB, free: 8.629 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.952e-05/0.08913, allocations: 7.438 kB / 430.2 MB, free: 8.621 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.08914, allocations: 4 kB / 430.2 MB, free: 8.617 MB / 298.7 MB Notification: Performance of Templates: time 0.001701/0.09085, allocations: 380.4 kB / 430.6 MB, free: 8.246 MB / 298.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 -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.Modelling_principles.M2_PhasorDomain.pipe 2>&1)