Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Transport.HE_simple_case_001.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.ThermSys_Transport.HE_simple_case_001,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_HE_simple_case_001",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_Transport.HE_simple_case_001,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_HE_simple_case_001",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.1042/0.1042, allocations: 21.61 MB / 36.56 MB, free: 1.078 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: 187.1 kB / 42.83 MB, free: 3.781 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.393/1.393, allocations: 223.2 MB / 272.1 MB, free: 1.422 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.0008249/0.0008249, allocations: 98.19 kB / 328.7 MB, free: 11.75 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004651/0.0004652, allocations: 8 kB / 397.1 MB, free: 46.4 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1138/0.1143, allocations: 55.82 MB / 452.9 MB, free: 6.559 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3355/0.4499, allocations: 79.92 MB / 0.5204 GB, free: 13.3 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002027/0.4502, allocations: 71.88 kB / 0.5204 GB, free: 13.3 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007329/0.4575, allocations: 3.281 MB / 0.5236 GB, free: 12.78 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.594e-06/0.4575, allocations: 2.484 kB / 0.5236 GB, free: 12.78 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.048e-05/0.4575, allocations: 3.688 kB / 0.5236 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0006946/0.4583, allocations: 0.5095 MB / 0.5241 GB, free: 12.35 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.779e-05/0.4583, allocations: 7.844 kB / 0.5242 GB, free: 12.35 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.079e-05/0.4583, allocations: 48.48 kB / 0.5242 GB, free: 12.3 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.288e-05/0.4584, allocations: 23.25 kB / 0.5242 GB, free: 12.29 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004922/0.4589, allocations: 331.2 kB / 0.5245 GB, free: 12.06 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.28e-05/0.4589, allocations: 7.312 kB / 0.5245 GB, free: 12.06 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.52e-05/0.459, allocations: 11.12 kB / 0.5246 GB, free: 12.06 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002244/0.4592, allocations: 162.5 kB / 0.5247 GB, free: 11.98 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.055e-05/0.4592, allocations: 7.938 kB / 0.5247 GB, free: 11.97 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.615e-05/0.4592, allocations: 9.266 kB / 0.5247 GB, free: 11.97 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.961e-06/0.4592, allocations: 3.781 kB / 0.5247 GB, free: 11.97 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001646/0.4594, allocations: 98.77 kB / 0.5248 GB, free: 11.96 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007023/0.4601, allocations: 0.8144 MB / 0.5256 GB, free: 11.33 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001362/0.4603, allocations: 77.52 kB / 0.5257 GB, free: 11.3 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.613e-05/0.4603, allocations: 3.75 kB / 0.5257 GB, free: 11.3 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.772e-05/0.4603, allocations: 38.33 kB / 0.5257 GB, free: 11.26 MB / 362.7 MB Notification: Performance of pre-optimization done (n=8): time 1.422e-06/0.4603, allocations: 3.938 kB / 0.5257 GB, free: 11.26 MB / 362.7 MB Notification: Performance of matching and sorting (n=8): time 0.0003178/0.4607, allocations: 136 kB / 0.5259 GB, free: 11.21 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.738e-05/0.4607, allocations: 51.41 kB / 0.5259 GB, free: 11.14 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001869/0.4609, allocations: 232.2 kB / 0.5261 GB, free: 11.05 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.182e-05/0.4609, allocations: 34.38 kB / 0.5262 GB, free: 11.02 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.781e-05/0.461, allocations: 146.4 kB / 0.5263 GB, free: 10.92 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.029e-05/0.461, allocations: 31.91 kB / 0.5263 GB, free: 10.9 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.971e-06/0.461, allocations: 3.438 kB / 0.5263 GB, free: 10.9 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.566e-05/0.4611, allocations: 333.8 kB / 0.5267 GB, free: 10.59 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.24e-05/0.4611, allocations: 26.94 kB / 0.5267 GB, free: 10.59 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.352e-05/0.4612, allocations: 44.59 kB / 0.5267 GB, free: 10.56 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.828e-05/0.4613, allocations: 39.8 kB / 0.5268 GB, free: 10.56 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.4613, allocations: 0 / 0.5268 GB, free: 10.56 MB / 362.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001784/0.4615, allocations: 139.8 kB / 0.5269 GB, free: 10.51 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.492e-05/0.4615, allocations: 9.375 kB / 0.5269 GB, free: 10.51 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.129e-06/0.4615, allocations: 0 / 0.5269 GB, free: 10.51 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.518e-05/0.4615, allocations: 6.672 kB / 0.5269 GB, free: 10.5 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001654/0.4617, allocations: 30.02 kB / 0.5269 GB, free: 10.5 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.262e-06/0.4617, allocations: 0 / 0.5269 GB, free: 10.5 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.929e-05/0.4618, allocations: 15.19 kB / 0.527 GB, free: 10.49 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.081e-05/0.4618, allocations: 7.906 kB / 0.527 GB, free: 10.49 MB / 362.7 MB Warning: Assuming fixed start value for the following 2 variables: HE.Tco:VARIABLE(min = 0.0 start = 299.958408982322 unit = "K" fixed = true nominal = 300.0 ) type: Real HE.Tho:VARIABLE(min = 0.0 start = 339.5666268514094 unit = "K" fixed = true nominal = 300.0 ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (14): * Single equations (assignments): 14 * 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.0001681/0.462, allocations: 132.5 kB / 0.5271 GB, free: 10.38 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.917e-05/0.462, allocations: 27.22 kB / 0.5271 GB, free: 10.36 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.259e-05/0.4621, allocations: 29.22 kB / 0.5271 GB, free: 10.35 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-06/0.4621, allocations: 7.797 kB / 0.5272 GB, free: 10.34 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.4621, allocations: 1.812 kB / 0.5272 GB, free: 10.34 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.4621, allocations: 4 kB / 0.5272 GB, free: 10.34 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00019/0.4623, allocations: 240.4 kB / 0.5274 GB, free: 10.15 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.4623, allocations: 0 / 0.5274 GB, free: 10.15 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001528/0.4625, allocations: 18.19 kB / 0.5274 GB, free: 10.15 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.4625, allocations: 0 / 0.5274 GB, free: 10.15 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.252e-05/0.4625, allocations: 6.625 kB / 0.5274 GB, free: 10.15 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/0.4625, allocations: 0 / 0.5274 GB, free: 10.15 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.4625, allocations: 3.953 kB / 0.5274 GB, free: 10.15 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002455/0.4628, allocations: 233.1 kB / 0.5276 GB, free: 10 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.309e-05/0.4628, allocations: 101.6 kB / 0.5277 GB, free: 9.891 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.176e-05/0.4629, allocations: 5.094 kB / 0.5277 GB, free: 9.891 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001095/0.463, allocations: 3.641 kB / 0.5277 GB, free: 9.891 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.516e-05/0.463, allocations: 8.344 kB / 0.5277 GB, free: 9.887 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.585e-06/0.463, allocations: 7.188 kB / 0.5278 GB, free: 9.883 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001538/0.4632, allocations: 189.4 kB / 0.5279 GB, free: 9.805 MB / 362.7 MB Notification: Performance of sort global known variables: time 2e-07/0.4632, allocations: 0 / 0.5279 GB, free: 9.805 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002492/0.4634, allocations: 47.42 kB / 0.528 GB, free: 9.801 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (HE.Tho,HE.Tco) * 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 (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 Backend phase and start with SimCode phase: time 0.000366/0.4638, allocations: 0.7731 MB / 0.5287 GB, free: 9.125 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001538/0.464, allocations: 77.19 kB / 0.5288 GB, free: 9.121 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.464, allocations: 0 / 0.5288 GB, free: 9.121 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.667e-05/0.4641, allocations: 34.52 kB / 0.5288 GB, free: 9.117 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002884/0.4643, allocations: 46.72 kB / 0.5289 GB, free: 9.109 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001662/0.466, allocations: 1.643 MB / 0.5305 GB, free: 8.133 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001385/0.4662, allocations: 0.7387 MB / 0.5312 GB, free: 7.406 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001383/0.4663, allocations: 33.55 kB / 0.5312 GB, free: 7.387 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.275e-05/0.4664, allocations: 65.09 kB / 0.5313 GB, free: 7.375 MB / 362.7 MB Notification: Performance of SimCode: time 8.82e-07/0.4664, allocations: 0 / 0.5313 GB, free: 7.375 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01563/0.482, allocations: 4.271 MB / 0.5355 GB, free: 5.414 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001348/0.4822, allocations: 175.2 kB / 0.5356 GB, free: 5.172 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.607/2.089, allocations: 4 kB / 0.5357 GB, free: 5.168 MB / 362.7 MB (rm -f AES_AES.Coursework.ThermSys_Transport.HE_simple_case_001.pipe ; mkfifo AES_AES.Coursework.ThermSys_Transport.HE_simple_case_001.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Transport.HE_simple_case_001.pipe >> ../files/AES_AES.Coursework.ThermSys_Transport.HE_simple_case_001.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_Transport_HE_simple_case_001_fmu --startTime=0 --stopTime=10000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_Transport_HE_simple_case_001.fmu > AES_AES.Coursework.ThermSys_Transport.HE_simple_case_001.pipe 2>&1)