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.1081/0.1081, allocations: 21.44 MB / 36.4 MB, free: 1.219 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.001143/0.001143, allocations: 182.4 kB / 42.62 MB, free: 3.973 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.693/1.693, allocations: 205.4 MB / 254.1 MB, free: 15.18 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.0009844/0.0009843, allocations: 101.4 kB / 307.8 MB, free: 11.07 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003162/0.0003163, allocations: 10.19 kB / 373.2 MB, free: 59.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08929/0.08963, allocations: 52.96 MB / 426.2 MB, free: 13.05 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Modelling_principles.M2_PhasorDomain): time 0.0007691/0.09046, allocations: 298.7 kB / 426.5 MB, free: 12.76 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001891/0.09068, allocations: 27.91 kB / 426.5 MB, free: 12.73 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.715e-05/0.09073, allocations: 0 / 426.5 MB, free: 12.73 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.622e-05/0.09077, allocations: 3.938 kB / 426.5 MB, free: 12.73 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.757e-05/0.09085, allocations: 7.984 kB / 426.5 MB, free: 12.72 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001182/0.09098, allocations: 11.98 kB / 426.5 MB, free: 12.71 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 6.086e-05/0.09105, allocations: 19.91 kB / 426.5 MB, free: 12.69 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.256e-05/0.09112, allocations: 4 kB / 426.5 MB, free: 12.68 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.174e-05/0.09116, allocations: 19.92 kB / 426.6 MB, free: 12.66 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.857e-05/0.09126, allocations: 19.86 kB / 426.6 MB, free: 12.64 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.744e-05/0.09129, allocations: 0 / 426.6 MB, free: 12.64 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.252e-05/0.09131, allocations: 4 kB / 426.6 MB, free: 12.64 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.109e-05/0.09133, allocations: 0 / 426.6 MB, free: 12.64 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.419e-05/0.09136, allocations: 33.64 kB / 426.6 MB, free: 12.6 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 4.262e-05/0.09141, allocations: 15.95 kB / 426.6 MB, free: 12.59 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.244e-06/0.09142, allocations: 4 kB / 426.6 MB, free: 12.58 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.09142, allocations: 0 / 426.6 MB, free: 12.58 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.771e-06/0.09144, allocations: 0 / 426.6 MB, free: 12.58 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.00037/0.09181, allocations: 359.1 kB / 427 MB, free: 12.18 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.841e-05/0.09186, allocations: 8.031 kB / 427 MB, free: 12.18 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.791e-05/0.0919, allocations: 4 kB / 427 MB, free: 12.17 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.72e-05/0.092, allocations: 167 kB / 427.2 MB, free: 11.97 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.461e-05/0.09202, allocations: 8 kB / 427.2 MB, free: 11.96 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.482e-05/0.09205, allocations: 7.953 kB / 427.2 MB, free: 11.95 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001143/0.09217, allocations: 45.67 kB / 427.2 MB, free: 11.9 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.124e-06/0.09219, allocations: 0 / 427.2 MB, free: 11.9 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.173e-05/0.0922, allocations: 4 kB / 427.2 MB, free: 11.9 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.73e-06/0.09221, allocations: 0 / 427.2 MB, free: 11.9 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.492e-05/0.09227, allocations: 19.94 kB / 427.2 MB, free: 11.88 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003888/0.09266, allocations: 272.8 kB / 427.5 MB, free: 11.56 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001986/0.09287, allocations: 54.55 kB / 427.6 MB, free: 11.5 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.043e-05/0.09289, allocations: 0 / 427.6 MB, free: 11.5 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.494e-05/0.09292, allocations: 30.56 kB / 427.6 MB, free: 11.46 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 2.004e-06/0.09292, allocations: 0 / 427.6 MB, free: 11.46 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001862/0.09312, allocations: 73.61 kB / 427.7 MB, free: 11.38 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.674e-05/0.09315, allocations: 51.41 kB / 427.7 MB, free: 11.32 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.422e-05/0.09323, allocations: 125.8 kB / 427.8 MB, free: 11.19 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.968e-06/0.09325, allocations: 29.7 kB / 427.9 MB, free: 11.15 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.31e-05/0.0933, allocations: 88.05 kB / 428 MB, free: 11.06 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.316e-05/0.09332, allocations: 19.86 kB / 428 MB, free: 11.04 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.94e-06/0.09333, allocations: 4 kB / 428 MB, free: 11.04 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.222e-05/0.09339, allocations: 314.8 kB / 428.3 MB, free: 10.72 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.367e-05/0.09342, allocations: 12 kB / 428.3 MB, free: 10.71 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.218e-05/0.09346, allocations: 25.7 kB / 428.3 MB, free: 10.68 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.441e-05/0.09351, allocations: 23.88 kB / 428.3 MB, free: 10.66 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.09352, allocations: 0 / 428.3 MB, free: 10.66 MB / 298.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001074/0.09363, allocations: 73.53 kB / 428.4 MB, free: 10.58 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.467e-05/0.09365, allocations: 8 kB / 428.4 MB, free: 10.57 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.09366, allocations: 0 / 428.4 MB, free: 10.57 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.315e-05/0.09368, allocations: 0 / 428.4 MB, free: 10.57 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.453e-05/0.09378, allocations: 27.86 kB / 428.4 MB, free: 10.54 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.044e-06/0.09379, allocations: 4.141 kB / 428.5 MB, free: 10.54 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.038e-05/0.09385, allocations: 4 kB / 428.5 MB, free: 10.54 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.614e-06/0.09387, allocations: 4.031 kB / 428.5 MB, free: 10.53 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.0001282/0.094, allocations: 117.8 kB / 428.6 MB, free: 10.41 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.734e-05/0.09403, allocations: 7.906 kB / 428.6 MB, free: 10.4 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.353e-05/0.09406, allocations: 11.89 kB / 428.6 MB, free: 10.39 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.09407, allocations: 4 kB / 428.6 MB, free: 10.38 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.09408, allocations: 0 / 428.6 MB, free: 10.38 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.614e-06/0.09409, allocations: 0 / 428.6 MB, free: 10.38 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001315/0.09423, allocations: 169.6 kB / 428.8 MB, free: 10.17 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.09424, allocations: 3.984 kB / 428.8 MB, free: 10.16 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.763e-05/0.09434, allocations: 12 kB / 428.8 MB, free: 10.15 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.248e-06/0.09435, allocations: 4 kB / 428.8 MB, free: 10.15 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.716e-06/0.09436, allocations: 0 / 428.8 MB, free: 10.15 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.09437, allocations: 4.062 kB / 428.8 MB, free: 10.14 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.09438, allocations: 0 / 428.8 MB, free: 10.14 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001444/0.09453, allocations: 167.4 kB / 429 MB, free: 9.965 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.443e-05/0.09456, allocations: 93.06 kB / 429 MB, free: 9.855 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.42e-05/0.09458, allocations: 0 / 429 MB, free: 9.855 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.296e-05/0.09465, allocations: 4 kB / 429 MB, free: 9.852 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.412e-05/0.09467, allocations: 0 / 429 MB, free: 9.852 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.818e-06/0.09468, allocations: 7.984 kB / 429.1 MB, free: 9.844 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.497e-05/0.09472, allocations: 91.66 kB / 429.1 MB, free: 9.754 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.09473, allocations: 0 / 429.1 MB, free: 9.754 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002129/0.09494, allocations: 8 kB / 429.2 MB, free: 9.746 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 7.388e-05/0.09502, allocations: 111 kB / 429.3 MB, free: 9.625 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.931e-05/0.09513, allocations: 31.92 kB / 429.3 MB, free: 9.594 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.09514, allocations: 0 / 429.3 MB, free: 9.594 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.012e-05/0.09516, allocations: 12 kB / 429.3 MB, free: 9.582 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001418/0.09531, allocations: 2.188 kB / 429.3 MB, free: 9.582 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000294/0.09561, allocations: 175 kB / 429.5 MB, free: 9.379 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001182/0.09574, allocations: 0.6926 MB / 430.2 MB, free: 8.66 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.005e-05/0.09578, allocations: 0 / 430.2 MB, free: 8.66 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.568e-05/0.09581, allocations: 11.44 kB / 430.2 MB, free: 8.648 MB / 298.7 MB Notification: Performance of SimCode: time 2.1e-07/0.09582, allocations: 3.938 kB / 430.2 MB, free: 8.645 MB / 298.7 MB Notification: Performance of Templates: time 0.001962/0.09778, allocations: 372.6 kB / 430.5 MB, free: 8.281 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)