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.001305/0.001305, allocations: 101.3 kB / 19.73 MB, free: 2.133 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.001426/0.001426, allocations: 220.1 kB / 23.03 MB, free: 4.941 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.485/1.485, allocations: 230.6 MB / 256.8 MB, free: 7.785 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.1022/0.1022, allocations: 22.95 MB / 336.2 MB, free: 12.39 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.001979/0.001979, allocations: 59.91 kB / 472.2 MB, free: 7.855 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3637/0.3657, allocations: 59.29 MB / 0.519 GB, free: 10.59 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.07366/0.4394, allocations: 22.7 MB / 0.5412 GB, free: 2.605 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001144/0.4405, allocations: 218 kB / 0.5414 GB, free: 2.445 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001679/0.4407, allocations: 17 kB / 0.5414 GB, free: 2.438 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 8.46e-05/0.4408, allocations: 24.98 kB / 0.5414 GB, free: 2.422 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002594/0.441, allocations: 112.7 kB / 0.5415 GB, free: 2.34 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001567/0.4412, allocations: 45.41 kB / 0.5416 GB, free: 2.316 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002769/0.4415, allocations: 289.9 kB / 0.5419 GB, free: 2.168 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002544/0.4417, allocations: 125.8 kB / 0.542 GB, free: 2.113 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002158/0.4419, allocations: 138.7 kB / 0.5421 GB, free: 2.055 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001564/0.4421, allocations: 104.8 kB / 0.5422 GB, free: 2 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.543e-05/0.4421, allocations: 15.12 kB / 0.5422 GB, free: 2 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.57e-05/0.4422, allocations: 15.12 kB / 0.5422 GB, free: 2 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.378e-05/0.4422, allocations: 36.27 kB / 0.5423 GB, free: 1.977 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001122/0.4423, allocations: 91.84 kB / 0.5424 GB, free: 1.93 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002741/0.4426, allocations: 236 kB / 0.5426 GB, free: 1.832 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.4426, allocations: 0 / 0.5426 GB, free: 1.832 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.4426, allocations: 0 / 0.5426 GB, free: 1.832 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.703e-06/0.4426, allocations: 4 kB / 0.5426 GB, free: 1.828 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.0007217/0.4434, allocations: 453.8 kB / 0.543 GB, free: 1.445 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.537e-05/0.4434, allocations: 10.52 kB / 0.543 GB, free: 1.445 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.467e-05/0.4434, allocations: 6.016 kB / 0.543 GB, free: 1.445 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.032e-05/0.4435, allocations: 55.98 kB / 0.5431 GB, free: 1.391 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.215e-05/0.4435, allocations: 25.89 kB / 0.5431 GB, free: 1.379 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002929/0.4438, allocations: 217.7 kB / 0.5433 GB, free: 1.191 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.342e-05/0.4438, allocations: 11.3 kB / 0.5433 GB, free: 1.188 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.518e-05/0.4439, allocations: 14.59 kB / 0.5434 GB, free: 1.184 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003731/0.4442, allocations: 197.5 kB / 0.5435 GB, free: 1.059 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.292e-05/0.4443, allocations: 0.875 kB / 0.5435 GB, free: 1.059 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.111e-05/0.4443, allocations: 6.594 kB / 0.5435 GB, free: 1.055 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.035e-05/0.4443, allocations: 3.938 kB / 0.5436 GB, free: 1.055 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000324/0.4446, allocations: 125.3 kB / 0.5437 GB, free: 1.012 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008148/0.4454, allocations: 0.7722 MB / 0.5444 GB, free: 340 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001987/0.4456, allocations: 75.02 kB / 0.5445 GB, free: 296 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001295/0.4457, allocations: 53.55 kB / 0.5445 GB, free: 272 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.355e-05/0.4458, allocations: 1.312 kB / 0.5445 GB, free: 272 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.173e-05/0.4458, allocations: 44.64 kB / 0.5446 GB, free: 220 kB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.283e-06/0.4458, allocations: 0 / 0.5446 GB, free: 220 kB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004868/0.4463, allocations: 181.1 kB / 0.5448 GB, free: 132 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.365e-05/0.4463, allocations: 54.23 kB / 0.5448 GB, free: 68 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002554/0.4466, allocations: 224.7 kB / 0.545 GB, free: 15.93 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.588e-05/0.4466, allocations: 31.2 kB / 0.5451 GB, free: 15.89 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001212/0.4467, allocations: 146.9 kB / 0.5452 GB, free: 15.76 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.482e-05/0.4468, allocations: 58.5 kB / 0.5453 GB, free: 15.71 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.216e-05/0.4468, allocations: 29.95 kB / 0.5453 GB, free: 15.69 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001755/0.447, allocations: 338.2 kB / 0.5456 GB, free: 15.36 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001256/0.4471, allocations: 38.22 kB / 0.5456 GB, free: 15.35 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001481/0.4473, allocations: 68.08 kB / 0.5457 GB, free: 15.31 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000868/0.4482, allocations: 227.7 kB / 0.5459 GB, free: 15.21 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.4482, allocations: 0 / 0.5459 GB, free: 15.21 MB / 398.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004352/0.4486, allocations: 160.1 kB / 0.5461 GB, free: 15.14 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.723e-05/0.4486, allocations: 6.438 kB / 0.5461 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.4486, allocations: 4.812 kB / 0.5461 GB, free: 15.13 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.682e-05/0.4486, allocations: 2.625 kB / 0.5461 GB, free: 15.13 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002184/0.4488, allocations: 40.19 kB / 0.5461 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.286e-06/0.4489, allocations: 1.438 kB / 0.5461 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001189/0.449, allocations: 14.72 kB / 0.5461 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.436e-05/0.449, allocations: 7.906 kB / 0.5462 GB, free: 15.11 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.0002335/0.4492, allocations: 150.5 kB / 0.5463 GB, free: 14.97 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.431e-05/0.4493, allocations: 21.98 kB / 0.5463 GB, free: 14.96 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.239e-05/0.4493, allocations: 26.48 kB / 0.5463 GB, free: 14.94 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.4493, allocations: 1.375 kB / 0.5463 GB, free: 14.94 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.4493, allocations: 0 / 0.5463 GB, free: 14.94 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.651e-06/0.4494, allocations: 2.094 kB / 0.5463 GB, free: 14.94 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003471/0.4497, allocations: 222.9 kB / 0.5466 GB, free: 14.74 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.4497, allocations: 4 kB / 0.5466 GB, free: 14.73 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002164/0.4499, allocations: 29.38 kB / 0.5466 GB, free: 14.73 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.407e-06/0.4499, allocations: 5.312 kB / 0.5466 GB, free: 14.73 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.709e-05/0.4499, allocations: 5.734 kB / 0.5466 GB, free: 14.73 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.4499, allocations: 0 / 0.5466 GB, free: 14.73 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.4499, allocations: 1.188 kB / 0.5466 GB, free: 14.73 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005906/0.4505, allocations: 300.1 kB / 0.5469 GB, free: 14.5 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.045e-05/0.4506, allocations: 17.52 kB / 0.5469 GB, free: 14.48 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.882e-05/0.4506, allocations: 8.562 kB / 0.5469 GB, free: 14.47 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001274/0.4507, allocations: 5.125 kB / 0.5469 GB, free: 14.47 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.617e-05/0.4508, allocations: 18.55 kB / 0.5469 GB, free: 14.46 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.035e-05/0.4508, allocations: 8.062 kB / 0.5469 GB, free: 14.45 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001957/0.451, allocations: 163.7 kB / 0.5471 GB, free: 14.3 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.451, allocations: 3.938 kB / 0.5471 GB, free: 14.3 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002857/0.4513, allocations: 47.95 kB / 0.5471 GB, free: 14.25 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.0009904/0.4523, allocations: 0.8344 MB / 0.548 GB, free: 13.41 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000354/0.4527, allocations: 109.3 kB / 0.5481 GB, free: 13.32 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.4527, allocations: 0 / 0.5481 GB, free: 13.32 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001473/0.4528, allocations: 54.27 kB / 0.5481 GB, free: 13.27 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004131/0.4532, allocations: 43.05 kB / 0.5482 GB, free: 13.24 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003458/0.4567, allocations: 2.307 MB / 0.5504 GB, free: 10.98 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001484/0.4568, allocations: 130 kB / 0.5505 GB, free: 10.86 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001526/0.457, allocations: 24.73 kB / 0.5506 GB, free: 10.84 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001231/0.4571, allocations: 73.48 kB / 0.5506 GB, free: 10.77 MB / 398.1 MB Notification: Performance of SimCode: time 8.42e-07/0.4571, allocations: 0 / 0.5506 GB, free: 10.77 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02804/0.4851, allocations: 5.103 MB / 0.5556 GB, free: 7.531 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.4/11.88, allocations: 12.75 kB / 0.5556 GB, free: 7.52 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.722882990026847] Failed to read output from testmodel.py, exit status != 0: 12.050260980031453 12.067174081 11.620050427 Calling exit ...