Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.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.001887/0.001887, allocations: 103.5 kB / 16.45 MB, free: 6.449 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.001578/0.001578, allocations: 210.4 kB / 19.43 MB, free: 3.637 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.486/1.486, allocations: 230.6 MB / 252.8 MB, free: 9.117 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.1078/0.1078, allocations: 24.12 MB / 333 MB, free: 12.63 MB / 270.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.HeatExchanger_1vol_case_003,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_003",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_003",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.00342/0.00342, allocations: 59.91 kB / 467.9 MB, free: 9.07 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3885/0.3919, allocations: 59.57 MB / 0.5151 GB, free: 9.605 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Liquid/HE_LiquidLiquid_1vol.mo:4:3-4:45:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Liquid/HE_LiquidLiquid_1vol.mo:4:3-4:45:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer \"system\" component but an inner \"system\" component is not defined. Drag AES.ProcessComponents.Thermal.System_settings.System_liquid into your model to specify the working fluid properties. Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003): time 0.03866/0.4306, allocations: 23.48 MB / 0.538 GB, free: 1.098 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001195/0.4318, allocations: 426.3 kB / 0.5384 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002083/0.432, allocations: 16.12 kB / 0.5384 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 9.945e-05/0.4321, allocations: 46.38 kB / 0.5385 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003618/0.4325, allocations: 148.1 kB / 0.5386 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002114/0.4327, allocations: 86.7 kB / 0.5387 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003811/0.4331, allocations: 424.1 kB / 0.5391 GB, free: 400 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000274/0.4333, allocations: 210.4 kB / 0.5393 GB, free: 296 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002308/0.4336, allocations: 203.2 kB / 0.5395 GB, free: 212 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002132/0.4338, allocations: 183.9 kB / 0.5397 GB, free: 124 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.327e-05/0.4338, allocations: 28.56 kB / 0.5397 GB, free: 124 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001282/0.434, allocations: 63.86 kB / 0.5397 GB, free: 112 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.687e-05/0.434, allocations: 70.58 kB / 0.5398 GB, free: 64 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001688/0.4342, allocations: 182.8 kB / 0.54 GB, free: 15.95 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004786/0.4346, allocations: 413.4 kB / 0.5404 GB, free: 15.79 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.4346, allocations: 0 / 0.5404 GB, free: 15.79 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.4347, allocations: 0 / 0.5404 GB, free: 15.79 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.119e-05/0.4347, allocations: 0 / 0.5404 GB, free: 15.79 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.001103/0.4358, allocations: 0.6378 MB / 0.541 GB, free: 15.25 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.4358, allocations: 9.562 kB / 0.541 GB, free: 15.25 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.275e-05/0.4359, allocations: 64.22 kB / 0.5411 GB, free: 15.19 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.36e-05/0.436, allocations: 38.34 kB / 0.5411 GB, free: 15.17 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004349/0.4364, allocations: 323.1 kB / 0.5414 GB, free: 14.9 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.335e-05/0.4364, allocations: 19.28 kB / 0.5414 GB, free: 14.89 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.027e-05/0.4365, allocations: 27.02 kB / 0.5415 GB, free: 14.88 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004903/0.4369, allocations: 279.5 kB / 0.5417 GB, free: 14.74 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.323e-05/0.437, allocations: 7.875 kB / 0.5417 GB, free: 14.73 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.025e-05/0.437, allocations: 10.34 kB / 0.5417 GB, free: 14.73 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.335e-06/0.437, allocations: 6.75 kB / 0.5418 GB, free: 14.73 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004001/0.4374, allocations: 201.5 kB / 0.5419 GB, free: 14.66 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001454/0.4389, allocations: 0.9029 MB / 0.5428 GB, free: 14 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003663/0.4392, allocations: 144.1 kB / 0.543 GB, free: 13.93 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002122/0.4394, allocations: 101.7 kB / 0.5431 GB, free: 13.88 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.096e-05/0.4395, allocations: 6.281 kB / 0.5431 GB, free: 13.88 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.968e-05/0.4395, allocations: 40.89 kB / 0.5431 GB, free: 13.83 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002984/0.4398, allocations: 51.73 kB / 0.5432 GB, free: 13.82 MB / 398.1 MB Notification: Performance of pre-optimization done (n=18): time 1.362e-06/0.4398, allocations: 0 / 0.5432 GB, free: 13.82 MB / 398.1 MB Notification: Performance of matching and sorting (n=18): time 0.001485/0.4413, allocations: 451.4 kB / 0.5436 GB, free: 13.42 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.007e-05/0.4413, allocations: 59.34 kB / 0.5436 GB, free: 13.35 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003433/0.4417, allocations: 296.5 kB / 0.5439 GB, free: 13.09 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.814e-05/0.4417, allocations: 33.7 kB / 0.544 GB, free: 13.05 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001442/0.4419, allocations: 180.8 kB / 0.5441 GB, free: 12.88 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.822e-05/0.4419, allocations: 60.89 kB / 0.5442 GB, free: 12.82 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001013/0.442, allocations: 53.22 kB / 0.5442 GB, free: 12.77 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001766/0.4422, allocations: 344.1 kB / 0.5446 GB, free: 12.44 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001409/0.4423, allocations: 64.44 kB / 0.5446 GB, free: 12.38 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001878/0.4425, allocations: 85.25 kB / 0.5447 GB, free: 12.3 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004204/0.4467, allocations: 0.6967 MB / 0.5454 GB, free: 11.8 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.4467, allocations: 4 kB / 0.5454 GB, free: 11.79 MB / 398.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0009321/0.4477, allocations: 309 kB / 0.5457 GB, free: 11.52 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.061e-05/0.4477, allocations: 8.656 kB / 0.5457 GB, free: 11.51 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.4477, allocations: 4.031 kB / 0.5457 GB, free: 11.5 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008393/0.4485, allocations: 103.4 kB / 0.5458 GB, free: 11.43 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002679/0.4488, allocations: 45.03 kB / 0.5458 GB, free: 11.39 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000671/0.4495, allocations: 0.581 MB / 0.5464 GB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002511/0.4497, allocations: 8.688 kB / 0.5464 GB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.55e-05/0.4497, allocations: 6.484 kB / 0.5464 GB, free: 10.78 MB / 398.1 MB Warning: Assuming fixed start value for the following 2 variables: HE.Tho:VARIABLE(min = 0.0 start = 339.5666268514094 unit = \"K\" fixed = true nominal = 300.0 ) type: Real HE.Tco:VARIABLE(min = 0.0 start = 299.958408982322 unit = \"K\" fixed = true nominal = 300.0 ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (21): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0003333/0.4501, allocations: 152.5 kB / 0.5466 GB, free: 10.62 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.142e-05/0.4501, allocations: 27.81 kB / 0.5466 GB, free: 10.6 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00103/0.4512, allocations: 361 kB / 0.5469 GB, free: 10.29 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.783e-06/0.4512, allocations: 4 kB / 0.5469 GB, free: 10.29 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.4512, allocations: 0 / 0.5469 GB, free: 10.29 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.4512, allocations: 0 / 0.5469 GB, free: 10.29 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00147/0.4527, allocations: 0.7244 MB / 0.5477 GB, free: 9.602 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/0.4527, allocations: 0 / 0.5477 GB, free: 9.602 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002556/0.4529, allocations: 42.08 kB / 0.5477 GB, free: 9.566 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005795/0.4535, allocations: 101.3 kB / 0.5478 GB, free: 9.488 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.471e-05/0.4535, allocations: 8 kB / 0.5478 GB, free: 9.48 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000477/0.454, allocations: 0.6003 MB / 0.5484 GB, free: 8.863 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.454, allocations: 0 / 0.5484 GB, free: 8.863 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001025/0.455, allocations: 0.5061 MB / 0.5489 GB, free: 8.371 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001278/0.4552, allocations: 115.3 kB / 0.549 GB, free: 8.242 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.998e-05/0.4552, allocations: 8.844 kB / 0.549 GB, free: 8.234 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001686/0.4554, allocations: 4 kB / 0.549 GB, free: 8.23 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.009e-05/0.4554, allocations: 22.66 kB / 0.549 GB, free: 8.215 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.279e-05/0.4555, allocations: 13.36 kB / 0.549 GB, free: 8.203 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000276/0.4557, allocations: 210.4 kB / 0.5492 GB, free: 8.02 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4557, allocations: 3.938 kB / 0.5492 GB, free: 8.016 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003749/0.4561, allocations: 76.69 kB / 0.5493 GB, free: 7.941 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (HE.Tho,HE.Tco) * 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 (21): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001186/0.4573, allocations: 1.021 MB / 0.5503 GB, free: 6.918 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005632/0.4579, allocations: 190.2 kB / 0.5505 GB, free: 6.754 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.4579, allocations: 0 / 0.5505 GB, free: 6.754 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003114/0.4582, allocations: 109.4 kB / 0.5506 GB, free: 6.66 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004509/0.4586, allocations: 63.81 kB / 0.5507 GB, free: 6.609 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004948/0.4636, allocations: 3.001 MB / 0.5536 GB, free: 3.727 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004937/0.4641, allocations: 0.7733 MB / 0.5543 GB, free: 2.961 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000213/0.4643, allocations: 47.98 kB / 0.5544 GB, free: 2.926 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002183/0.4645, allocations: 116.3 kB / 0.5545 GB, free: 2.824 MB / 398.1 MB Notification: Performance of SimCode: time 1.492e-06/0.4645, allocations: 3.938 kB / 0.5545 GB, free: 2.82 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03814/0.5026, allocations: 7.291 MB / 0.5616 GB, free: 12.48 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.06/12.56, allocations: 0 / 0.5616 GB, free: 12.48 MB / 414.1 MB " [Timeout remaining time 647] (rm -f AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003_res.csv --start-time 0 --stop-time 1000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 2 AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_003.fmu > AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.375187447993085] Failed to read output from testmodel.py, exit status != 0: 12.674757044995204 12.688001129 12.250186356 Calling exit ...