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/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001587/0.001587, allocations: 108.2 kB / 17.15 MB, free: 6.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001712/0.001712, allocations: 208.5 kB / 20.11 MB, free: 3.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.573/1.573, allocations: 230.6 MB / 253.5 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.105/0.105, allocations: 24.03 MB / 333.6 MB, free: 1.562 MB / 254.1 MB " [Timeout remaining time 180] Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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"}) [Timeout 660] "Notification: AES requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003282/0.003282, allocations: 66.31 kB / 468.4 MB, free: 31.52 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.1194, allocations: 59.55 MB / 0.5156 GB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002): time 0.004729/0.1241, allocations: 3.365 MB / 0.5189 GB, free: 8.914 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001813/0.1259, allocations: 0.9781 MB / 0.5198 GB, free: 7.93 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001816/0.1261, allocations: 11.88 kB / 0.5198 GB, free: 7.918 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002469/0.1263, allocations: 99.14 kB / 0.5199 GB, free: 7.82 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004529/0.1268, allocations: 270.4 kB / 0.5202 GB, free: 7.555 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005124/0.1273, allocations: 191.7 kB / 0.5204 GB, free: 7.367 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001323/0.1286, allocations: 1.236 MB / 0.5216 GB, free: 6.129 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001085/0.1297, allocations: 0.7419 MB / 0.5223 GB, free: 5.371 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008185/0.1305, allocations: 490.8 kB / 0.5228 GB, free: 4.891 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008834/0.1314, allocations: 0.5764 MB / 0.5233 GB, free: 4.312 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002182/0.1316, allocations: 136 kB / 0.5235 GB, free: 4.18 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002198/0.1318, allocations: 132 kB / 0.5236 GB, free: 4.051 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003866/0.1322, allocations: 411 kB / 0.524 GB, free: 3.648 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005878/0.1328, allocations: 0.5331 MB / 0.5245 GB, free: 3.113 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001474/0.1343, allocations: 1.468 MB / 0.5259 GB, free: 1.641 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.1343, allocations: 0 / 0.5259 GB, free: 1.641 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.1343, allocations: 0 / 0.5259 GB, free: 1.641 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.573e-05/0.1343, allocations: 0 / 0.5259 GB, free: 1.641 MB / 382.1 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.003014/0.1373, allocations: 1.311 MB / 0.5272 GB, free: 288 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.357e-05/0.1374, allocations: 8.625 kB / 0.5272 GB, free: 280 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001711/0.1375, allocations: 118.7 kB / 0.5273 GB, free: 152 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002003/0.1377, allocations: 88.42 kB / 0.5274 GB, free: 64 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000941/0.1387, allocations: 0.5741 MB / 0.528 GB, free: 15.45 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.593e-05/0.1388, allocations: 76.27 kB / 0.528 GB, free: 15.38 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001552/0.1389, allocations: 84.33 kB / 0.5281 GB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001696/0.1406, allocations: 0.9325 MB / 0.529 GB, free: 14.36 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.871e-05/0.1406, allocations: 0 / 0.529 GB, free: 14.36 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.866e-05/0.1407, allocations: 32 kB / 0.5291 GB, free: 14.32 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.578e-05/0.1408, allocations: 16 kB / 0.5291 GB, free: 14.31 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001394/0.1421, allocations: 0.8121 MB / 0.5299 GB, free: 13.49 MB / 398.1 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.006237/0.1484, allocations: 3.992 MB / 0.5338 GB, free: 9.215 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002802/0.1512, allocations: 1.017 MB / 0.5348 GB, free: 8.188 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006806/0.1519, allocations: 410.3 kB / 0.5352 GB, free: 7.785 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.38e-05/0.1519, allocations: 12.56 kB / 0.5352 GB, free: 7.773 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.35e-05/0.152, allocations: 47.05 kB / 0.5352 GB, free: 7.715 MB / 398.1 MB Notification: Performance of pre-optimization done (n=58): time 3.868e-06/0.152, allocations: 3.984 kB / 0.5352 GB, free: 7.711 MB / 398.1 MB Notification: Performance of matching and sorting (n=58): time 0.004529/0.1565, allocations: 2.358 MB / 0.5375 GB, free: 5.129 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.487e-05/0.1565, allocations: 55.97 kB / 0.5376 GB, free: 5.062 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005661/0.1571, allocations: 417.6 kB / 0.538 GB, free: 4.648 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.358e-05/0.1572, allocations: 33.7 kB / 0.538 GB, free: 4.609 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002499/0.1574, allocations: 336.6 kB / 0.5383 GB, free: 4.273 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002558/0.1577, allocations: 249.9 kB / 0.5386 GB, free: 4.027 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002507/0.1579, allocations: 126.7 kB / 0.5387 GB, free: 3.898 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001829/0.1581, allocations: 366.8 kB / 0.539 GB, free: 3.531 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000719/0.1588, allocations: 456.6 kB / 0.5395 GB, free: 3.086 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007739/0.1596, allocations: 0.4965 MB / 0.54 GB, free: 2.57 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007538/0.1671, allocations: 2.367 MB / 0.5423 GB, free: 180 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.468e-06/0.1671, allocations: 0 / 0.5423 GB, free: 180 kB / 398.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.002689/0.1698, allocations: 1.337 MB / 0.5436 GB, free: 14.8 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.997e-05/0.1699, allocations: 5.875 kB / 0.5436 GB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.1699, allocations: 0 / 0.5436 GB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001192/0.1711, allocations: 348.3 kB / 0.5439 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009082/0.172, allocations: 191.8 kB / 0.5441 GB, free: 14.24 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01296/0.1849, allocations: 15.14 MB / 0.5589 GB, free: 13.67 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006958/0.1856, allocations: 71.62 kB / 0.559 GB, free: 13.6 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.546e-05/0.1857, allocations: 31.98 kB / 0.559 GB, free: 13.57 MB / 430.1 MB Warning: Assuming fixed start value for the following 2 variables: CH.Ec:VARIABLE(flow=false 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 (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005581/0.1862, allocations: 282.3 kB / 0.5593 GB, free: 13.28 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001325/0.1864, allocations: 55.62 kB / 0.5593 GB, free: 13.23 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002364/0.1887, allocations: 1.135 MB / 0.5604 GB, free: 12.05 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.212e-05/0.1888, allocations: 8 kB / 0.5604 GB, free: 12.05 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.809e-06/0.1888, allocations: 4 kB / 0.5604 GB, free: 12.04 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.364e-06/0.1888, allocations: 4 kB / 0.5604 GB, free: 12.04 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003939/0.1927, allocations: 2.137 MB / 0.5625 GB, free: 9.801 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.039e-06/0.1927, allocations: 0 / 0.5625 GB, free: 9.801 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001042/0.1938, allocations: 168 kB / 0.5627 GB, free: 9.637 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009128/0.1947, allocations: 312.3 kB / 0.563 GB, free: 9.301 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.812e-05/0.1948, allocations: 31.98 kB / 0.563 GB, free: 9.27 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01177/0.2065, allocations: 14.72 MB / 0.5774 GB, free: 9.152 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.2065, allocations: 3.938 kB / 0.5774 GB, free: 9.148 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002978/0.2095, allocations: 1.6 MB / 0.5789 GB, free: 7.492 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001859/0.2097, allocations: 148.6 kB / 0.5791 GB, free: 7.328 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001091/0.2098, allocations: 32.11 kB / 0.5791 GB, free: 7.297 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004351/0.2102, allocations: 27.97 kB / 0.5791 GB, free: 7.27 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001646/0.2104, allocations: 60.42 kB / 0.5792 GB, free: 7.211 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.231e-05/0.2105, allocations: 16 kB / 0.5792 GB, free: 7.195 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003825/0.2108, allocations: 303.1 kB / 0.5795 GB, free: 6.898 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2108, allocations: 0 / 0.5795 GB, free: 6.898 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0009809/0.2118, allocations: 299.5 kB / 0.5798 GB, free: 6.605 MB / 446.1 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 (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003157/0.215, allocations: 2.182 MB / 0.5819 GB, free: 4.355 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002762/0.2177, allocations: 2.012 MB / 0.5839 GB, free: 2.219 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.2178, allocations: 0 / 0.5839 GB, free: 2.219 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001837/0.2196, allocations: 1.541 MB / 0.5854 GB, free: 0.5508 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007829/0.2204, allocations: 177.3 kB / 0.5856 GB, free: 380 kB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2268/0.4471, allocations: 8.856 MB / 0.5942 GB, free: 64.27 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005547/0.4477, allocations: 1.008 MB / 0.5952 GB, free: 63.52 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0005296/0.4482, allocations: 170.6 kB / 0.5954 GB, free: 63.51 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000365/0.4486, allocations: 258 kB / 0.5956 GB, free: 63.31 MB / 446.1 MB Notification: Performance of SimCode: time 1.042e-06/0.4486, allocations: 0 / 0.5956 GB, free: 63.31 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06848/0.5171, allocations: 19.85 MB / 0.615 GB, free: 55.17 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.22/11.74, allocations: 11.02 kB / 0.615 GB, free: 55.16 MB / 446.1 MB " [Timeout remaining time 648] (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 & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002_res.csv --start-time 0 --stop-time 2000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4 AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_002.fmu > AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.683875739807263] Failed to read output from testmodel.py, exit status != 0: 11.83166505000554 11.839756985 11.703293413 Calling exit ...