Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.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_component_models.Controlled_heater_case_002,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_002",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_002",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.1023/0.1023, allocations: 21.62 MB / 36.57 MB, free: 1.082 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.001079/0.001079, allocations: 187 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.432/1.432, allocations: 223.2 MB / 272.1 MB, free: 1.367 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.0009074/0.0009073, allocations: 91.06 kB / 328.7 MB, free: 11.71 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002899/0.0002898, allocations: 8 kB / 397.1 MB, free: 46.36 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09778/0.09809, allocations: 55.81 MB / 452.9 MB, free: 6.52 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3747/0.4728, allocations: 84.04 MB / 0.5244 GB, free: 13.32 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002272/0.4731, allocations: 75.41 kB / 0.5245 GB, free: 13.32 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03119/0.5043, allocations: 12.74 MB / 0.5369 GB, free: 8.621 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.5043, allocations: 0 / 0.5369 GB, free: 8.621 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.611e-05/0.5044, allocations: 15.62 kB / 0.5369 GB, free: 8.621 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: 182 * Number of variables: 182 Notification: Performance of Generate backend data structure: time 0.002083/0.5065, allocations: 1.111 MB / 0.538 GB, free: 7.887 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.392e-05/0.5065, allocations: 11.41 kB / 0.538 GB, free: 7.887 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001586/0.5067, allocations: 125.6 kB / 0.5381 GB, free: 7.828 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001756/0.5069, allocations: 88.41 kB / 0.5382 GB, free: 7.785 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009169/0.5078, allocations: 0.6013 MB / 0.5388 GB, free: 7.434 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.438e-05/0.5079, allocations: 85.67 kB / 0.5389 GB, free: 7.395 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001196/0.508, allocations: 79.88 kB / 0.539 GB, free: 7.391 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001322/0.5093, allocations: 1.043 MB / 0.54 GB, free: 7.078 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.883e-05/0.5094, allocations: 0 / 0.54 GB, free: 7.078 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.511e-05/0.5095, allocations: 34.47 kB / 0.54 GB, free: 7.074 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.331e-05/0.5095, allocations: 15.19 kB / 0.54 GB, free: 7.074 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001035/0.5105, allocations: 0.819 MB / 0.5408 GB, free: 6.953 MB / 362.7 MB Notification: The following initial equation is redundant and consistent due to simplifications in RemoveSimpleEquations and therefore removed from the initialization problem: der(pipeline.fluidStream.w) = 0.0 -> 0.0 = 0.0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004809/0.5153, allocations: 4.064 MB / 0.5448 GB, free: 4.695 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002399/0.5177, allocations: 1.024 MB / 0.5458 GB, free: 4.492 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.322e-05/0.5178, allocations: 7.938 kB / 0.5458 GB, free: 4.492 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.724e-05/0.5178, allocations: 42.41 kB / 0.5458 GB, free: 4.449 MB / 362.7 MB Notification: Performance of pre-optimization done (n=58): time 2.154e-06/0.5178, allocations: 0 / 0.5458 GB, free: 4.449 MB / 362.7 MB Notification: Performance of matching and sorting (n=58): time 0.003427/0.5213, allocations: 2.397 MB / 0.5482 GB, free: 3.082 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.844e-05/0.5213, allocations: 59.78 kB / 0.5482 GB, free: 3.02 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003711/0.5217, allocations: 366.9 kB / 0.5486 GB, free: 2.875 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.089e-05/0.5217, allocations: 36.8 kB / 0.5486 GB, free: 2.844 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001303/0.5219, allocations: 321.6 kB / 0.5489 GB, free: 2.629 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001419/0.522, allocations: 238 kB / 0.5492 GB, free: 2.461 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.221e-05/0.5221, allocations: 13.88 kB / 0.5492 GB, free: 2.461 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.531e-05/0.5222, allocations: 376.1 kB / 0.5495 GB, free: 2.121 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005274/0.5227, allocations: 454.3 kB / 0.55 GB, free: 2.059 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005776/0.5233, allocations: 498.2 kB / 0.5504 GB, free: 1.871 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005724/0.5239, allocations: 0.4946 MB / 0.5509 GB, free: 1.586 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.5239, allocations: 4 kB / 0.5509 GB, free: 1.582 MB / 362.7 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.00194/0.5258, allocations: 1.344 MB / 0.5522 GB, free: 0.6211 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.703e-05/0.5258, allocations: 8 kB / 0.5522 GB, free: 0.6133 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.172e-06/0.5259, allocations: 0 / 0.5522 GB, free: 0.6133 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009987/0.5269, allocations: 344.7 kB / 0.5526 GB, free: 320 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008369/0.5277, allocations: 190.6 kB / 0.5528 GB, free: 136 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009553/0.5373, allocations: 14.19 MB / 0.5666 GB, free: 1.59 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008192/0.5381, allocations: 82.02 kB / 0.5667 GB, free: 1.52 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.902e-05/0.5382, allocations: 19.5 kB / 0.5667 GB, free: 1.504 MB / 378.7 MB Warning: Assuming fixed start value for the following 2 variables: CH.Ec:VARIABLE(fixed = true ) type: Real CH.Tfo:VARIABLE(min = 0.0 start = CH.Tstart unit = "K" fixed = true nominal = 300.0 ) "outlet fluid temp" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 1 (Hon.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (79): * Single equations (assignments): 69 * 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: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006303/0.5388, allocations: 280 kB / 0.567 GB, free: 1.297 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001138/0.539, allocations: 55.42 kB / 0.567 GB, free: 1.242 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001933/0.5409, allocations: 1.129 MB / 0.5681 GB, free: 480 kB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.115e-06/0.5409, allocations: 11.95 kB / 0.5681 GB, free: 468 kB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.5409, allocations: 7.938 kB / 0.5681 GB, free: 460 kB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.044e-06/0.541, allocations: 7.984 kB / 0.5682 GB, free: 452 kB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003184/0.5441, allocations: 2.137 MB / 0.5702 GB, free: 14.85 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.88e-06/0.5442, allocations: 0 / 0.5702 GB, free: 14.85 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001014/0.5452, allocations: 179.1 kB / 0.5704 GB, free: 14.68 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008038/0.546, allocations: 303.2 kB / 0.5707 GB, free: 14.41 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.979e-05/0.5461, allocations: 37.41 kB / 0.5707 GB, free: 14.39 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009317/0.5554, allocations: 13.76 MB / 0.5842 GB, free: 15.82 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.653e-06/0.5555, allocations: 12.05 kB / 0.5842 GB, free: 15.81 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002875/0.5584, allocations: 1.642 MB / 0.5858 GB, free: 14.08 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002524/0.5586, allocations: 148.3 kB / 0.5859 GB, free: 13.91 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001373/0.5588, allocations: 31.98 kB / 0.586 GB, free: 13.88 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004835/0.5593, allocations: 35.88 kB / 0.586 GB, free: 13.85 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001821/0.5595, allocations: 56.42 kB / 0.586 GB, free: 13.79 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.966e-05/0.5595, allocations: 16 kB / 0.5861 GB, free: 13.78 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003654/0.5599, allocations: 295.1 kB / 0.5863 GB, free: 13.49 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5599, allocations: 0 / 0.5863 GB, free: 13.49 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001029/0.5609, allocations: 299.4 kB / 0.5866 GB, free: 13.2 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 22 (CH.Tfo,CH.Ec,pipeline.fluidStream.T[1],pipeline.fluidStream.T[2],pipeline.fluidStream.T[3],pipeline.fluidStream.T[4],pipeline.fluidStream.T[5],pipeline.wall.wall.T[1,1],pipeline.wall.wall.T[1,2],pipeline.wall.wall.T[1,3],pipeline.wall.wall.T[2,1],pipeline.wall.wall.T[2,2],pipeline.wall.wall.T[2,3],pipeline.wall.wall.T[3,1],pipeline.wall.wall.T[3,2],pipeline.wall.wall.T[3,3],pipeline.wall.wall.T[4,1],pipeline.wall.wall.T[4,2],pipeline.wall.wall.T[4,3],pipeline.wall.wall.T[5,1],pipeline.wall.wall.T[5,2],pipeline.wall.wall.T[5,3]) * 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 (49): * Single equations (assignments): 39 * 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: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003014/0.564, allocations: 2.5 MB / 0.5891 GB, free: 10.62 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002532/0.5665, allocations: 2.044 MB / 0.5911 GB, free: 8.445 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.788e-06/0.5665, allocations: 0 / 0.5911 GB, free: 8.445 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001639/0.5682, allocations: 1.553 MB / 0.5926 GB, free: 6.766 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007544/0.5689, allocations: 160.3 kB / 0.5927 GB, free: 6.613 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006375/0.5753, allocations: 5.066 MB / 0.5977 GB, free: 1.461 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006625/0.576, allocations: 1.036 MB / 0.5987 GB, free: 408 kB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0005178/0.5765, allocations: 164.5 kB / 0.5989 GB, free: 240 kB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003882/0.5769, allocations: 247.4 kB / 0.5991 GB, free: 15.99 MB / 426.7 MB Notification: Performance of SimCode: time 8.52e-07/0.577, allocations: 0 / 0.5991 GB, free: 15.99 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03602/0.613, allocations: 17.8 MB / 0.6165 GB, free: 14.46 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002748/0.6134, allocations: 207.2 kB / 0.6167 GB, free: 14.23 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.378/2.992, allocations: 0 / 0.6167 GB, free: 14.23 MB / 442.7 MB (rm -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_002_fmu --startTime=0 --stopTime=2000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_002.fmu > AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe 2>&1)