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: "" <> buildModelFMU(AES.Coursework.Modelling_principles.M2_PhasorDomain,fileNamePrefix="AES_AES_Coursework_Modelling_principles_M2_PhasorDomain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Modelling_principles.M2_PhasorDomain,fileNamePrefix="AES_AES_Coursework_Modelling_principles_M2_PhasorDomain",fmuType="me",version="2.0",platforms={"static"}) [/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.1074/0.1074, allocations: 21.62 MB / 36.56 MB, free: 1.059 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.00111/0.001109, allocations: 183.1 kB / 42.83 MB, free: 3.785 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.4/1.4, allocations: 223.2 MB / 272.1 MB, free: 1.828 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.001179/0.001179, allocations: 98.22 kB / 328.7 MB, free: 12.14 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000332/0.0003322, allocations: 8 kB / 397.1 MB, free: 46.45 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.1009, allocations: 55.82 MB / 452.9 MB, free: 6.609 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3435/0.4444, allocations: 77.52 MB / 0.518 GB, free: 13.11 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002172/0.4447, allocations: 65.52 kB / 0.5181 GB, free: 13.11 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.001357/0.4461, allocations: 0.6337 MB / 0.5187 GB, free: 12.78 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.4461, allocations: 0 / 0.5187 GB, free: 12.78 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.791e-06/0.4461, allocations: 0 / 0.5187 GB, free: 12.78 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.0003067/0.4464, allocations: 359.9 kB / 0.519 GB, free: 12.42 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.94e-05/0.4465, allocations: 14.19 kB / 0.5191 GB, free: 12.41 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.986e-05/0.4465, allocations: 30.56 kB / 0.5191 GB, free: 12.38 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.475e-05/0.4465, allocations: 7.781 kB / 0.5191 GB, free: 12.37 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.276e-05/0.4466, allocations: 174.6 kB / 0.5193 GB, free: 12.17 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.169e-05/0.4467, allocations: 0.6094 kB / 0.5193 GB, free: 12.17 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.15e-05/0.4467, allocations: 7.75 kB / 0.5193 GB, free: 12.17 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001088/0.4468, allocations: 49.17 kB / 0.5193 GB, free: 12.13 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.865e-06/0.4468, allocations: 0 / 0.5193 GB, free: 12.13 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.528e-06/0.4468, allocations: 7.922 kB / 0.5193 GB, free: 12.13 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.781e-06/0.4468, allocations: 2.625 kB / 0.5193 GB, free: 12.13 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.157e-05/0.4469, allocations: 15.56 kB / 0.5193 GB, free: 12.12 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003809/0.4473, allocations: 272.1 kB / 0.5196 GB, free: 11.86 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001691/0.4475, allocations: 51.27 kB / 0.5196 GB, free: 11.84 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.929e-06/0.4475, allocations: 11.61 kB / 0.5197 GB, free: 11.83 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.453e-05/0.4475, allocations: 30.56 kB / 0.5197 GB, free: 11.79 MB / 362.7 MB Notification: Performance of pre-optimization done (n=4): time 9.82e-07/0.4475, allocations: 4 kB / 0.5197 GB, free: 11.79 MB / 362.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001594/0.4477, allocations: 63.64 kB / 0.5198 GB, free: 11.75 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.573e-05/0.4477, allocations: 58.81 kB / 0.5198 GB, free: 11.69 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.13e-05/0.4478, allocations: 104.9 kB / 0.5199 GB, free: 11.6 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.506e-06/0.4478, allocations: 29.27 kB / 0.5199 GB, free: 11.57 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.958e-05/0.4478, allocations: 98.28 kB / 0.52 GB, free: 11.48 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.153e-05/0.4478, allocations: 11.66 kB / 0.52 GB, free: 11.47 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.299e-06/0.4478, allocations: 3.25 kB / 0.52 GB, free: 11.47 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.377e-05/0.4479, allocations: 317.8 kB / 0.5203 GB, free: 11.16 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.3e-05/0.4479, allocations: 13.45 kB / 0.5204 GB, free: 11.16 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.865e-05/0.448, allocations: 27.28 kB / 0.5204 GB, free: 11.14 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.822e-05/0.448, allocations: 14.47 kB / 0.5204 GB, free: 11.14 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.448, allocations: 0 / 0.5204 GB, free: 11.14 MB / 362.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 9.393e-05/0.4481, allocations: 77.55 kB / 0.5205 GB, free: 11.1 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/0.4481, allocations: 9.203 kB / 0.5205 GB, free: 11.1 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.4482, allocations: 0 / 0.5205 GB, free: 11.1 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.377e-05/0.4482, allocations: 11.81 kB / 0.5205 GB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.075e-05/0.4483, allocations: 18.52 kB / 0.5205 GB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.322e-06/0.4483, allocations: 3.938 kB / 0.5205 GB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.157e-05/0.4483, allocations: 7.75 kB / 0.5205 GB, free: 11.08 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.743e-06/0.4484, allocations: 0 / 0.5205 GB, free: 11.08 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.0001296/0.4485, allocations: 115.5 kB / 0.5206 GB, free: 10.97 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.482e-05/0.4485, allocations: 7.75 kB / 0.5206 GB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.922e-05/0.4486, allocations: 18.88 kB / 0.5207 GB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.302e-06/0.4486, allocations: 0 / 0.5207 GB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.4486, allocations: 0 / 0.5207 GB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.324e-06/0.4486, allocations: 0 / 0.5207 GB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001308/0.4487, allocations: 166 kB / 0.5208 GB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.4487, allocations: 1.094 kB / 0.5208 GB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.64e-05/0.4488, allocations: 14.36 kB / 0.5208 GB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.457e-06/0.4488, allocations: 1.078 kB / 0.5208 GB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.107e-05/0.4488, allocations: 7.781 kB / 0.5208 GB, free: 10.76 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.4489, allocations: 3.953 kB / 0.5208 GB, free: 10.76 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.4489, allocations: 2.766 kB / 0.5208 GB, free: 10.76 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001438/0.449, allocations: 165.5 kB / 0.521 GB, free: 10.62 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.367e-05/0.449, allocations: 80.98 kB / 0.5211 GB, free: 10.53 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.575e-05/0.4491, allocations: 1.938 kB / 0.5211 GB, free: 10.53 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.264e-05/0.4491, allocations: 3.562 kB / 0.5211 GB, free: 10.53 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.634e-05/0.4492, allocations: 14.55 kB / 0.5211 GB, free: 10.52 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.408e-06/0.4492, allocations: 2.25 kB / 0.5211 GB, free: 10.52 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.518e-05/0.4492, allocations: 94.75 kB / 0.5212 GB, free: 10.45 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4492, allocations: 4.062 kB / 0.5212 GB, free: 10.44 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002097/0.4494, allocations: 10.66 kB / 0.5212 GB, free: 10.44 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 0.0002638/0.4497, allocations: 0.6928 MB / 0.5219 GB, free: 9.781 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 9.275e-05/0.4498, allocations: 31.41 kB / 0.5219 GB, free: 9.781 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.4498, allocations: 8.062 kB / 0.5219 GB, free: 9.773 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.884e-05/0.4498, allocations: 13.42 kB / 0.5219 GB, free: 9.773 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001286/0.45, allocations: 7.516 kB / 0.5219 GB, free: 9.77 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005884/0.4506, allocations: 0.6478 MB / 0.5226 GB, free: 9.238 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001219/0.4507, allocations: 0.6889 MB / 0.5232 GB, free: 8.543 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 2.829e-05/0.4507, allocations: 5.656 kB / 0.5233 GB, free: 8.543 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.052e-05/0.4508, allocations: 14.25 kB / 0.5233 GB, free: 8.535 MB / 362.7 MB Notification: Performance of SimCode: time 2.31e-07/0.4508, allocations: 0 / 0.5233 GB, free: 8.535 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01199/0.4628, allocations: 1.232 MB / 0.5245 GB, free: 8.375 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001527/0.463, allocations: 168.8 kB / 0.5246 GB, free: 8.133 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.433/1.896, allocations: 11.78 kB / 0.5246 GB, free: 8.125 MB / 362.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Modelling_principles_M2_PhasorDomain_fmu --startTime=0 --stopTime=864000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Modelling_principles_M2_PhasorDomain.fmu > AES_AES.Coursework.Modelling_principles.M2_PhasorDomain.pipe 2>&1)