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.09118/0.09118, allocations: 21.61 MB / 37.4 MB, free: 0.7539 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.00113/0.00113, allocations: 188.5 kB / 43.63 MB, free: 3.566 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.27/1.27, allocations: 205.1 MB / 254.8 MB, free: 14.25 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.000866/0.0008661, allocations: 104.5 kB / 307.5 MB, free: 11.36 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009987/0.0009988, allocations: 55.42 kB / 372.3 MB, free: 59.49 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08508/0.08609, allocations: 51.97 MB / 424.3 MB, free: 14.52 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Modelling_principles.M2_PhasorDomain): time 0.001794/0.08794, allocations: 0.6351 MB / 424.9 MB, free: 13.88 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001424/0.08811, allocations: 31.89 kB / 425 MB, free: 13.85 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.193e-05/0.08816, allocations: 7.938 kB / 425 MB, free: 13.84 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.065e-05/0.08818, allocations: 0 / 425 MB, free: 13.84 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.213e-05/0.08828, allocations: 7.922 kB / 425 MB, free: 13.83 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001116/0.0884, allocations: 7.984 kB / 425 MB, free: 13.82 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 6.396e-05/0.08847, allocations: 27.91 kB / 425 MB, free: 13.8 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.377e-05/0.08854, allocations: 15.88 kB / 425 MB, free: 13.78 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.606e-05/0.08857, allocations: 8 kB / 425 MB, free: 13.77 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.17e-05/0.08866, allocations: 23.84 kB / 425.1 MB, free: 13.75 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.983e-05/0.08869, allocations: 4 kB / 425.1 MB, free: 13.75 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.203e-05/0.0887, allocations: 4 kB / 425.1 MB, free: 13.74 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.903e-05/0.08873, allocations: 0 / 425.1 MB, free: 13.74 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.799e-05/0.08876, allocations: 19.86 kB / 425.1 MB, free: 13.72 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 5.61e-05/0.08882, allocations: 23.84 kB / 425.1 MB, free: 13.7 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.08883, allocations: 0 / 425.1 MB, free: 13.7 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.62e-07/0.08884, allocations: 4 kB / 425.1 MB, free: 13.7 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.807e-06/0.08885, allocations: 0 / 425.1 MB, free: 13.7 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.0003945/0.08924, allocations: 355.3 kB / 425.5 MB, free: 13.3 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.887e-05/0.08929, allocations: 12.03 kB / 425.5 MB, free: 13.29 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.841e-05/0.08934, allocations: 12.83 kB / 425.5 MB, free: 13.27 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.579e-05/0.08943, allocations: 168.3 kB / 425.7 MB, free: 13.07 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.218e-05/0.08945, allocations: 4.312 kB / 425.7 MB, free: 13.07 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.183e-05/0.08947, allocations: 8.375 kB / 425.7 MB, free: 13.06 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001143/0.08959, allocations: 50.17 kB / 425.7 MB, free: 13 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.747e-06/0.08961, allocations: 192 / 425.7 MB, free: 13 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.164e-05/0.08963, allocations: 3.938 kB / 425.7 MB, free: 13 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.234e-06/0.08964, allocations: 7.984 kB / 425.7 MB, free: 12.99 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.585e-05/0.08969, allocations: 12 kB / 425.7 MB, free: 12.98 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004079/0.09011, allocations: 276.8 kB / 426 MB, free: 12.66 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001649/0.09028, allocations: 54.5 kB / 426.1 MB, free: 12.6 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.021e-05/0.09032, allocations: 16.94 kB / 426.1 MB, free: 12.58 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.237e-06/0.09034, allocations: 0 / 426.1 MB, free: 12.58 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.739e-05/0.09036, allocations: 38.56 kB / 426.1 MB, free: 12.53 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 9.22e-07/0.09037, allocations: 0 / 426.1 MB, free: 12.53 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001736/0.09055, allocations: 61.59 kB / 426.2 MB, free: 12.46 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.162e-05/0.09058, allocations: 55.34 kB / 426.2 MB, free: 12.4 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.29e-05/0.09066, allocations: 133.6 kB / 426.4 MB, free: 12.26 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.546e-06/0.09067, allocations: 25.7 kB / 426.4 MB, free: 12.23 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.537e-05/0.09071, allocations: 92.05 kB / 426.5 MB, free: 12.13 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.251e-05/0.09073, allocations: 15.8 kB / 426.5 MB, free: 12.12 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.296e-05/0.09077, allocations: 21.72 kB / 426.5 MB, free: 12.09 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.402e-05/0.09082, allocations: 322.8 kB / 426.8 MB, free: 11.77 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.359e-05/0.09085, allocations: 8 kB / 426.8 MB, free: 11.76 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.775e-05/0.09088, allocations: 21.72 kB / 426.9 MB, free: 11.73 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002495/0.09113, allocations: 77.61 kB / 426.9 MB, free: 11.65 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.09115, allocations: 4 kB / 426.9 MB, free: 11.64 MB / 298.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 9.62e-05/0.09125, allocations: 73.53 kB / 427 MB, free: 11.57 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.248e-05/0.09127, allocations: 4 kB / 427 MB, free: 11.56 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.09128, allocations: 0 / 427 MB, free: 11.56 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.278e-05/0.0913, allocations: 4 kB / 427 MB, free: 11.56 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.684e-05/0.09139, allocations: 19.94 kB / 427 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.29e-06/0.0914, allocations: 0 / 427 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.849e-05/0.09146, allocations: 7.938 kB / 427 MB, free: 11.53 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.753e-06/0.09147, allocations: 7.984 kB / 427 MB, free: 11.52 MB / 298.7 MB Warning: Assuming fixed start value for the following 2 variables: Ta:VARIABLE(start = 10.0 fixed = true ) type: Real Tw: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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001444/0.09162, allocations: 128.3 kB / 427.2 MB, free: 11.39 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.353e-05/0.09165, allocations: 3.906 kB / 427.2 MB, free: 11.39 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.855e-05/0.09168, allocations: 7.906 kB / 427.2 MB, free: 11.38 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.09169, allocations: 0 / 427.2 MB, free: 11.38 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.0917, allocations: 0 / 427.2 MB, free: 11.38 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.09171, allocations: 0 / 427.2 MB, free: 11.38 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001326/0.09185, allocations: 177.7 kB / 427.4 MB, free: 11.16 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.09186, allocations: 0 / 427.4 MB, free: 11.16 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.233e-05/0.09195, allocations: 19.98 kB / 427.4 MB, free: 11.14 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.09196, allocations: 0 / 427.4 MB, free: 11.14 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.228e-06/0.09198, allocations: 0 / 427.4 MB, free: 11.14 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.562e-06/0.09199, allocations: 3.938 kB / 427.4 MB, free: 11.13 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.09199, allocations: 0 / 427.4 MB, free: 11.13 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007856/0.09278, allocations: 1.033 MB / 428.4 MB, free: 9.961 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.979e-05/0.09281, allocations: 81.02 kB / 428.5 MB, free: 9.863 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.544e-06/0.09283, allocations: 3.938 kB / 428.5 MB, free: 9.859 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.853e-05/0.09289, allocations: 0 / 428.5 MB, free: 9.859 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.566e-05/0.09291, allocations: 7.984 kB / 428.5 MB, free: 9.852 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.978e-06/0.09292, allocations: 0 / 428.5 MB, free: 9.852 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.421e-05/0.09296, allocations: 95.27 kB / 428.6 MB, free: 9.758 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09297, allocations: 4.062 kB / 428.6 MB, free: 9.754 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002473/0.09322, allocations: 12 kB / 428.6 MB, free: 9.742 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 7.359e-05/0.0933, allocations: 99.19 kB / 428.7 MB, free: 9.637 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001019/0.09341, allocations: 31.98 kB / 428.7 MB, free: 9.605 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.09342, allocations: 0 / 428.7 MB, free: 9.605 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.038e-05/0.09344, allocations: 15.94 kB / 428.8 MB, free: 9.59 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000211/0.09366, allocations: 11.88 kB / 428.8 MB, free: 9.578 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003731/0.09404, allocations: 282.8 kB / 429 MB, free: 9.258 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001865/0.09424, allocations: 0.6887 MB / 429.7 MB, free: 8.543 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.296e-05/0.09429, allocations: 0 / 429.7 MB, free: 8.543 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.192e-05/0.09433, allocations: 15.44 kB / 429.7 MB, free: 8.527 MB / 298.7 MB Notification: Performance of SimCode: time 1.082e-06/0.09433, allocations: 0 / 429.7 MB, free: 8.527 MB / 298.7 MB Notification: Performance of Templates: time 0.00223/0.09657, allocations: 0.5478 MB / 430.3 MB, free: 7.98 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 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Modelling_principles.M2_PhasorDomain.pipe 2>&1)