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.001738/0.001738, allocations: 116.8 kB / 17.17 MB, free: 5.977 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.001773/0.001773, allocations: 209.6 kB / 20.13 MB, free: 3.035 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.56/1.56, allocations: 230.6 MB / 253.5 MB, free: 15.1 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.1098/0.1098, allocations: 22.92 MB / 332.5 MB, free: 2.641 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.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.001951/0.001951, allocations: 75.11 kB / 466.8 MB, free: 32.16 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.115/0.117, allocations: 59.26 MB / 0.5137 GB, free: 14 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.03807/0.155, allocations: 22.85 MB / 0.536 GB, free: 7.254 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009323/0.156, allocations: 219.2 kB / 0.5362 GB, free: 7.039 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003159/0.1563, allocations: 15.88 kB / 0.5362 GB, free: 7.023 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001226/0.1564, allocations: 27.72 kB / 0.5363 GB, free: 6.996 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003964/0.1568, allocations: 103.2 kB / 0.5363 GB, free: 6.895 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001917/0.157, allocations: 43.94 kB / 0.5364 GB, free: 6.852 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000417/0.1574, allocations: 286.6 kB / 0.5367 GB, free: 6.57 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003254/0.1577, allocations: 133.3 kB / 0.5368 GB, free: 6.441 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002995/0.158, allocations: 139.4 kB / 0.5369 GB, free: 6.305 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002277/0.1583, allocations: 95.56 kB / 0.537 GB, free: 6.211 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.865e-05/0.1583, allocations: 19.98 kB / 0.537 GB, free: 6.191 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.442e-05/0.1583, allocations: 16 kB / 0.537 GB, free: 6.176 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.861e-05/0.1584, allocations: 43.78 kB / 0.5371 GB, free: 6.133 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001353/0.1585, allocations: 111.4 kB / 0.5372 GB, free: 6.023 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003288/0.1589, allocations: 234.9 kB / 0.5374 GB, free: 5.793 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.1589, allocations: 3.938 kB / 0.5374 GB, free: 5.789 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1589, allocations: 0 / 0.5374 GB, free: 5.789 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.595e-06/0.1589, allocations: 0 / 0.5374 GB, free: 5.789 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: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.0008544/0.1597, allocations: 0.518 MB / 0.5379 GB, free: 5.215 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.982e-05/0.1598, allocations: 12.62 kB / 0.5379 GB, free: 5.203 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.662e-05/0.1598, allocations: 4.516 kB / 0.5379 GB, free: 5.199 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.326e-05/0.1598, allocations: 50.73 kB / 0.538 GB, free: 5.141 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.81e-05/0.1599, allocations: 24.8 kB / 0.538 GB, free: 5.117 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003801/0.1603, allocations: 271.4 kB / 0.5383 GB, free: 4.812 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.758e-05/0.1603, allocations: 16.69 kB / 0.5383 GB, free: 4.797 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.057e-05/0.1603, allocations: 16.38 kB / 0.5383 GB, free: 4.781 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004267/0.1608, allocations: 200.4 kB / 0.5385 GB, free: 4.566 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/0.1608, allocations: 0 / 0.5385 GB, free: 4.566 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.852e-05/0.1608, allocations: 8 kB / 0.5385 GB, free: 4.559 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.794e-06/0.1608, allocations: 4 kB / 0.5385 GB, free: 4.555 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000344/0.1611, allocations: 123.9 kB / 0.5386 GB, free: 4.434 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001177/0.1623, allocations: 0.8445 MB / 0.5395 GB, free: 3.523 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002247/0.1625, allocations: 74.48 kB / 0.5395 GB, free: 3.441 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001544/0.1627, allocations: 56.83 kB / 0.5396 GB, free: 3.383 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.847e-05/0.1627, allocations: 0 / 0.5396 GB, free: 3.383 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.576e-05/0.1627, allocations: 34.56 kB / 0.5396 GB, free: 3.34 MB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.072e-06/0.1627, allocations: 4 kB / 0.5396 GB, free: 3.336 MB / 398.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005428/0.1633, allocations: 177.7 kB / 0.5398 GB, free: 3.156 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.309e-05/0.1633, allocations: 59.41 kB / 0.5398 GB, free: 3.086 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002498/0.1636, allocations: 225 kB / 0.5401 GB, free: 2.855 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.944e-05/0.1636, allocations: 25.7 kB / 0.5401 GB, free: 2.824 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001216/0.1637, allocations: 148.3 kB / 0.5402 GB, free: 2.672 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.666e-05/0.1638, allocations: 51.53 kB / 0.5403 GB, free: 2.621 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.043e-05/0.1638, allocations: 33.72 kB / 0.5403 GB, free: 2.582 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001659/0.164, allocations: 338.7 kB / 0.5406 GB, free: 2.242 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001316/0.1641, allocations: 43.91 kB / 0.5407 GB, free: 2.199 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001596/0.1643, allocations: 66.55 kB / 0.5407 GB, free: 2.125 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009068/0.1652, allocations: 218.6 kB / 0.5409 GB, free: 1.902 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.1652, allocations: 4 kB / 0.5409 GB, free: 1.898 MB / 398.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003894/0.1656, allocations: 168 kB / 0.5411 GB, free: 1.73 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.904e-05/0.1656, allocations: 7.984 kB / 0.5411 GB, free: 1.723 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.1656, allocations: 0 / 0.5411 GB, free: 1.723 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.629e-05/0.1656, allocations: 4 kB / 0.5411 GB, free: 1.719 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002164/0.1658, allocations: 31.98 kB / 0.5411 GB, free: 1.688 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.071e-06/0.1658, allocations: 0 / 0.5411 GB, free: 1.688 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001214/0.166, allocations: 23.89 kB / 0.5412 GB, free: 1.664 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.191e-05/0.166, allocations: 4 kB / 0.5412 GB, free: 1.66 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.0002107/0.1662, allocations: 142.5 kB / 0.5413 GB, free: 1.512 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.175e-05/0.1662, allocations: 19.86 kB / 0.5413 GB, free: 1.492 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.632e-05/0.1663, allocations: 29.83 kB / 0.5414 GB, free: 1.461 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.1663, allocations: 4 kB / 0.5414 GB, free: 1.457 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.1663, allocations: 0 / 0.5414 GB, free: 1.457 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.1663, allocations: 0 / 0.5414 GB, free: 1.457 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003433/0.1667, allocations: 273.4 kB / 0.5416 GB, free: 1.141 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.1667, allocations: 0 / 0.5416 GB, free: 1.141 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002239/0.1669, allocations: 27.98 kB / 0.5416 GB, free: 1.113 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.457e-06/0.1669, allocations: 0 / 0.5416 GB, free: 1.113 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.236e-05/0.1669, allocations: 0 / 0.5416 GB, free: 1.113 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/0.1669, allocations: 4 kB / 0.5417 GB, free: 1.109 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.317e-06/0.1669, allocations: 3.938 kB / 0.5417 GB, free: 1.105 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005811/0.1675, allocations: 303.8 kB / 0.5419 GB, free: 0.793 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.436e-05/0.1676, allocations: 101 kB / 0.542 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.759e-05/0.1676, allocations: 7.984 kB / 0.5421 GB, free: 0.668 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001311/0.1678, allocations: 4 kB / 0.5421 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.542e-05/0.1678, allocations: 11.98 kB / 0.5421 GB, free: 0.6523 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.725e-05/0.1678, allocations: 4 kB / 0.5421 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001648/0.168, allocations: 172.5 kB / 0.5422 GB, free: 496 kB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.168, allocations: 0 / 0.5422 GB, free: 496 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003183/0.1683, allocations: 47.89 kB / 0.5423 GB, free: 448 kB / 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.0009166/0.1692, allocations: 0.8294 MB / 0.5431 GB, free: 15.58 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003685/0.1696, allocations: 111.9 kB / 0.5432 GB, free: 15.47 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.185e-06/0.1696, allocations: 0 / 0.5432 GB, free: 15.47 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001482/0.1698, allocations: 55.92 kB / 0.5432 GB, free: 15.42 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003832/0.1701, allocations: 57.69 kB / 0.5433 GB, free: 15.36 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003407/0.1735, allocations: 2.29 MB / 0.5455 GB, free: 12.98 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003995/0.1739, allocations: 0.7401 MB / 0.5463 GB, free: 12.21 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001384/0.1741, allocations: 34.27 kB / 0.5463 GB, free: 12.18 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001156/0.1742, allocations: 67.42 kB / 0.5464 GB, free: 12.12 MB / 414.1 MB Notification: Performance of SimCode: time 5.81e-07/0.1742, allocations: 0 / 0.5464 GB, free: 12.12 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02307/0.1973, allocations: 4.69 MB / 0.5509 GB, free: 7.52 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.469/8.667, allocations: 14.41 kB / 0.551 GB, free: 7.508 MB / 414.1 MB " [Timeout remaining time 651] (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: 11.643346341967117] Failed to read output from testmodel.py, exit status != 0: 8.795418760972098 8.819501814 8.656287321 Calling exit ...