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.001776/0.001776, allocations: 125.7 kB / 17.17 MB, free: 5.918 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.002167/0.002167, allocations: 210.3 kB / 20.13 MB, free: 2.98 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.537/1.537, allocations: 230.6 MB / 253.5 MB, free: 15.07 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.106/0.106, allocations: 22.93 MB / 332.5 MB, free: 2.613 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_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.002104/0.002104, allocations: 68.94 kB / 466.7 MB, free: 32.25 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1163, allocations: 59.26 MB / 0.5137 GB, free: 13.99 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.04094/0.1572, allocations: 23.3 MB / 0.5364 GB, free: 6.805 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001514/0.1588, allocations: 422.5 kB / 0.5368 GB, free: 6.391 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003982/0.1592, allocations: 15.88 kB / 0.5368 GB, free: 6.375 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001578/0.1593, allocations: 47.5 kB / 0.5369 GB, free: 6.328 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000469/0.1598, allocations: 146.9 kB / 0.537 GB, free: 6.184 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002599/0.16, allocations: 83.81 kB / 0.5371 GB, free: 6.102 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004974/0.1605, allocations: 418 kB / 0.5375 GB, free: 5.691 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003733/0.1609, allocations: 227 kB / 0.5377 GB, free: 5.469 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002793/0.1612, allocations: 199.3 kB / 0.5379 GB, free: 5.273 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003229/0.1615, allocations: 191.2 kB / 0.5381 GB, free: 5.086 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.898e-05/0.1616, allocations: 28 kB / 0.5381 GB, free: 5.059 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001485/0.1617, allocations: 63.97 kB / 0.5382 GB, free: 4.996 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.129e-05/0.1618, allocations: 71.75 kB / 0.5383 GB, free: 4.926 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001962/0.162, allocations: 179.1 kB / 0.5384 GB, free: 4.75 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005466/0.1625, allocations: 414.2 kB / 0.5388 GB, free: 4.344 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.159e-06/0.1625, allocations: 0 / 0.5388 GB, free: 4.344 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1625, allocations: 7.938 kB / 0.5388 GB, free: 4.336 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.583e-05/0.1625, allocations: 0 / 0.5388 GB, free: 4.336 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.001219/0.1638, allocations: 0.6347 MB / 0.5394 GB, free: 3.648 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.778e-05/0.1638, allocations: 16.56 kB / 0.5395 GB, free: 3.633 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.952e-05/0.1638, allocations: 4.75 kB / 0.5395 GB, free: 3.629 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.786e-05/0.1639, allocations: 58.73 kB / 0.5395 GB, free: 3.562 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.74e-05/0.164, allocations: 36.7 kB / 0.5396 GB, free: 3.527 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005047/0.1645, allocations: 319.6 kB / 0.5399 GB, free: 3.18 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.371e-05/0.1645, allocations: 24.94 kB / 0.5399 GB, free: 3.152 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.534e-05/0.1646, allocations: 24.38 kB / 0.5399 GB, free: 3.129 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005128/0.1651, allocations: 280.5 kB / 0.5402 GB, free: 2.84 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.427e-05/0.1651, allocations: 4 kB / 0.5402 GB, free: 2.836 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.224e-05/0.1651, allocations: 11.98 kB / 0.5402 GB, free: 2.824 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.128e-05/0.1651, allocations: 8 kB / 0.5402 GB, free: 2.816 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004204/0.1656, allocations: 201.6 kB / 0.5404 GB, free: 2.621 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00151/0.1671, allocations: 0.8969 MB / 0.5413 GB, free: 1.66 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004058/0.1675, allocations: 154.7 kB / 0.5414 GB, free: 1.5 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002198/0.1677, allocations: 100.7 kB / 0.5415 GB, free: 1.398 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.756e-05/0.1677, allocations: 3.938 kB / 0.5415 GB, free: 1.395 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.72e-05/0.1678, allocations: 34.56 kB / 0.5416 GB, free: 1.352 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000307/0.1681, allocations: 55.86 kB / 0.5416 GB, free: 1.297 MB / 398.1 MB Notification: Performance of pre-optimization done (n=18): time 2.164e-06/0.1681, allocations: 0 / 0.5416 GB, free: 1.297 MB / 398.1 MB Notification: Performance of matching and sorting (n=18): time 0.001491/0.1696, allocations: 445.1 kB / 0.542 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.56e-05/0.1696, allocations: 55.41 kB / 0.5421 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003266/0.1699, allocations: 304.4 kB / 0.5424 GB, free: 480 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.094e-05/0.17, allocations: 29.7 kB / 0.5424 GB, free: 444 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000149/0.1701, allocations: 192.3 kB / 0.5426 GB, free: 248 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.165e-05/0.1702, allocations: 59.44 kB / 0.5426 GB, free: 188 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.322e-05/0.1703, allocations: 49.69 kB / 0.5427 GB, free: 132 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001755/0.1704, allocations: 342.8 kB / 0.543 GB, free: 15.79 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001433/0.1706, allocations: 67.91 kB / 0.5431 GB, free: 15.72 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001513/0.1707, allocations: 85.67 kB / 0.5432 GB, free: 15.63 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004257/0.175, allocations: 0.6985 MB / 0.5438 GB, free: 14.93 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.175, allocations: 0 / 0.5438 GB, free: 14.93 MB / 414.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0008919/0.1759, allocations: 313.9 kB / 0.5441 GB, free: 14.61 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.353e-05/0.1759, allocations: 8 kB / 0.5442 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.271e-06/0.1759, allocations: 0 / 0.5442 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008255/0.1767, allocations: 108.8 kB / 0.5443 GB, free: 14.5 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002625/0.177, allocations: 39.97 kB / 0.5443 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005926/0.1776, allocations: 0.5796 MB / 0.5449 GB, free: 13.85 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001877/0.1778, allocations: 8.031 kB / 0.5449 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.808e-05/0.1778, allocations: 11.98 kB / 0.5449 GB, free: 13.83 MB / 414.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.0003088/0.1781, allocations: 142.6 kB / 0.545 GB, free: 13.68 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.543e-05/0.1782, allocations: 31.86 kB / 0.545 GB, free: 13.65 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001005/0.1792, allocations: 356.6 kB / 0.5454 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.436e-06/0.1792, allocations: 4 kB / 0.5454 GB, free: 13.29 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.1792, allocations: 0 / 0.5454 GB, free: 13.29 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.584e-06/0.1792, allocations: 3.984 kB / 0.5454 GB, free: 13.29 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001373/0.1806, allocations: 0.7271 MB / 0.5461 GB, free: 12.5 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.045e-06/0.1806, allocations: 4.062 kB / 0.5461 GB, free: 12.49 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002492/0.1809, allocations: 35.98 kB / 0.5461 GB, free: 12.46 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005526/0.1814, allocations: 100.8 kB / 0.5462 GB, free: 12.36 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.398e-05/0.1814, allocations: 8 kB / 0.5462 GB, free: 12.35 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004767/0.1819, allocations: 0.5952 MB / 0.5468 GB, free: 11.73 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.1819, allocations: 0 / 0.5468 GB, free: 11.73 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001001/0.1829, allocations: 0.5058 MB / 0.5473 GB, free: 11.2 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001034/0.183, allocations: 113 kB / 0.5474 GB, free: 11.07 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.38e-05/0.1831, allocations: 15.98 kB / 0.5474 GB, free: 11.05 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000157/0.1832, allocations: 4 kB / 0.5474 GB, free: 11.05 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.268e-05/0.1833, allocations: 23.86 kB / 0.5475 GB, free: 11.02 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.032e-05/0.1833, allocations: 11.98 kB / 0.5475 GB, free: 11.01 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002281/0.1836, allocations: 215.1 kB / 0.5477 GB, free: 10.8 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1836, allocations: 0 / 0.5477 GB, free: 10.8 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003643/0.1839, allocations: 79.89 kB / 0.5478 GB, free: 10.72 MB / 414.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.001176/0.1851, allocations: 1.012 MB / 0.5487 GB, free: 9.676 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005245/0.1856, allocations: 191.8 kB / 0.5489 GB, free: 9.488 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.1856, allocations: 0 / 0.5489 GB, free: 9.488 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000267/0.1859, allocations: 112.2 kB / 0.549 GB, free: 9.379 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004612/0.1864, allocations: 73.23 kB / 0.5491 GB, free: 9.309 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004721/0.1911, allocations: 3 MB / 0.552 GB, free: 6.207 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004631/0.1915, allocations: 0.7794 MB / 0.5528 GB, free: 5.402 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001811/0.1917, allocations: 42.95 kB / 0.5528 GB, free: 5.363 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001938/0.1919, allocations: 123.4 kB / 0.553 GB, free: 5.242 MB / 414.1 MB Notification: Performance of SimCode: time 9.62e-07/0.1919, allocations: 0 / 0.553 GB, free: 5.242 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03135/0.2233, allocations: 7.314 MB / 0.5601 GB, free: 14.05 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.47/12.69, allocations: 10.8 kB / 0.5601 GB, free: 14.04 MB / 430.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 & /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: 15.613863277016208] Failed to read output from testmodel.py, exit status != 0: 12.846968009020202 12.874218789 12.706714843 Calling exit ...