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.002031/0.002031, allocations: 108.3 kB / 19.73 MB, free: 1.898 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.002369/0.002369, allocations: 210.1 kB / 23.01 MB, free: 4.992 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.541/1.541, allocations: 230.6 MB / 256.8 MB, free: 7.793 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.1079/0.1079, allocations: 24.02 MB / 337.2 MB, free: 11.44 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.002267/0.002267, allocations: 67.89 kB / 473.8 MB, free: 6.391 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3386/0.3409, allocations: 59.58 MB / 0.5209 GB, free: 10.09 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.06971/0.4106, allocations: 23.4 MB / 0.5438 GB, free: 1.66 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00127/0.4119, allocations: 437.8 kB / 0.5442 GB, free: 1.355 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001173/0.412, allocations: 6.906 kB / 0.5442 GB, free: 1.352 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001023/0.4121, allocations: 44.91 kB / 0.5442 GB, free: 1.324 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002313/0.4123, allocations: 111.4 kB / 0.5443 GB, free: 1.242 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003463/0.4127, allocations: 113.9 kB / 0.5444 GB, free: 1.18 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003009/0.413, allocations: 416.2 kB / 0.5448 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002684/0.4132, allocations: 217.4 kB / 0.5451 GB, free: 0.707 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001328/0.4134, allocations: 166.1 kB / 0.5452 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002187/0.4136, allocations: 199.8 kB / 0.5454 GB, free: 420 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.878e-05/0.4136, allocations: 36 kB / 0.5454 GB, free: 384 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001371/0.4138, allocations: 72.86 kB / 0.5455 GB, free: 320 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.1e-05/0.4138, allocations: 88.38 kB / 0.5456 GB, free: 248 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001115/0.414, allocations: 164.9 kB / 0.5457 GB, free: 100 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005959/0.4146, allocations: 457.5 kB / 0.5462 GB, free: 15.82 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.4146, allocations: 4.891 kB / 0.5462 GB, free: 15.82 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.4146, allocations: 0 / 0.5462 GB, free: 15.82 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.695e-06/0.4146, allocations: 0 / 0.5462 GB, free: 15.82 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.001201/0.4158, allocations: 0.6052 MB / 0.5468 GB, free: 15.23 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.766e-05/0.4158, allocations: 16.86 kB / 0.5468 GB, free: 15.21 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.944e-05/0.4159, allocations: 64.88 kB / 0.5469 GB, free: 15.15 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.096e-05/0.416, allocations: 44.66 kB / 0.5469 GB, free: 15.11 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004711/0.4164, allocations: 244.4 kB / 0.5471 GB, free: 14.87 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.857e-05/0.4165, allocations: 21.59 kB / 0.5472 GB, free: 14.85 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.175e-05/0.4165, allocations: 24.38 kB / 0.5472 GB, free: 14.82 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007667/0.4173, allocations: 371.1 kB / 0.5475 GB, free: 14.5 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.482e-05/0.4173, allocations: 3.938 kB / 0.5475 GB, free: 14.49 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.616e-05/0.4173, allocations: 16.59 kB / 0.5475 GB, free: 14.48 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.642e-05/0.4174, allocations: 8 kB / 0.5476 GB, free: 14.47 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007192/0.4181, allocations: 261 kB / 0.5478 GB, free: 14.26 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001651/0.4197, allocations: 0.7016 MB / 0.5485 GB, free: 13.61 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005944/0.4203, allocations: 218 kB / 0.5487 GB, free: 13.42 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003746/0.4207, allocations: 131 kB / 0.5488 GB, free: 13.31 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.579e-05/0.4207, allocations: 9.203 kB / 0.5488 GB, free: 13.3 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.368e-05/0.4208, allocations: 38.5 kB / 0.5489 GB, free: 13.25 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002813/0.4211, allocations: 58.5 kB / 0.5489 GB, free: 13.2 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 1.503e-06/0.4211, allocations: 0 / 0.5489 GB, free: 13.2 MB / 398.1 MB Notification: Performance of matching and sorting (n=23): time 0.003516/0.4246, allocations: 0.7417 MB / 0.5496 GB, free: 12.63 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.875e-05/0.4246, allocations: 55.41 kB / 0.5497 GB, free: 12.56 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003262/0.4249, allocations: 288.7 kB / 0.55 GB, free: 12.3 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.663e-05/0.425, allocations: 33.7 kB / 0.55 GB, free: 12.26 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001622/0.4251, allocations: 198 kB / 0.5502 GB, free: 12.07 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.518e-05/0.4252, allocations: 81.45 kB / 0.5503 GB, free: 12 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.963e-05/0.4253, allocations: 50.91 kB / 0.5503 GB, free: 11.95 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001985/0.4255, allocations: 340.4 kB / 0.5506 GB, free: 11.62 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002925/0.4258, allocations: 98.89 kB / 0.5507 GB, free: 11.54 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002864/0.4261, allocations: 107.3 kB / 0.5508 GB, free: 11.45 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005945/0.4267, allocations: 241.1 kB / 0.5511 GB, free: 11.24 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.4267, allocations: 0 / 0.5511 GB, free: 11.24 MB / 398.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.001861/0.4286, allocations: 0.4955 MB / 0.5516 GB, free: 10.83 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.924e-05/0.4286, allocations: 4.562 kB / 0.5516 GB, free: 10.83 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.4286, allocations: 4 kB / 0.5516 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001246/0.4298, allocations: 205.5 kB / 0.5518 GB, free: 10.67 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006187/0.4304, allocations: 86.12 kB / 0.5518 GB, free: 10.61 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0051/0.4355, allocations: 4.547 MB / 0.5563 GB, free: 5.941 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002656/0.4358, allocations: 20.92 kB / 0.5563 GB, free: 5.926 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.235e-05/0.4358, allocations: 15.47 kB / 0.5563 GB, free: 5.914 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.0002207/0.4361, allocations: 142.5 kB / 0.5565 GB, free: 5.766 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.877e-05/0.4361, allocations: 27.81 kB / 0.5565 GB, free: 5.738 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00155/0.4377, allocations: 0.5126 MB / 0.557 GB, free: 5.301 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.46e-06/0.4377, allocations: 4 kB / 0.557 GB, free: 5.297 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.4377, allocations: 4.703 kB / 0.557 GB, free: 5.293 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.4377, allocations: 1.5 kB / 0.557 GB, free: 5.293 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001866/0.4396, allocations: 0.8595 MB / 0.5578 GB, free: 4.496 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.4396, allocations: 0 / 0.5578 GB, free: 4.496 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005268/0.4401, allocations: 87.27 kB / 0.5579 GB, free: 4.43 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006976/0.4408, allocations: 156.7 kB / 0.5581 GB, free: 4.301 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.724e-05/0.4408, allocations: 13.34 kB / 0.5581 GB, free: 4.289 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003744/0.4446, allocations: 4.214 MB / 0.5622 GB, free: 15.9 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.4446, allocations: 0 / 0.5622 GB, free: 15.9 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001407/0.446, allocations: 0.5588 MB / 0.5627 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.943e-05/0.446, allocations: 33.97 kB / 0.5628 GB, free: 15.35 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.181e-05/0.4461, allocations: 8.609 kB / 0.5628 GB, free: 15.34 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002267/0.4463, allocations: 16.73 kB / 0.5628 GB, free: 15.33 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.183e-05/0.4464, allocations: 38.19 kB / 0.5628 GB, free: 15.31 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.131e-05/0.4464, allocations: 9.5 kB / 0.5628 GB, free: 15.3 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002155/0.4466, allocations: 204.7 kB / 0.563 GB, free: 15.12 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4466, allocations: 4 kB / 0.563 GB, free: 15.12 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000548/0.4472, allocations: 99.83 kB / 0.5631 GB, free: 15.02 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.001594/0.4488, allocations: 1.089 MB / 0.5642 GB, free: 13.97 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002108/0.4509, allocations: 0.649 MB / 0.5648 GB, free: 13.38 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.4509, allocations: 0 / 0.5648 GB, free: 13.38 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009314/0.4518, allocations: 437.6 kB / 0.5653 GB, free: 12.97 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004169/0.4522, allocations: 53.3 kB / 0.5653 GB, free: 12.93 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006627/0.4589, allocations: 3.29 MB / 0.5685 GB, free: 9.652 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001971/0.4591, allocations: 186.2 kB / 0.5687 GB, free: 9.453 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001217/0.4592, allocations: 26.98 kB / 0.5687 GB, free: 9.426 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001655/0.4593, allocations: 111.4 kB / 0.5688 GB, free: 9.316 MB / 414.1 MB Notification: Performance of SimCode: time 8.11e-07/0.4593, allocations: 0 / 0.5688 GB, free: 9.316 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04101/0.5003, allocations: 8.886 MB / 0.5775 GB, free: 0.5781 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.28/13.78, allocations: 15.5 kB / 0.5775 GB, free: 0.5664 MB / 414.1 MB " [Timeout remaining time 646] (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: 16.705048547126353] Failed to read output from testmodel.py, exit status != 0: 13.910736199002713 13.934300735 13.51607414 Calling exit ...