Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.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.001243/0.001243, allocations: 113.4 kB / 19.73 MB, free: 2.227 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.00148/0.00148, allocations: 219.3 kB / 23.04 MB, free: 5.059 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.558/1.558, allocations: 230.6 MB / 256.8 MB, free: 8.004 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.1034/0.1034, 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_001,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_001",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_001",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.002196/0.002196, allocations: 71.89 kB / 472.3 MB, free: 8.008 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3718/0.374, allocations: 59.28 MB / 0.5191 GB, free: 10.62 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowOnePort_pwh.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/Interfaces/flowOnePort_pwh.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_001): time 0.03691/0.4109, allocations: 22.87 MB / 0.5414 GB, free: 2.473 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008547/0.4118, allocations: 212.5 kB / 0.5416 GB, free: 2.316 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001549/0.4119, allocations: 15.53 kB / 0.5417 GB, free: 2.309 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 8.716e-05/0.412, allocations: 31.11 kB / 0.5417 GB, free: 2.289 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002287/0.4122, allocations: 110.6 kB / 0.5418 GB, free: 2.211 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000136/0.4124, allocations: 38.8 kB / 0.5418 GB, free: 2.191 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002484/0.4126, allocations: 294.4 kB / 0.5421 GB, free: 2.039 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002198/0.4128, allocations: 130 kB / 0.5422 GB, free: 1.984 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001952/0.413, allocations: 140.5 kB / 0.5424 GB, free: 1.926 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001463/0.4132, allocations: 91.5 kB / 0.5425 GB, free: 1.883 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.307e-05/0.4132, allocations: 17.75 kB / 0.5425 GB, free: 1.879 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.797e-05/0.4132, allocations: 15.12 kB / 0.5425 GB, free: 1.879 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.783e-05/0.4133, allocations: 52.73 kB / 0.5425 GB, free: 1.84 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.437e-05/0.4134, allocations: 108.1 kB / 0.5426 GB, free: 1.777 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000252/0.4136, allocations: 227.2 kB / 0.5429 GB, free: 1.684 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.4136, allocations: 5.719 kB / 0.5429 GB, free: 1.68 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.4136, allocations: 0 / 0.5429 GB, free: 1.68 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.231e-05/0.4136, allocations: 0 / 0.5429 GB, free: 1.68 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: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.0006418/0.4143, allocations: 454 kB / 0.5433 GB, free: 1.297 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.662e-05/0.4143, allocations: 9.609 kB / 0.5433 GB, free: 1.297 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.584e-05/0.4143, allocations: 9.047 kB / 0.5433 GB, free: 1.293 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.38e-05/0.4144, allocations: 51.64 kB / 0.5434 GB, free: 1.242 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.564e-05/0.4144, allocations: 25.67 kB / 0.5434 GB, free: 1.23 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002602/0.4147, allocations: 214.3 kB / 0.5436 GB, free: 1.047 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.941e-05/0.4147, allocations: 10.58 kB / 0.5436 GB, free: 1.043 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.325e-05/0.4147, allocations: 15.72 kB / 0.5436 GB, free: 1.039 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003155/0.415, allocations: 192 kB / 0.5438 GB, free: 0.918 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.233e-05/0.4151, allocations: 5.844 kB / 0.5438 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.673e-05/0.4151, allocations: 9.281 kB / 0.5438 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.979e-06/0.4151, allocations: 9.219 kB / 0.5438 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003166/0.4154, allocations: 116.8 kB / 0.5439 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007186/0.4161, allocations: 0.8064 MB / 0.5447 GB, free: 176 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001854/0.4163, allocations: 79.94 kB / 0.5448 GB, free: 128 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001312/0.4164, allocations: 57.16 kB / 0.5449 GB, free: 100 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.8e-05/0.4165, allocations: 6.734 kB / 0.5449 GB, free: 96 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.869e-05/0.4165, allocations: 43.94 kB / 0.5449 GB, free: 44 kB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.202e-06/0.4165, allocations: 0 / 0.5449 GB, free: 44 kB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005276/0.417, allocations: 176.5 kB / 0.5451 GB, free: 15.96 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.163e-05/0.4171, allocations: 57.48 kB / 0.5451 GB, free: 15.89 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002438/0.4173, allocations: 226.2 kB / 0.5453 GB, free: 15.76 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.258e-05/0.4173, allocations: 25.7 kB / 0.5454 GB, free: 15.73 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001132/0.4174, allocations: 148.2 kB / 0.5455 GB, free: 15.59 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.866e-05/0.4175, allocations: 52.45 kB / 0.5456 GB, free: 15.55 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.729e-05/0.4175, allocations: 35.11 kB / 0.5456 GB, free: 15.52 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001622/0.4177, allocations: 337.1 kB / 0.5459 GB, free: 15.2 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001294/0.4178, allocations: 39.23 kB / 0.5459 GB, free: 15.18 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001452/0.418, allocations: 61.97 kB / 0.546 GB, free: 15.15 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008418/0.4188, allocations: 233.9 kB / 0.5462 GB, free: 15.05 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.4188, allocations: 0 / 0.5462 GB, free: 15.05 MB / 398.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003686/0.4192, allocations: 167.3 kB / 0.5464 GB, free: 14.96 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.981e-05/0.4192, allocations: 6.906 kB / 0.5464 GB, free: 14.96 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.96e-06/0.4192, allocations: 0 / 0.5464 GB, free: 14.96 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.305e-05/0.4192, allocations: 2.25 kB / 0.5464 GB, free: 14.96 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002141/0.4194, allocations: 40.77 kB / 0.5464 GB, free: 14.95 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/0.4195, allocations: 1.812 kB / 0.5464 GB, free: 14.95 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001201/0.4196, allocations: 18.36 kB / 0.5465 GB, free: 14.94 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.141e-05/0.4196, allocations: 4.094 kB / 0.5465 GB, free: 14.94 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: 3 * 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 (18): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001791/0.4198, allocations: 138.6 kB / 0.5466 GB, free: 14.81 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.536e-05/0.4198, allocations: 25 kB / 0.5466 GB, free: 14.79 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.383e-05/0.4199, allocations: 25.97 kB / 0.5466 GB, free: 14.77 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.095e-06/0.4199, allocations: 2.156 kB / 0.5466 GB, free: 14.77 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.4199, allocations: 4.688 kB / 0.5466 GB, free: 14.77 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.4199, allocations: 0.75 kB / 0.5466 GB, free: 14.77 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002989/0.4202, allocations: 237.9 kB / 0.5469 GB, free: 14.57 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.4202, allocations: 0 / 0.5469 GB, free: 14.57 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002074/0.4204, allocations: 33.92 kB / 0.5469 GB, free: 14.56 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.4204, allocations: 1.828 kB / 0.5469 GB, free: 14.56 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.33e-05/0.4204, allocations: 1.562 kB / 0.5469 GB, free: 14.56 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.4204, allocations: 4.609 kB / 0.5469 GB, free: 14.56 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.4204, allocations: 0 / 0.5469 GB, free: 14.56 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005297/0.4209, allocations: 297.3 kB / 0.5472 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.192e-05/0.421, allocations: 24.81 kB / 0.5472 GB, free: 14.34 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.41e-05/0.421, allocations: 4.969 kB / 0.5472 GB, free: 14.34 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001313/0.4211, allocations: 12.42 kB / 0.5472 GB, free: 14.33 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.117e-05/0.4212, allocations: 12.91 kB / 0.5472 GB, free: 14.33 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.177e-06/0.4212, allocations: 3.953 kB / 0.5473 GB, free: 14.33 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001572/0.4214, allocations: 168 kB / 0.5474 GB, free: 14.22 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4214, allocations: 0 / 0.5474 GB, free: 14.22 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002787/0.4216, allocations: 45.5 kB / 0.5475 GB, free: 14.21 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (14): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008269/0.4225, allocations: 0.8375 MB / 0.5483 GB, free: 13.44 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003251/0.4228, allocations: 105 kB / 0.5484 GB, free: 13.35 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.4228, allocations: 0 / 0.5484 GB, free: 13.35 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001443/0.4229, allocations: 54.8 kB / 0.5484 GB, free: 13.3 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003947/0.4233, allocations: 46.67 kB / 0.5485 GB, free: 13.27 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003198/0.4265, allocations: 2.303 MB / 0.5507 GB, free: 11.01 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000379/0.4269, allocations: 0.7328 MB / 0.5514 GB, free: 10.27 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001314/0.427, allocations: 32.55 kB / 0.5515 GB, free: 10.25 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001155/0.4272, allocations: 69.34 kB / 0.5515 GB, free: 10.19 MB / 398.1 MB Notification: Performance of SimCode: time 6.01e-07/0.4272, allocations: 4 kB / 0.5515 GB, free: 10.18 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02737/0.4545, allocations: 4.862 MB / 0.5563 GB, free: 7.145 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.4/11.85, allocations: 3.328 kB / 0.5563 GB, free: 7.145 MB / 398.1 MB " [Timeout remaining time 648] (rm -f AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_001_fmu --startTime=0 --stopTime=5000 --stepSize=50 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_001.fmu > AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.747856544039678] Failed to read output from testmodel.py, exit status != 0: 12.02852948900545 12.047487678 11.629983232 Calling exit ...