Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Pumps_valve.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.001705/0.001705, allocations: 109.4 kB / 17.15 MB, free: 6.02 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.002096/0.002096, allocations: 207.2 kB / 20.11 MB, free: 3.062 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.497/1.497, 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.1062/0.1062, allocations: 24.04 MB / 333.6 MB, free: 1.652 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.Pumps_valve,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Pumps_valve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Pumps_valve,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Pumps_valve",fmuType="me",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.002/0.002, allocations: 68.23 kB / 468.4 MB, free: 31.56 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.116, allocations: 59.55 MB / 0.5156 GB, free: 12.31 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowTwoPorts_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/flowTwoPorts_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.Pumps_valve): time 0.05402/0.17, allocations: 23.61 MB / 0.5386 GB, free: 4.812 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001707/0.1717, allocations: 462.7 kB / 0.5391 GB, free: 4.359 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002643/0.172, allocations: 0 / 0.5391 GB, free: 4.359 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001872/0.1722, allocations: 43.52 kB / 0.5391 GB, free: 4.316 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004809/0.1727, allocations: 107 kB / 0.5392 GB, free: 4.211 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000617/0.1733, allocations: 111.8 kB / 0.5393 GB, free: 4.102 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008793/0.1742, allocations: 426.1 kB / 0.5397 GB, free: 3.684 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006069/0.1748, allocations: 223.3 kB / 0.5399 GB, free: 3.465 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004298/0.1752, allocations: 175.3 kB / 0.5401 GB, free: 3.293 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005792/0.1758, allocations: 219.1 kB / 0.5403 GB, free: 3.078 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001402/0.1759, allocations: 36 kB / 0.5404 GB, free: 3.043 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002807/0.1762, allocations: 63.97 kB / 0.5404 GB, free: 2.98 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001483/0.1763, allocations: 95.67 kB / 0.5405 GB, free: 2.887 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003673/0.1767, allocations: 195 kB / 0.5407 GB, free: 2.695 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008138/0.1775, allocations: 446.2 kB / 0.5411 GB, free: 2.258 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.1775, allocations: 0 / 0.5411 GB, free: 2.258 MB / 398.1 MB Notification: Performance of FrontEnd: time 5.26e-06/0.1775, allocations: 3.984 kB / 0.5411 GB, free: 2.254 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.44e-05/0.1776, allocations: 0 / 0.5411 GB, free: 2.254 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001932/0.1795, allocations: 0.6737 MB / 0.5418 GB, free: 1.527 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.142e-05/0.1796, allocations: 12.62 kB / 0.5418 GB, free: 1.516 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001144/0.1797, allocations: 62.72 kB / 0.5418 GB, free: 1.445 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000147/0.1798, allocations: 44.66 kB / 0.5419 GB, free: 1.402 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006435/0.1805, allocations: 308.1 kB / 0.5422 GB, free: 1.066 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.355e-05/0.1805, allocations: 20.94 kB / 0.5422 GB, free: 1.043 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.696e-05/0.1806, allocations: 24.38 kB / 0.5422 GB, free: 1.02 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009352/0.1815, allocations: 293.3 kB / 0.5425 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.581e-05/0.1815, allocations: 3.938 kB / 0.5425 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.936e-05/0.1816, allocations: 12 kB / 0.5425 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.044e-05/0.1816, allocations: 11.88 kB / 0.5425 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009664/0.1825, allocations: 258.1 kB / 0.5428 GB, free: 460 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002258/0.1848, allocations: 0.8151 MB / 0.5436 GB, free: 15.58 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008523/0.1857, allocations: 220.4 kB / 0.5438 GB, free: 15.36 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005878/0.1862, allocations: 132.8 kB / 0.5439 GB, free: 15.22 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.746e-05/0.1863, allocations: 7.922 kB / 0.5439 GB, free: 15.21 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.671e-05/0.1863, allocations: 34.56 kB / 0.544 GB, free: 15.17 MB / 414.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004891/0.1868, allocations: 59.86 kB / 0.544 GB, free: 15.11 MB / 414.1 MB Notification: Performance of pre-optimization done (n=23): time 4.017e-06/0.1868, allocations: 0 / 0.544 GB, free: 15.11 MB / 414.1 MB Notification: Performance of matching and sorting (n=23): time 0.00548/0.1923, allocations: 0.9793 MB / 0.545 GB, free: 14.07 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.034e-05/0.1924, allocations: 51.41 kB / 0.545 GB, free: 14 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003371/0.1927, allocations: 291.4 kB / 0.5453 GB, free: 13.71 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.75e-05/0.1927, allocations: 29.7 kB / 0.5453 GB, free: 13.68 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001478/0.1929, allocations: 192.6 kB / 0.5455 GB, free: 13.48 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.507e-05/0.193, allocations: 75.33 kB / 0.5456 GB, free: 13.41 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001094/0.1931, allocations: 53.92 kB / 0.5456 GB, free: 13.35 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001618/0.1932, allocations: 342.7 kB / 0.546 GB, free: 13.01 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003027/0.1935, allocations: 104.3 kB / 0.5461 GB, free: 12.91 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000292/0.1938, allocations: 108.9 kB / 0.5462 GB, free: 12.8 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006036/0.1944, allocations: 234.4 kB / 0.5464 GB, free: 12.57 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.1944, allocations: 0 / 0.5464 GB, free: 12.57 MB / 414.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.002035/0.1965, allocations: 0.4922 MB / 0.5469 GB, free: 12.06 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.012e-05/0.1965, allocations: 11.94 kB / 0.5469 GB, free: 12.05 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.11e-05/0.1965, allocations: 7.984 kB / 0.5469 GB, free: 12.04 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001368/0.1979, allocations: 206.3 kB / 0.5471 GB, free: 11.83 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006467/0.1985, allocations: 95.89 kB / 0.5472 GB, free: 11.74 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00522/0.2037, allocations: 4.77 MB / 0.5518 GB, free: 6.629 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002809/0.204, allocations: 16.08 kB / 0.5518 GB, free: 6.613 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.119e-05/0.204, allocations: 15.98 kB / 0.5519 GB, free: 6.598 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0002041/0.2042, allocations: 141.7 kB / 0.552 GB, free: 6.449 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.45e-05/0.2043, allocations: 27.88 kB / 0.552 GB, free: 6.422 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001529/0.2058, allocations: 0.5173 MB / 0.5525 GB, free: 5.883 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.139e-06/0.2058, allocations: 4 kB / 0.5525 GB, free: 5.879 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.2058, allocations: 4 kB / 0.5525 GB, free: 5.875 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.528e-06/0.2059, allocations: 0 / 0.5525 GB, free: 5.875 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002073/0.2079, allocations: 0.927 MB / 0.5534 GB, free: 4.879 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.2079, allocations: 0 / 0.5534 GB, free: 4.879 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005363/0.2085, allocations: 87.92 kB / 0.5535 GB, free: 4.793 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007235/0.2092, allocations: 162.4 kB / 0.5537 GB, free: 4.625 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.261e-05/0.2092, allocations: 4 kB / 0.5537 GB, free: 4.621 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004508/0.2137, allocations: 4.424 MB / 0.558 GB, free: 15.87 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.2137, allocations: 4.031 kB / 0.558 GB, free: 15.87 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001462/0.2152, allocations: 0.5568 MB / 0.5585 GB, free: 15.29 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.993e-05/0.2153, allocations: 108.9 kB / 0.5587 GB, free: 15.16 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.959e-05/0.2153, allocations: 8 kB / 0.5587 GB, free: 15.15 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002308/0.2155, allocations: 19.98 kB / 0.5587 GB, free: 15.13 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.743e-05/0.2156, allocations: 27.95 kB / 0.5587 GB, free: 15.11 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.765e-05/0.2157, allocations: 8 kB / 0.5587 GB, free: 15.1 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002298/0.2159, allocations: 209.9 kB / 0.5589 GB, free: 14.89 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2159, allocations: 0 / 0.5589 GB, free: 14.89 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005882/0.2165, allocations: 103.8 kB / 0.559 GB, free: 14.79 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001705/0.2182, allocations: 1.093 MB / 0.5601 GB, free: 13.66 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002201/0.2204, allocations: 0.6531 MB / 0.5607 GB, free: 12.98 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.2204, allocations: 0 / 0.5607 GB, free: 12.98 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009676/0.2214, allocations: 437.1 kB / 0.5611 GB, free: 12.53 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004569/0.2218, allocations: 50.67 kB / 0.5612 GB, free: 12.48 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006984/0.2288, allocations: 3.302 MB / 0.5644 GB, free: 9.086 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004642/0.2293, allocations: 0.7883 MB / 0.5652 GB, free: 8.273 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001284/0.2294, allocations: 26.97 kB / 0.5652 GB, free: 8.246 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001583/0.2296, allocations: 103.4 kB / 0.5653 GB, free: 8.145 MB / 430.1 MB Notification: Performance of SimCode: time 8.71e-07/0.2296, allocations: 0 / 0.5653 GB, free: 8.145 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03987/0.2694, allocations: 8.096 MB / 0.5732 GB, free: 136 kB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.61/12.88, allocations: 5.875 kB / 0.5732 GB, free: 132 kB / 430.1 MB " [Timeout remaining time 647] (rm -f AES_AES.Coursework.ThermSys_component_models.Pumps_valve.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Pumps_valve.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Pumps_valve.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Pumps_valve.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_component_models.Pumps_valve_res.csv --start-time 0 --stop-time 50 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 AES_AES_Coursework_ThermSys_component_models_Pumps_valve.fmu > AES_AES.Coursework.ThermSys_component_models.Pumps_valve.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.813964383909479] Failed to read output from testmodel.py, exit status != 0: 12.980051916791126 13.007132183 12.8246525 Calling exit ...