Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ThermSys_control_problems.Thermal_control_central_local_sources.Tcontrol_central_local_01_CenFirst.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_control_problems.Thermal_control_central_local_sources.Tcontrol_central_local_01_CenFirst,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Thermal_control_central_local_sources_Tcontrol_central_local_01_CenFirst",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_control_problems.Thermal_control_central_local_sources.Tcontrol_central_local_01_CenFirst,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Thermal_control_central_local_sources_Tcontrol_central_local_01_CenFirst",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.102/0.102, allocations: 21.61 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.0009835/0.0009835, allocations: 190.5 kB / 42.83 MB, free: 3.777 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.356/1.356, allocations: 223.2 MB / 272.1 MB, free: 1.852 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.0008991/0.0008991, allocations: 105.3 kB / 328.7 MB, free: 12.16 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003487/0.0003488, allocations: 8 kB / 397.1 MB, free: 46.45 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08792/0.08829, allocations: 55.82 MB / 452.9 MB, free: 6.613 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3042/0.3926, allocations: 82.32 MB / 0.5227 GB, free: 12.57 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002039/0.3928, allocations: 81.94 kB / 0.5228 GB, free: 12.57 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01998/0.4128, allocations: 8.641 MB / 0.5312 GB, free: 9.938 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.4128, allocations: 0 / 0.5312 GB, free: 9.938 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.776e-05/0.4129, allocations: 15.38 kB / 0.5313 GB, free: 9.934 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: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.001172/0.414, allocations: 0.7936 MB / 0.532 GB, free: 9.328 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.455e-05/0.4141, allocations: 12.16 kB / 0.532 GB, free: 9.328 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001318/0.4142, allocations: 101.7 kB / 0.5321 GB, free: 9.27 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001296/0.4144, allocations: 69.95 kB / 0.5322 GB, free: 9.234 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004683/0.4148, allocations: 381.8 kB / 0.5326 GB, free: 8.934 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.502e-05/0.4149, allocations: 47.08 kB / 0.5326 GB, free: 8.93 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.912e-05/0.4149, allocations: 57.31 kB / 0.5327 GB, free: 8.926 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008246/0.4158, allocations: 0.5806 MB / 0.5332 GB, free: 8.734 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.84e-05/0.4158, allocations: 3.75 kB / 0.5332 GB, free: 8.734 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.482e-05/0.4159, allocations: 19.47 kB / 0.5333 GB, free: 8.734 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.227e-06/0.4159, allocations: 15.52 kB / 0.5333 GB, free: 8.73 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007696/0.4166, allocations: 450.2 kB / 0.5337 GB, free: 8.66 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002074/0.4187, allocations: 1.555 MB / 0.5352 GB, free: 7.828 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007297/0.4195, allocations: 460.5 kB / 0.5357 GB, free: 7.73 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.866e-05/0.4195, allocations: 15 kB / 0.5357 GB, free: 7.73 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.707e-05/0.4196, allocations: 38.12 kB / 0.5357 GB, free: 7.691 MB / 362.7 MB Notification: Performance of pre-optimization done (n=49): time 1.583e-06/0.4196, allocations: 4 kB / 0.5357 GB, free: 7.688 MB / 362.7 MB Notification: Performance of matching and sorting (n=49): time 0.00109/0.4207, allocations: 0.624 MB / 0.5363 GB, free: 7.551 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.986e-05/0.4207, allocations: 140.7 kB / 0.5365 GB, free: 7.387 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001724/0.4209, allocations: 253.2 kB / 0.5367 GB, free: 7.254 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.26e-05/0.4209, allocations: 40.11 kB / 0.5367 GB, free: 7.219 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.021e-05/0.421, allocations: 262.3 kB / 0.537 GB, free: 7.035 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.958e-05/0.4211, allocations: 169.5 kB / 0.5371 GB, free: 6.91 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.052e-05/0.4211, allocations: 10.53 kB / 0.5372 GB, free: 6.91 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.886e-05/0.4212, allocations: 346.9 kB / 0.5375 GB, free: 6.586 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003267/0.4215, allocations: 179.6 kB / 0.5377 GB, free: 6.559 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003403/0.4219, allocations: 258.1 kB / 0.5379 GB, free: 6.445 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003638/0.4223, allocations: 213.7 kB / 0.5381 GB, free: 6.422 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.4223, allocations: 0 / 0.5381 GB, free: 6.422 MB / 362.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008017/0.4231, allocations: 0.5312 MB / 0.5386 GB, free: 6.293 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.443e-05/0.4232, allocations: 0.5319 MB / 0.5391 GB, free: 5.738 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.4232, allocations: 0 / 0.5391 GB, free: 5.738 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.875e-05/0.4232, allocations: 3.844 kB / 0.5392 GB, free: 5.738 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005232/0.4237, allocations: 130.4 kB / 0.5393 GB, free: 5.715 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.166e-06/0.4238, allocations: 11.78 kB / 0.5393 GB, free: 5.707 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003193/0.4241, allocations: 68.47 kB / 0.5394 GB, free: 5.676 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.131e-05/0.4241, allocations: 18.2 kB / 0.5394 GB, free: 5.672 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.273e-06/0.4241, allocations: 3.875 kB / 0.5394 GB, free: 5.672 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005222/0.4247, allocations: 392.5 kB / 0.5397 GB, free: 5.617 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.106e-06/0.4247, allocations: 3.812 kB / 0.5398 GB, free: 5.617 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.318e-06/0.4247, allocations: 3.719 kB / 0.5398 GB, free: 5.617 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004284/0.4251, allocations: 111.8 kB / 0.5399 GB, free: 5.594 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.96e-06/0.4251, allocations: 3.875 kB / 0.5399 GB, free: 5.594 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002591/0.4254, allocations: 48.11 kB / 0.5399 GB, free: 5.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.87e-05/0.4254, allocations: 22.75 kB / 0.5399 GB, free: 5.562 MB / 362.7 MB Warning: Assuming fixed start value for the following 3 variables: Cloc2.T:VARIABLE(min = max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, 0.0))))) start = 293.15 unit = "K" fixed = true nominal = 300.0 ) "Temperature of element" type: Real Cloc1.T:VARIABLE(min = max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, 0.0))))) start = 293.15 unit = "K" fixed = true nominal = 300.0 ) "Temperature of element" type: Real Ccen.T:VARIABLE(min = max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, 0.0)))))) start = 313.15 unit = "K" fixed = true nominal = 300.0 ) "Temperature of element" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (60): * Single equations (assignments): 60 * 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.0002836/0.4257, allocations: 290.4 kB / 0.5402 GB, free: 5.344 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.474e-05/0.4258, allocations: 38.75 kB / 0.5402 GB, free: 5.324 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009898/0.4268, allocations: 0.6337 MB / 0.5409 GB, free: 5.164 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.4268, allocations: 3.875 kB / 0.5409 GB, free: 5.164 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.4268, allocations: 4 kB / 0.5409 GB, free: 5.16 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.174e-06/0.4268, allocations: 7.828 kB / 0.5409 GB, free: 5.156 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000508/0.4273, allocations: 0.5809 MB / 0.5414 GB, free: 4.844 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.4274, allocations: 0 / 0.5414 GB, free: 4.844 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005918/0.4279, allocations: 150.3 kB / 0.5416 GB, free: 4.809 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.814e-06/0.428, allocations: 7.781 kB / 0.5416 GB, free: 4.805 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.646e-05/0.428, allocations: 9.875 kB / 0.5416 GB, free: 4.805 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.415e-06/0.428, allocations: 3.938 kB / 0.5416 GB, free: 4.801 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.428, allocations: 3.812 kB / 0.5416 GB, free: 4.801 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001145/0.4292, allocations: 0.9185 MB / 0.5425 GB, free: 4.531 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.335e-05/0.4292, allocations: 126.8 kB / 0.5426 GB, free: 4.402 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.593e-05/0.4293, allocations: 13.09 kB / 0.5426 GB, free: 4.402 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003281/0.4296, allocations: 41.78 kB / 0.5427 GB, free: 4.391 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.334e-05/0.4297, allocations: 38.84 kB / 0.5427 GB, free: 4.375 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.657e-05/0.4298, allocations: 18.16 kB / 0.5427 GB, free: 4.375 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000132/0.4299, allocations: 200.9 kB / 0.5429 GB, free: 4.273 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.4299, allocations: 0 / 0.5429 GB, free: 4.273 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005474/0.4304, allocations: 250.6 kB / 0.5432 GB, free: 4.215 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (Ccen.T,Cloc1.T,C1.FO.y,C2.FO.y,Cloc2.T,Cc.FO.y) * 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 (65): * Single equations (assignments): 65 * 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.001326/0.4318, allocations: 1.476 MB / 0.5446 GB, free: 3.414 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001063/0.4329, allocations: 0.6831 MB / 0.5453 GB, free: 3.305 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.4329, allocations: 0.625 kB / 0.5453 GB, free: 3.305 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003642/0.4332, allocations: 284.2 kB / 0.5455 GB, free: 3.254 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003804/0.4336, allocations: 57.19 kB / 0.5456 GB, free: 3.242 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003776/0.4374, allocations: 3.769 MB / 0.5493 GB, free: 0.9648 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002296/0.4377, allocations: 0.8856 MB / 0.5501 GB, free: 184 kB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003459/0.438, allocations: 77.75 kB / 0.5502 GB, free: 152 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002326/0.4383, allocations: 200.3 kB / 0.5504 GB, free: 124 kB / 362.7 MB Notification: Performance of SimCode: time 6.31e-07/0.4383, allocations: 0 / 0.5504 GB, free: 124 kB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02282/0.4611, allocations: 8.626 MB / 0.5588 GB, free: 8.562 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000257/0.4614, allocations: 237.4 kB / 0.5591 GB, free: 8.324 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.001/2.462, allocations: 1.5 kB / 0.5591 GB, free: 8.324 MB / 378.7 MB (rm -f AES_AES.Coursework.ThermSys_control_problems.Thermal_control_central_local_sources.Tcontrol_central_local_01_CenFirst.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Thermal_control_central_local_sources.Tcontrol_central_local_01_CenFirst.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Thermal_control_central_local_sources.Tcontrol_central_local_01_CenFirst.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Thermal_control_central_local_sources.Tcontrol_central_local_01_CenFirst.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_control_problems_Thermal_control_central_local_sources_Tcontrol_central_local_01_CenFirst_fmu --startTime=0 --stopTime=10000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_control_problems_Thermal_control_central_local_sources_Tcontrol_central_local_01_CenFirst.fmu > AES_AES.Coursework.ThermSys_control_problems.Thermal_control_central_local_sources.Tcontrol_central_local_01_CenFirst.pipe 2>&1)