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.000838/0.000838, allocations: 72.52 kB / 19.95 MB, free: 4.613 MB / 18.57 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.0009275/0.0009275, allocations: 169.2 kB / 23.23 MB, free: 1.332 MB / 18.57 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 0.988/0.988, allocations: 177.1 MB / 203.5 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] 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.06783/0.06783, allocations: 18.12 MB / 278.1 MB, free: 11.54 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 0 / 415.1 MB, free: 12.72 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.954e-05/2.109e-05, allocations: 6.281 kB / 415.1 MB, free: 12.71 MB / 330.7 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.02194/0.02196, allocations: 23.67 MB / 438.7 MB, free: 15.43 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001098/0.02306, allocations: 445.8 kB / 439.2 MB, free: 15.05 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001228/0.02318, allocations: 4 kB / 439.2 MB, free: 15.04 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 8.427e-05/0.02327, allocations: 45.67 kB / 439.2 MB, free: 15.01 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002071/0.02347, allocations: 115.3 kB / 439.3 MB, free: 14.91 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003692/0.02384, allocations: 111.8 kB / 439.4 MB, free: 14.84 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003892/0.02423, allocations: 435.5 kB / 439.9 MB, free: 14.45 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003683/0.0246, allocations: 220.4 kB / 440.1 MB, free: 14.29 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001693/0.02477, allocations: 154.5 kB / 440.2 MB, free: 14.16 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002126/0.02498, allocations: 164.7 kB / 440.4 MB, free: 14.04 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 5.101e-05/0.02503, allocations: 40 kB / 440.4 MB, free: 14 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001181/0.02515, allocations: 64.62 kB / 440.5 MB, free: 13.95 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 6.496e-05/0.02522, allocations: 92.41 kB / 440.6 MB, free: 13.87 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001091/0.02533, allocations: 132.9 kB / 440.7 MB, free: 13.76 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005176/0.02584, allocations: 479.3 kB / 441.2 MB, free: 13.45 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.02585, allocations: 7.938 kB / 441.2 MB, free: 13.44 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.193e-06/0.02585, allocations: 0 / 441.2 MB, free: 13.44 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.078e-05/0.02586, allocations: 0 / 441.2 MB, free: 13.44 MB / 346.7 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.0008511/0.02671, allocations: 0.5935 MB / 441.8 MB, free: 12.87 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.46e-05/0.02675, allocations: 12.92 kB / 441.8 MB, free: 12.86 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.682e-05/0.02681, allocations: 64.89 kB / 441.9 MB, free: 12.79 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.958e-05/0.02687, allocations: 41.36 kB / 441.9 MB, free: 12.75 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003177/0.02719, allocations: 251.8 kB / 442.2 MB, free: 12.5 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.094e-05/0.02721, allocations: 21.03 kB / 442.2 MB, free: 12.48 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.935e-05/0.02724, allocations: 28.31 kB / 442.2 MB, free: 12.45 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000446/0.02768, allocations: 367.2 kB / 442.6 MB, free: 12.13 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.09e-05/0.0277, allocations: 192 / 442.6 MB, free: 12.13 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.585e-05/0.02772, allocations: 13.08 kB / 442.6 MB, free: 12.12 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.806e-06/0.02773, allocations: 12.12 kB / 442.6 MB, free: 12.11 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004172/0.02815, allocations: 261 kB / 442.8 MB, free: 11.89 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001091/0.02924, allocations: 0.7099 MB / 443.5 MB, free: 11.24 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003771/0.02961, allocations: 217.6 kB / 443.8 MB, free: 11.04 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002396/0.02985, allocations: 135.9 kB / 443.9 MB, free: 10.93 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.98e-05/0.02988, allocations: 13.44 kB / 443.9 MB, free: 10.92 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.062e-05/0.0299, allocations: 34.56 kB / 443.9 MB, free: 10.88 MB / 346.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001673/0.03007, allocations: 58.83 kB / 444 MB, free: 10.82 MB / 346.7 MB Notification: Performance of pre-optimization done (n=23): time 1.462e-06/0.03007, allocations: 0 / 444 MB, free: 10.82 MB / 346.7 MB Notification: Performance of matching and sorting (n=23): time 0.002047/0.03212, allocations: 0.7447 MB / 444.7 MB, free: 10.25 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.374e-05/0.03215, allocations: 60.14 kB / 444.8 MB, free: 10.18 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002303/0.03238, allocations: 288.1 kB / 445.1 MB, free: 9.918 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.413e-05/0.03241, allocations: 30.36 kB / 445.1 MB, free: 9.883 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001066/0.03252, allocations: 197.3 kB / 445.3 MB, free: 9.695 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.397e-05/0.03256, allocations: 76.78 kB / 445.4 MB, free: 9.625 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.358e-05/0.03263, allocations: 51.05 kB / 445.4 MB, free: 9.578 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001884/0.03282, allocations: 340.1 kB / 445.8 MB, free: 9.246 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001787/0.033, allocations: 102.8 kB / 445.9 MB, free: 9.164 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001632/0.03316, allocations: 106.1 kB / 446 MB, free: 9.082 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003437/0.03351, allocations: 229.1 kB / 446.2 MB, free: 8.883 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.776e-06/0.03351, allocations: 0 / 446.2 MB, free: 8.883 MB / 346.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.001053/0.03456, allocations: 0.4998 MB / 446.7 MB, free: 8.469 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.673e-05/0.03458, allocations: 9.875 kB / 446.7 MB, free: 8.461 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.03458, allocations: 0 / 446.7 MB, free: 8.461 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006326/0.03522, allocations: 201.5 kB / 446.9 MB, free: 8.312 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002995/0.03552, allocations: 97.73 kB / 447 MB, free: 8.238 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003226/0.03874, allocations: 4.548 MB / 451.5 MB, free: 3.562 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001083/0.03885, allocations: 16.77 kB / 451.6 MB, free: 3.551 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.783e-05/0.03887, allocations: 11.09 kB / 451.6 MB, free: 3.543 MB / 346.7 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.0001231/0.03899, allocations: 138.4 kB / 451.7 MB, free: 3.398 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.575e-05/0.03903, allocations: 35.88 kB / 451.7 MB, free: 3.363 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007841/0.03981, allocations: 0.513 MB / 452.2 MB, free: 2.934 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.03981, allocations: 4 kB / 452.3 MB, free: 2.93 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.03982, allocations: 1.031 kB / 452.3 MB, free: 2.93 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.03982, allocations: 5.156 kB / 452.3 MB, free: 2.926 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001031/0.04085, allocations: 0.8591 MB / 453.1 MB, free: 2.129 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.04086, allocations: 4 kB / 453.1 MB, free: 2.125 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002542/0.04111, allocations: 91.5 kB / 453.2 MB, free: 2.055 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003447/0.04145, allocations: 161.3 kB / 453.4 MB, free: 1.922 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.635e-05/0.04147, allocations: 4.984 kB / 453.4 MB, free: 1.918 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002034/0.04351, allocations: 4.194 MB / 457.6 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.04351, allocations: 0 / 457.6 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007508/0.04426, allocations: 0.5575 MB / 458.1 MB, free: 13 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.133e-05/0.04429, allocations: 31.7 kB / 458.2 MB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.466e-05/0.04431, allocations: 11.98 kB / 458.2 MB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001104/0.04442, allocations: 24.05 kB / 458.2 MB, free: 12.93 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.689e-05/0.04449, allocations: 27.95 kB / 458.2 MB, free: 12.9 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.367e-05/0.0445, allocations: 11.98 kB / 458.2 MB, free: 12.89 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001402/0.04464, allocations: 215 kB / 458.4 MB, free: 12.68 MB / 362.7 MB Notification: Performance of sort global known variables: time 3e-08/0.04464, allocations: 0 / 458.4 MB, free: 12.68 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003707/0.04502, allocations: 95.89 kB / 458.5 MB, free: 12.59 MB / 362.7 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.001273/0.04629, allocations: 1.089 MB / 459.6 MB, free: 11.46 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001061/0.04735, allocations: 0.6573 MB / 460.3 MB, free: 10.78 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.04735, allocations: 0 / 460.3 MB, free: 10.78 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004504/0.0478, allocations: 437.2 kB / 460.7 MB, free: 10.32 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002906/0.04809, allocations: 48.69 kB / 460.8 MB, free: 10.28 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003696/0.05179, allocations: 3.27 MB / 464 MB, free: 6.902 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001288/0.05192, allocations: 186.3 kB / 464.2 MB, free: 6.707 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.822e-05/0.052, allocations: 30.97 kB / 464.2 MB, free: 6.68 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001079/0.0521, allocations: 108.5 kB / 464.3 MB, free: 6.574 MB / 362.7 MB Notification: Performance of SimCode: time 8.21e-07/0.0521, allocations: 0 / 464.3 MB, free: 6.574 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0246/0.07671, allocations: 9.039 MB / 473.4 MB, free: 13.7 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.405/8.482, allocations: 4.062 kB / 473.4 MB, free: 13.7 MB / 378.7 MB " [Timeout remaining time 651] (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: 10.631600985303521] Failed to read output from testmodel.py, exit status != 0: 8.575871926732361 8.587063737 8.558188553 Calling exit ...