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.001345/0.001345, allocations: 106.8 kB / 16.45 MB, free: 6.453 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.001556/0.001556, allocations: 213.7 kB / 19.43 MB, free: 3.625 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.455/1.455, allocations: 230.6 MB / 252.8 MB, free: 8.961 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.1054/0.1054, allocations: 24.12 MB / 333 MB, free: 12.61 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.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.002036/0.002036, allocations: 63.91 kB / 467.9 MB, free: 9.07 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3634/0.3654, allocations: 59.58 MB / 0.5151 GB, free: 9.598 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.04483/0.4102, allocations: 23.41 MB / 0.5379 GB, free: 1.145 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001793/0.412, allocations: 450.8 kB / 0.5384 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005091/0.4125, allocations: 6.75 kB / 0.5384 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001853/0.4127, allocations: 44.75 kB / 0.5384 GB, free: 0.793 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004362/0.4132, allocations: 107.9 kB / 0.5385 GB, free: 0.7148 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005497/0.4137, allocations: 117.4 kB / 0.5386 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000403/0.4141, allocations: 405.9 kB / 0.539 GB, free: 460 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003386/0.4145, allocations: 224.4 kB / 0.5392 GB, free: 352 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001729/0.4146, allocations: 175.2 kB / 0.5394 GB, free: 268 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002408/0.4149, allocations: 215.6 kB / 0.5396 GB, free: 160 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.101e-05/0.4149, allocations: 37.5 kB / 0.5396 GB, free: 160 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001427/0.4151, allocations: 73.38 kB / 0.5397 GB, free: 148 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.779e-05/0.4151, allocations: 98.47 kB / 0.5398 GB, free: 80 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001959/0.4153, allocations: 187.9 kB / 0.54 GB, free: 15.96 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006058/0.4159, allocations: 456.7 kB / 0.5404 GB, free: 15.77 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.112e-06/0.4159, allocations: 0.6562 kB / 0.5404 GB, free: 15.77 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.694e-06/0.4159, allocations: 1.25 kB / 0.5404 GB, free: 15.77 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.085e-06/0.416, allocations: 0 / 0.5404 GB, free: 15.77 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.001395/0.4173, allocations: 0.6806 MB / 0.5411 GB, free: 15.23 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.37e-05/0.4174, allocations: 10.22 kB / 0.5411 GB, free: 15.23 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001086/0.4175, allocations: 61.53 kB / 0.5411 GB, free: 15.17 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.514e-05/0.4176, allocations: 47.34 kB / 0.5412 GB, free: 15.14 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004464/0.418, allocations: 310.8 kB / 0.5415 GB, free: 14.87 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.149e-05/0.4181, allocations: 19.12 kB / 0.5415 GB, free: 14.86 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.33e-05/0.4181, allocations: 24.59 kB / 0.5415 GB, free: 14.85 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006344/0.4187, allocations: 288.7 kB / 0.5418 GB, free: 14.73 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.236e-05/0.4188, allocations: 3.938 kB / 0.5418 GB, free: 14.73 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.52e-05/0.4188, allocations: 14.58 kB / 0.5418 GB, free: 14.72 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.203e-05/0.4188, allocations: 10.97 kB / 0.5418 GB, free: 14.71 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007001/0.4195, allocations: 261.7 kB / 0.5421 GB, free: 14.64 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001693/0.4212, allocations: 0.8134 MB / 0.5429 GB, free: 14.12 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006159/0.4218, allocations: 224 kB / 0.5431 GB, free: 14.02 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003836/0.4222, allocations: 135.2 kB / 0.5432 GB, free: 13.91 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.076e-05/0.4222, allocations: 13.23 kB / 0.5432 GB, free: 13.89 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.496e-05/0.4223, allocations: 34.56 kB / 0.5433 GB, free: 13.85 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003032/0.4226, allocations: 54.5 kB / 0.5433 GB, free: 13.8 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 2.194e-06/0.4226, allocations: 4 kB / 0.5433 GB, free: 13.8 MB / 398.1 MB Notification: Performance of matching and sorting (n=23): time 0.003991/0.4266, allocations: 0.9762 MB / 0.5443 GB, free: 12.94 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.978e-05/0.4266, allocations: 51.41 kB / 0.5443 GB, free: 12.88 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003453/0.427, allocations: 288 kB / 0.5446 GB, free: 12.62 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.553e-05/0.427, allocations: 29.7 kB / 0.5446 GB, free: 12.59 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001492/0.4271, allocations: 189.4 kB / 0.5448 GB, free: 12.41 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.867e-05/0.4272, allocations: 82.09 kB / 0.5449 GB, free: 12.34 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000104/0.4273, allocations: 54.44 kB / 0.5449 GB, free: 12.29 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001703/0.4275, allocations: 335.9 kB / 0.5453 GB, free: 11.96 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003158/0.4278, allocations: 103.7 kB / 0.5454 GB, free: 11.88 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003033/0.4281, allocations: 105.8 kB / 0.5455 GB, free: 11.79 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000631/0.4287, allocations: 244.8 kB / 0.5457 GB, free: 11.58 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.673e-06/0.4288, allocations: 7.938 kB / 0.5457 GB, free: 11.57 MB / 398.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.002013/0.4308, allocations: 0.4911 MB / 0.5462 GB, free: 11.16 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.996e-05/0.4308, allocations: 8.641 kB / 0.5462 GB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.4308, allocations: 0 / 0.5462 GB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001279/0.4321, allocations: 204.9 kB / 0.5464 GB, free: 11 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006421/0.4327, allocations: 94.73 kB / 0.5465 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005155/0.4379, allocations: 4.781 MB / 0.5511 GB, free: 5.988 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002828/0.4382, allocations: 16.67 kB / 0.5512 GB, free: 5.977 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.709e-05/0.4382, allocations: 11 kB / 0.5512 GB, free: 5.969 MB / 398.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.0001989/0.4384, allocations: 142.6 kB / 0.5513 GB, free: 5.82 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.653e-05/0.4385, allocations: 28.42 kB / 0.5513 GB, free: 5.793 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001587/0.44, allocations: 0.512 MB / 0.5518 GB, free: 5.355 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.387e-06/0.44, allocations: 0 / 0.5518 GB, free: 5.355 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.4401, allocations: 4 kB / 0.5518 GB, free: 5.352 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.4401, allocations: 2.438 kB / 0.5518 GB, free: 5.352 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002149/0.4422, allocations: 0.9312 MB / 0.5527 GB, free: 4.508 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.4422, allocations: 0 / 0.5527 GB, free: 4.508 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006068/0.4428, allocations: 91.62 kB / 0.5528 GB, free: 4.438 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007368/0.4436, allocations: 148.8 kB / 0.553 GB, free: 4.316 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.965e-05/0.4436, allocations: 13.36 kB / 0.553 GB, free: 4.305 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004018/0.4476, allocations: 4.424 MB / 0.5573 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.4476, allocations: 0 / 0.5573 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001504/0.4491, allocations: 0.5615 MB / 0.5579 GB, free: 15.14 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001167/0.4492, allocations: 111.9 kB / 0.558 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.139e-05/0.4493, allocations: 8 kB / 0.558 GB, free: 15.01 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002433/0.4495, allocations: 17.34 kB / 0.558 GB, free: 15 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.121e-05/0.4496, allocations: 26.27 kB / 0.558 GB, free: 14.98 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.446e-05/0.4496, allocations: 16.66 kB / 0.558 GB, free: 14.97 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002516/0.4499, allocations: 203.3 kB / 0.5582 GB, free: 14.79 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4499, allocations: 0 / 0.5582 GB, free: 14.79 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000622/0.4505, allocations: 105 kB / 0.5583 GB, free: 14.69 MB / 414.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.001737/0.4522, allocations: 1.089 MB / 0.5594 GB, free: 13.63 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002239/0.4545, allocations: 0.6376 MB / 0.56 GB, free: 13.05 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.4545, allocations: 0 / 0.56 GB, free: 13.05 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009738/0.4555, allocations: 441.8 kB / 0.5604 GB, free: 12.64 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004241/0.4559, allocations: 61.91 kB / 0.5605 GB, free: 12.59 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007627/0.4635, allocations: 3.295 MB / 0.5637 GB, free: 9.555 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004683/0.464, allocations: 0.7883 MB / 0.5645 GB, free: 8.738 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001313/0.4641, allocations: 30.97 kB / 0.5645 GB, free: 8.707 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001813/0.4643, allocations: 115.3 kB / 0.5646 GB, free: 8.594 MB / 414.1 MB Notification: Performance of SimCode: time 8.51e-07/0.4643, allocations: 0 / 0.5646 GB, free: 8.594 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04688/0.5112, allocations: 8.095 MB / 0.5725 GB, free: 0.5859 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.6/13.12, allocations: 4 kB / 0.5725 GB, free: 0.582 MB / 414.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.921514522051439] Failed to read output from testmodel.py, exit status != 0: 13.216042819898576 13.23243329 12.813101243 Calling exit ...