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_02_LocFirst.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_02_LocFirst,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Thermal_control_central_local_sources_Tcontrol_central_local_02_LocFirst",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_control_problems.Thermal_control_central_local_sources.Tcontrol_central_local_02_LocFirst,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Thermal_control_central_local_sources_Tcontrol_central_local_02_LocFirst",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.1165/0.1165, allocations: 21.62 MB / 36.56 MB, free: 1.066 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.001066/0.001066, allocations: 190.5 kB / 42.83 MB, free: 3.773 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.303/1.303, allocations: 223.2 MB / 272.1 MB, free: 1.41 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.0008474/0.0008474, allocations: 111.3 kB / 328.7 MB, free: 11.75 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000312/0.000312, allocations: 8 kB / 397.1 MB, free: 46.39 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0833/0.08363, allocations: 55.82 MB / 452.9 MB, free: 6.551 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2846/0.3683, allocations: 82.32 MB / 0.5227 GB, free: 13.08 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001899/0.3685, allocations: 84.59 kB / 0.5228 GB, free: 13.08 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01956/0.3881, allocations: 8.637 MB / 0.5312 GB, free: 10.43 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.243e-06/0.3881, allocations: 0 / 0.5312 GB, free: 10.43 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.628e-05/0.3881, allocations: 15.19 kB / 0.5312 GB, free: 10.42 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.001057/0.3892, allocations: 0.7955 MB / 0.532 GB, free: 9.812 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.583e-05/0.3892, allocations: 12.19 kB / 0.532 GB, free: 9.812 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.133e-05/0.3893, allocations: 95.34 kB / 0.5321 GB, free: 9.758 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.592e-05/0.3894, allocations: 65.91 kB / 0.5322 GB, free: 9.727 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004315/0.3899, allocations: 389.7 kB / 0.5326 GB, free: 9.422 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.373e-05/0.3899, allocations: 51.3 kB / 0.5326 GB, free: 9.414 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.45e-05/0.39, allocations: 57.78 kB / 0.5327 GB, free: 9.41 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008026/0.3908, allocations: 0.5817 MB / 0.5332 GB, free: 9.215 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.695e-05/0.3908, allocations: 0 / 0.5332 GB, free: 9.215 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.418e-05/0.3909, allocations: 27.16 kB / 0.5333 GB, free: 9.215 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.876e-06/0.3909, allocations: 15.53 kB / 0.5333 GB, free: 9.211 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007552/0.3916, allocations: 449 kB / 0.5337 GB, free: 9.137 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002017/0.3937, allocations: 1.548 MB / 0.5352 GB, free: 8.312 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007062/0.3944, allocations: 466.2 kB / 0.5357 GB, free: 8.215 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.412e-05/0.3944, allocations: 11.83 kB / 0.5357 GB, free: 8.215 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.925e-05/0.3945, allocations: 38.31 kB / 0.5357 GB, free: 8.172 MB / 362.7 MB Notification: Performance of pre-optimization done (n=49): time 1.473e-06/0.3945, allocations: 3.844 kB / 0.5357 GB, free: 8.172 MB / 362.7 MB Notification: Performance of matching and sorting (n=49): time 0.001078/0.3955, allocations: 0.63 MB / 0.5363 GB, free: 8.027 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.451e-05/0.3956, allocations: 136.6 kB / 0.5365 GB, free: 7.871 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001896/0.3958, allocations: 242 kB / 0.5367 GB, free: 7.746 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.354e-05/0.3958, allocations: 36.58 kB / 0.5367 GB, free: 7.711 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001016/0.3959, allocations: 264.3 kB / 0.537 GB, free: 7.527 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.432e-05/0.396, allocations: 177.7 kB / 0.5371 GB, free: 7.398 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.028e-05/0.3961, allocations: 7.188 kB / 0.5372 GB, free: 7.398 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.044e-05/0.3961, allocations: 351.5 kB / 0.5375 GB, free: 7.074 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003115/0.3964, allocations: 174.5 kB / 0.5377 GB, free: 7.047 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003467/0.3968, allocations: 261.4 kB / 0.5379 GB, free: 6.934 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003451/0.3971, allocations: 207.7 kB / 0.5381 GB, free: 6.914 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.3972, allocations: 0 / 0.5381 GB, free: 6.914 MB / 362.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007797/0.3979, allocations: 0.5366 MB / 0.5386 GB, free: 6.781 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.559e-05/0.3981, allocations: 0.5339 MB / 0.5391 GB, free: 6.227 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.032e-06/0.3981, allocations: 0 / 0.5391 GB, free: 6.227 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.443e-05/0.3981, allocations: 3.906 kB / 0.5391 GB, free: 6.227 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000516/0.3986, allocations: 132.1 kB / 0.5393 GB, free: 6.199 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.636e-06/0.3986, allocations: 3.844 kB / 0.5393 GB, free: 6.199 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003168/0.3989, allocations: 81.66 kB / 0.5394 GB, free: 6.156 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.038e-05/0.399, allocations: 19.39 kB / 0.5394 GB, free: 6.152 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.254e-06/0.399, allocations: 5.25 kB / 0.5394 GB, free: 6.152 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005118/0.3995, allocations: 385.4 kB / 0.5397 GB, free: 6.102 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.725e-06/0.3995, allocations: 3.812 kB / 0.5398 GB, free: 6.102 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.927e-06/0.3995, allocations: 3.719 kB / 0.5398 GB, free: 6.102 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004379/0.4, allocations: 107.3 kB / 0.5399 GB, free: 6.082 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.639e-06/0.4, allocations: 7.781 kB / 0.5399 GB, free: 6.078 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000246/0.4002, allocations: 47.8 kB / 0.5399 GB, free: 6.055 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.678e-05/0.4003, allocations: 22.44 kB / 0.5399 GB, free: 6.047 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.0002992/0.4006, allocations: 298.9 kB / 0.5402 GB, free: 5.824 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.407e-05/0.4006, allocations: 38.69 kB / 0.5403 GB, free: 5.805 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009941/0.4016, allocations: 0.6278 MB / 0.5409 GB, free: 5.645 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.45e-06/0.4017, allocations: 7.719 kB / 0.5409 GB, free: 5.645 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.4017, allocations: 0 / 0.5409 GB, free: 5.645 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.325e-06/0.4017, allocations: 7.984 kB / 0.5409 GB, free: 5.637 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005621/0.4023, allocations: 0.5869 MB / 0.5415 GB, free: 5.32 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.345e-06/0.4023, allocations: 0 / 0.5415 GB, free: 5.32 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005782/0.4029, allocations: 137.8 kB / 0.5416 GB, free: 5.293 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.679e-06/0.4029, allocations: 7.906 kB / 0.5416 GB, free: 5.289 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.46e-05/0.4029, allocations: 13.88 kB / 0.5416 GB, free: 5.289 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.4029, allocations: 0 / 0.5416 GB, free: 5.289 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.4029, allocations: 3.844 kB / 0.5416 GB, free: 5.289 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001188/0.4041, allocations: 0.9198 MB / 0.5425 GB, free: 5.02 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.764e-05/0.4042, allocations: 127.3 kB / 0.5426 GB, free: 4.887 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.434e-05/0.4043, allocations: 15.59 kB / 0.5426 GB, free: 4.883 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003039/0.4046, allocations: 46.19 kB / 0.5427 GB, free: 4.875 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.869e-05/0.4046, allocations: 35.69 kB / 0.5427 GB, free: 4.859 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.593e-05/0.4047, allocations: 19.38 kB / 0.5427 GB, free: 4.855 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000131/0.4048, allocations: 196.9 kB / 0.5429 GB, free: 4.754 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4048, allocations: 0 / 0.5429 GB, free: 4.754 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005499/0.4054, allocations: 248.6 kB / 0.5432 GB, free: 4.699 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.001357/0.4067, allocations: 1.476 MB / 0.5446 GB, free: 3.898 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001139/0.4079, allocations: 0.6876 MB / 0.5453 GB, free: 3.785 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.4079, allocations: 0 / 0.5453 GB, free: 3.785 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003592/0.4083, allocations: 279.6 kB / 0.5455 GB, free: 3.738 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003933/0.4087, allocations: 69.77 kB / 0.5456 GB, free: 3.719 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003792/0.4125, allocations: 3.76 MB / 0.5493 GB, free: 1.449 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002734/0.4128, allocations: 0.882 MB / 0.5501 GB, free: 0.6641 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003652/0.4131, allocations: 89.34 kB / 0.5502 GB, free: 0.625 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002422/0.4134, allocations: 200 kB / 0.5504 GB, free: 0.5977 MB / 362.7 MB Notification: Performance of SimCode: time 7.02e-07/0.4134, allocations: 0 / 0.5504 GB, free: 0.5977 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02052/0.4339, allocations: 8.593 MB / 0.5588 GB, free: 8.844 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001683/0.4341, allocations: 245.3 kB / 0.559 GB, free: 8.598 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.062/2.496, allocations: 1.5 kB / 0.559 GB, free: 8.598 MB / 378.7 MB (rm -f AES_AES.Coursework.ThermSys_control_problems.Thermal_control_central_local_sources.Tcontrol_central_local_02_LocFirst.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Thermal_control_central_local_sources.Tcontrol_central_local_02_LocFirst.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Thermal_control_central_local_sources.Tcontrol_central_local_02_LocFirst.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Thermal_control_central_local_sources.Tcontrol_central_local_02_LocFirst.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_02_LocFirst_fmu --startTime=0 --stopTime=10000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_control_problems_Thermal_control_central_local_sources_Tcontrol_central_local_02_LocFirst.fmu > AES_AES.Coursework.ThermSys_control_problems.Thermal_control_central_local_sources.Tcontrol_central_local_02_LocFirst.pipe 2>&1)