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: translateModel(AES.Coursework.ThermSys_control_problems.Thermal_control_central_local_sources.Tcontrol_central_local_01_CenFirst,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Thermal_control_central_local_sources.Tcontrol_central_local_01_CenFirst") translateModel(AES.Coursework.ThermSys_control_problems.Thermal_control_central_local_sources.Tcontrol_central_local_01_CenFirst,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Thermal_control_central_local_sources.Tcontrol_central_local_01_CenFirst") [/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.09294/0.09294, allocations: 21.61 MB / 36.56 MB, free: 1.062 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.001265/0.001265, allocations: 182.4 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.28/1.28, allocations: 223.2 MB / 272.1 MB, free: 1.391 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.0008097/0.0008096, allocations: 109.3 kB / 328.7 MB, free: 11.73 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003353/0.0003353, allocations: 11.98 kB / 397.1 MB, free: 46.46 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08492/0.08527, allocations: 55.82 MB / 452.9 MB, free: 6.621 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2784/0.3637, allocations: 82.32 MB / 0.5226 GB, free: 13.13 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002068/0.364, allocations: 82.3 kB / 0.5227 GB, free: 13.13 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01945/0.3834, allocations: 8.638 MB / 0.5312 GB, free: 10.48 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.874e-06/0.3835, allocations: 0 / 0.5312 GB, free: 10.48 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.658e-05/0.3835, allocations: 15.53 kB / 0.5312 GB, free: 10.48 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.001091/0.3846, allocations: 0.7944 MB / 0.5319 GB, free: 9.871 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.127e-05/0.3847, allocations: 7.656 kB / 0.532 GB, free: 9.871 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.951e-05/0.3848, allocations: 65.38 kB / 0.532 GB, free: 9.84 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004476/0.3852, allocations: 383.3 kB / 0.5324 GB, free: 9.539 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.886e-05/0.3853, allocations: 46.61 kB / 0.5324 GB, free: 9.531 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.961e-05/0.3853, allocations: 65.33 kB / 0.5325 GB, free: 9.52 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008419/0.3862, allocations: 0.5821 MB / 0.5331 GB, free: 9.324 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.883e-05/0.3862, allocations: 8 kB / 0.5331 GB, free: 9.316 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.827e-05/0.3863, allocations: 27.81 kB / 0.5331 GB, free: 9.316 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.676e-06/0.3863, allocations: 11.56 kB / 0.5331 GB, free: 9.316 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007659/0.3871, allocations: 450.3 kB / 0.5335 GB, free: 9.242 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00212/0.3892, allocations: 1.547 MB / 0.535 GB, free: 8.422 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007837/0.39, allocations: 466.5 kB / 0.5355 GB, free: 8.324 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.903e-05/0.3901, allocations: 20 kB / 0.5355 GB, free: 8.312 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.27e-05/0.3901, allocations: 38.59 kB / 0.5355 GB, free: 8.273 MB / 362.7 MB Notification: Performance of pre-optimization done (n=49): time 2.395e-06/0.3901, allocations: 0 / 0.5355 GB, free: 8.273 MB / 362.7 MB Notification: Performance of matching and sorting (n=49): time 0.00114/0.3912, allocations: 0.6282 MB / 0.5362 GB, free: 8.133 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.37e-05/0.3913, allocations: 136.8 kB / 0.5363 GB, free: 7.977 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001835/0.3915, allocations: 241.8 kB / 0.5365 GB, free: 7.848 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.107e-05/0.3915, allocations: 37.42 kB / 0.5366 GB, free: 7.816 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.548e-05/0.3916, allocations: 265.3 kB / 0.5368 GB, free: 7.629 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.389e-05/0.3917, allocations: 171.7 kB / 0.537 GB, free: 7.504 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.032e-05/0.3917, allocations: 15.59 kB / 0.537 GB, free: 7.5 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.211e-05/0.3918, allocations: 349.8 kB / 0.5373 GB, free: 7.172 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003104/0.3921, allocations: 173.6 kB / 0.5375 GB, free: 7.148 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003502/0.3925, allocations: 264.5 kB / 0.5377 GB, free: 7.035 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000347/0.3928, allocations: 207 kB / 0.5379 GB, free: 7.016 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.3929, allocations: 3.938 kB / 0.5379 GB, free: 7.012 MB / 362.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008105/0.3937, allocations: 0.5322 MB / 0.5385 GB, free: 6.883 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001094/0.3938, allocations: 0.5272 MB / 0.539 GB, free: 6.332 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.3938, allocations: 0 / 0.539 GB, free: 6.332 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.875e-05/0.3938, allocations: 11.77 kB / 0.539 GB, free: 6.324 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005178/0.3944, allocations: 126.6 kB / 0.5391 GB, free: 6.301 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.267e-06/0.3944, allocations: 7.781 kB / 0.5391 GB, free: 6.297 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003276/0.3947, allocations: 77.89 kB / 0.5392 GB, free: 6.258 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.971e-05/0.3947, allocations: 15.28 kB / 0.5392 GB, free: 6.258 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.081e-06/0.3948, allocations: 3.875 kB / 0.5392 GB, free: 6.258 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005248/0.3953, allocations: 395.4 kB / 0.5396 GB, free: 6.203 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.495e-06/0.3953, allocations: 0 / 0.5396 GB, free: 6.203 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.138e-06/0.3953, allocations: 3.875 kB / 0.5396 GB, free: 6.203 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005334/0.3958, allocations: 108.3 kB / 0.5397 GB, free: 6.184 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.097e-06/0.3959, allocations: 11.75 kB / 0.5397 GB, free: 6.176 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003086/0.3962, allocations: 46.58 kB / 0.5397 GB, free: 6.156 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.607e-05/0.3962, allocations: 15.62 kB / 0.5398 GB, free: 6.156 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.0003951/0.3966, allocations: 293.1 kB / 0.54 GB, free: 5.938 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.927e-05/0.3967, allocations: 38.91 kB / 0.5401 GB, free: 5.918 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001205/0.3979, allocations: 0.631 MB / 0.5407 GB, free: 5.75 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.398, allocations: 11.84 kB / 0.5407 GB, free: 5.746 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.361e-06/0.398, allocations: 0 / 0.5407 GB, free: 5.746 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/0.398, allocations: 3.984 kB / 0.5407 GB, free: 5.742 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006549/0.3987, allocations: 0.5914 MB / 0.5413 GB, free: 5.426 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.706e-06/0.3987, allocations: 0 / 0.5413 GB, free: 5.426 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006593/0.3993, allocations: 134.8 kB / 0.5414 GB, free: 5.398 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.731e-06/0.3993, allocations: 3.875 kB / 0.5414 GB, free: 5.398 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.884e-05/0.3994, allocations: 17.39 kB / 0.5414 GB, free: 5.395 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.709e-06/0.3994, allocations: 7.875 kB / 0.5414 GB, free: 5.391 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.3994, allocations: 3.938 kB / 0.5414 GB, free: 5.387 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001406/0.4008, allocations: 0.921 MB / 0.5423 GB, free: 5.117 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.101e-05/0.4009, allocations: 127.8 kB / 0.5425 GB, free: 4.984 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.23e-05/0.401, allocations: 13.19 kB / 0.5425 GB, free: 4.984 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003504/0.4013, allocations: 40.56 kB / 0.5425 GB, free: 4.977 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.442e-05/0.4014, allocations: 43.28 kB / 0.5426 GB, free: 4.957 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.089e-05/0.4015, allocations: 15.41 kB / 0.5426 GB, free: 4.957 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001609/0.4016, allocations: 195.7 kB / 0.5428 GB, free: 4.859 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4016, allocations: 0 / 0.5428 GB, free: 4.859 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006541/0.4023, allocations: 244.6 kB / 0.543 GB, free: 4.809 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.0001459/0.4024, allocations: 121 kB / 0.5431 GB, free: 4.715 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001229/0.4037, allocations: 0.6903 MB / 0.5438 GB, free: 4.602 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.4037, allocations: 0 / 0.5438 GB, free: 4.602 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004273/0.4041, allocations: 279.7 kB / 0.544 GB, free: 4.551 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004026/0.4045, allocations: 59.73 kB / 0.5441 GB, free: 4.531 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001966/0.4065, allocations: 1.483 MB / 0.5456 GB, free: 3.594 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002676/0.4068, allocations: 0.8824 MB / 0.5464 GB, free: 2.809 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0004233/0.4072, allocations: 85.5 kB / 0.5465 GB, free: 2.77 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000151/0.4074, allocations: 45.64 kB / 0.5465 GB, free: 2.762 MB / 362.7 MB Notification: Performance of SimCode: time 1.253e-06/0.4074, allocations: 0 / 0.5465 GB, free: 2.762 MB / 362.7 MB Notification: Performance of Templates: time 0.007929/0.4153, allocations: 4.599 MB / 0.551 GB, free: 15.96 MB / 378.7 MB make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Thermal_control_central_local_sources.Tcontrol_central_local_01_CenFirst.makefile (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 & ./AES_AES.Coursework.ThermSys_control_problems.Thermal_control_central_local_sources.Tcontrol_central_local_01_CenFirst -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Thermal_control_central_local_sources.Tcontrol_central_local_01_CenFirst.pipe 2>&1)