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.001377/0.001377, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.00143/0.00143, allocations: 216.1 kB / 23.04 MB, free: 5.07 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.517/1.517, allocations: 230.6 MB / 256.8 MB, free: 8 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.1039/0.1039, allocations: 22.93 MB / 336.2 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="cs",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="cs",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.002228/0.002228, allocations: 63.89 kB / 472.3 MB, free: 8.039 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.367/0.3693, allocations: 59.28 MB / 0.5191 GB, free: 10.69 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.03903/0.4083, allocations: 23.32 MB / 0.5419 GB, free: 2.207 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001303/0.4096, allocations: 427.4 kB / 0.5423 GB, free: 1.898 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001973/0.4098, allocations: 16.84 kB / 0.5423 GB, free: 1.891 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001113/0.4099, allocations: 46.66 kB / 0.5423 GB, free: 1.863 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000369/0.4103, allocations: 144.7 kB / 0.5425 GB, free: 1.762 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002094/0.4105, allocations: 89.2 kB / 0.5426 GB, free: 1.711 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000338/0.4108, allocations: 421.1 kB / 0.543 GB, free: 1.5 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003191/0.4112, allocations: 217.4 kB / 0.5432 GB, free: 1.398 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002464/0.4114, allocations: 205.2 kB / 0.5434 GB, free: 1.312 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000242/0.4116, allocations: 196.2 kB / 0.5436 GB, free: 1.215 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.665e-05/0.4117, allocations: 28.88 kB / 0.5436 GB, free: 1.215 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001314/0.4118, allocations: 56.72 kB / 0.5436 GB, free: 1.211 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.441e-05/0.4119, allocations: 65.77 kB / 0.5437 GB, free: 1.168 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001566/0.412, allocations: 182.6 kB / 0.5439 GB, free: 1.062 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004817/0.4125, allocations: 412.7 kB / 0.5443 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.4125, allocations: 5.531 kB / 0.5443 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.4125, allocations: 0 / 0.5443 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.136e-06/0.4125, allocations: 0.6094 kB / 0.5443 GB, free: 0.8906 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: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.0009564/0.4135, allocations: 0.5608 MB / 0.5448 GB, free: 456 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.285e-05/0.4135, allocations: 15.86 kB / 0.5448 GB, free: 452 kB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.847e-05/0.4135, allocations: 9.844 kB / 0.5448 GB, free: 448 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.91e-05/0.4136, allocations: 55.92 kB / 0.5449 GB, free: 396 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.078e-05/0.4137, allocations: 38.73 kB / 0.5449 GB, free: 376 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003723/0.414, allocations: 253.5 kB / 0.5452 GB, free: 168 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.173e-05/0.4141, allocations: 18.19 kB / 0.5452 GB, free: 160 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.261e-05/0.4141, allocations: 23.97 kB / 0.5452 GB, free: 152 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004953/0.4146, allocations: 285.9 kB / 0.5455 GB, free: 0 / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.315e-05/0.4146, allocations: 0.7031 kB / 0.5455 GB, free: 0 / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.458e-05/0.4147, allocations: 10.55 kB / 0.5455 GB, free: 15.99 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.468e-06/0.4147, allocations: 5.656 kB / 0.5455 GB, free: 15.99 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000432/0.4151, allocations: 201.9 kB / 0.5457 GB, free: 15.92 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001622/0.4167, allocations: 0.8659 MB / 0.5465 GB, free: 15.3 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004213/0.4172, allocations: 146.5 kB / 0.5467 GB, free: 15.23 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002468/0.4174, allocations: 101.4 kB / 0.5468 GB, free: 15.18 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.224e-05/0.4175, allocations: 11.22 kB / 0.5468 GB, free: 15.17 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.392e-05/0.4175, allocations: 32.84 kB / 0.5468 GB, free: 15.13 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000313/0.4178, allocations: 52.84 kB / 0.5469 GB, free: 15.12 MB / 398.1 MB Notification: Performance of pre-optimization done (n=18): time 1.503e-06/0.4178, allocations: 0 / 0.5469 GB, free: 15.12 MB / 398.1 MB Notification: Performance of matching and sorting (n=18): time 0.001558/0.4194, allocations: 377.1 kB / 0.5472 GB, free: 14.83 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.147e-05/0.4194, allocations: 52.02 kB / 0.5473 GB, free: 14.77 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003916/0.4198, allocations: 307.7 kB / 0.5476 GB, free: 14.48 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.853e-05/0.4198, allocations: 25.7 kB / 0.5476 GB, free: 14.45 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001555/0.42, allocations: 185 kB / 0.5478 GB, free: 14.28 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.465e-05/0.4201, allocations: 68.69 kB / 0.5478 GB, free: 14.22 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.371e-05/0.4201, allocations: 45.36 kB / 0.5479 GB, free: 14.18 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001833/0.4203, allocations: 352.5 kB / 0.5482 GB, free: 13.83 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001418/0.4205, allocations: 68.38 kB / 0.5483 GB, free: 13.77 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001608/0.4206, allocations: 83.89 kB / 0.5484 GB, free: 13.7 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004112/0.4247, allocations: 0.6921 MB / 0.549 GB, free: 13.19 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.4247, allocations: 0 / 0.549 GB, free: 13.19 MB / 398.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0008794/0.4256, allocations: 308 kB / 0.5493 GB, free: 12.91 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.902e-05/0.4256, allocations: 8 kB / 0.5493 GB, free: 12.91 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/0.4256, allocations: 0.5156 kB / 0.5493 GB, free: 12.91 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007916/0.4264, allocations: 107.4 kB / 0.5494 GB, free: 12.82 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002545/0.4267, allocations: 45.14 kB / 0.5495 GB, free: 12.79 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004854/0.4272, allocations: 0.5836 MB / 0.5501 GB, free: 12.19 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002141/0.4274, allocations: 4 kB / 0.5501 GB, free: 12.19 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.392e-05/0.4274, allocations: 16.09 kB / 0.5501 GB, free: 12.17 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.0002404/0.4277, allocations: 148.1 kB / 0.5502 GB, free: 12.02 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.396e-05/0.4277, allocations: 31.81 kB / 0.5502 GB, free: 11.99 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000928/0.4287, allocations: 353.3 kB / 0.5506 GB, free: 11.69 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.784e-06/0.4287, allocations: 4.797 kB / 0.5506 GB, free: 11.69 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.4287, allocations: 0 / 0.5506 GB, free: 11.69 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.4287, allocations: 1.5 kB / 0.5506 GB, free: 11.69 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001328/0.43, allocations: 0.6999 MB / 0.5513 GB, free: 11.03 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.43, allocations: 0 / 0.5513 GB, free: 11.03 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002543/0.4303, allocations: 38.09 kB / 0.5513 GB, free: 11 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005777/0.4308, allocations: 108.5 kB / 0.5514 GB, free: 10.91 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.559e-05/0.4309, allocations: 12.75 kB / 0.5514 GB, free: 10.9 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004406/0.4313, allocations: 0.5849 MB / 0.552 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.4313, allocations: 0 / 0.552 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000983/0.4323, allocations: 0.507 MB / 0.5525 GB, free: 9.809 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.314e-05/0.4323, allocations: 33.3 kB / 0.5525 GB, free: 9.777 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.347e-05/0.4324, allocations: 12.73 kB / 0.5525 GB, free: 9.766 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001668/0.4326, allocations: 4.641 kB / 0.5525 GB, free: 9.762 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.412e-05/0.4326, allocations: 28.58 kB / 0.5526 GB, free: 9.742 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.702e-05/0.4326, allocations: 5.453 kB / 0.5526 GB, free: 9.738 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002426/0.4329, allocations: 218.8 kB / 0.5528 GB, free: 9.551 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4329, allocations: 0 / 0.5528 GB, free: 9.551 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003559/0.4332, allocations: 75.89 kB / 0.5529 GB, free: 9.477 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.001121/0.4344, allocations: 1.009 MB / 0.5538 GB, free: 8.465 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005168/0.4349, allocations: 194.6 kB / 0.554 GB, free: 8.297 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.4349, allocations: 0 / 0.554 GB, free: 8.297 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002801/0.4352, allocations: 112.6 kB / 0.5541 GB, free: 8.199 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004456/0.4356, allocations: 69.31 kB / 0.5542 GB, free: 8.141 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004644/0.4403, allocations: 3.008 MB / 0.5571 GB, free: 5.246 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004179/0.4407, allocations: 0.7812 MB / 0.5579 GB, free: 4.477 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001847/0.4409, allocations: 44.22 kB / 0.5579 GB, free: 4.445 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001827/0.441, allocations: 116.3 kB / 0.5581 GB, free: 4.344 MB / 398.1 MB Notification: Performance of SimCode: time 6.72e-07/0.441, allocations: 0 / 0.5581 GB, free: 4.344 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03155/0.4726, allocations: 7.522 MB / 0.5654 GB, free: 13.69 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.19/13.66, allocations: 10.25 kB / 0.5654 GB, free: 13.68 MB / 414.1 MB " [Timeout remaining time 646] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_003_fmu --startTime=0 --stopTime=1000 --stepSize=2 --timeout=50 --tolerance=1e-06 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: 16.5156031200313] Failed to read output from testmodel.py, exit status != 0: 13.838634239975363 13.854288306 13.438412564 Calling exit ...