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.00184/0.00184, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.002292/0.002292, allocations: 214.4 kB / 22.25 MB, free: 5.125 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.506/1.506, allocations: 230.6 MB / 256 MB, free: 7.973 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.1074/0.1074, allocations: 24.12 MB / 336.6 MB, free: 11.42 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.002024/0.002024, allocations: 67.89 kB / 473.3 MB, free: 6.367 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3422/0.3442, allocations: 59.61 MB / 0.5204 GB, free: 10.05 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.03728/0.3815, allocations: 23.41 MB / 0.5433 GB, free: 1.461 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001256/0.3828, allocations: 468.8 kB / 0.5437 GB, free: 1.125 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001289/0.3829, allocations: 2.375 kB / 0.5437 GB, free: 1.125 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 9.622e-05/0.383, allocations: 47.81 kB / 0.5438 GB, free: 1.094 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002143/0.3832, allocations: 107.2 kB / 0.5439 GB, free: 1.016 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003463/0.3836, allocations: 112.5 kB / 0.544 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003864/0.384, allocations: 411.2 kB / 0.5444 GB, free: 0.75 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002969/0.3842, allocations: 222.5 kB / 0.5446 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001559/0.3844, allocations: 174.7 kB / 0.5448 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002244/0.3846, allocations: 222.4 kB / 0.545 GB, free: 416 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.388e-05/0.3847, allocations: 36 kB / 0.545 GB, free: 380 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001162/0.3848, allocations: 67.97 kB / 0.5451 GB, free: 320 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.92e-05/0.3848, allocations: 97.16 kB / 0.5452 GB, free: 240 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000121/0.385, allocations: 195.2 kB / 0.5454 GB, free: 60 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005317/0.3855, allocations: 450.5 kB / 0.5458 GB, free: 15.77 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.3855, allocations: 0 / 0.5458 GB, free: 15.77 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.3855, allocations: 4 kB / 0.5458 GB, free: 15.76 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.454e-06/0.3855, allocations: 0 / 0.5458 GB, free: 15.76 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.001218/0.3867, allocations: 0.6052 MB / 0.5464 GB, free: 15.18 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.403e-05/0.3868, allocations: 8.922 kB / 0.5464 GB, free: 15.17 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.255e-05/0.3868, allocations: 61.03 kB / 0.5464 GB, free: 15.11 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.634e-05/0.3869, allocations: 48.66 kB / 0.5465 GB, free: 15.06 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004275/0.3874, allocations: 252.1 kB / 0.5467 GB, free: 14.81 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.69e-05/0.3874, allocations: 17.69 kB / 0.5467 GB, free: 14.8 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.442e-05/0.3874, allocations: 24.38 kB / 0.5468 GB, free: 14.77 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006351/0.3881, allocations: 289.9 kB / 0.547 GB, free: 14.54 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.367e-05/0.3881, allocations: 3.938 kB / 0.5471 GB, free: 14.54 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.472e-05/0.3881, allocations: 15.94 kB / 0.5471 GB, free: 14.52 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.968e-06/0.3881, allocations: 8.609 kB / 0.5471 GB, free: 14.52 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006674/0.3888, allocations: 265.1 kB / 0.5473 GB, free: 14.3 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001563/0.3903, allocations: 0.7712 MB / 0.5481 GB, free: 13.64 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005463/0.3909, allocations: 221 kB / 0.5483 GB, free: 13.44 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003602/0.3913, allocations: 127.7 kB / 0.5484 GB, free: 13.33 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.052e-05/0.3913, allocations: 20.48 kB / 0.5484 GB, free: 13.31 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.222e-05/0.3913, allocations: 35.12 kB / 0.5485 GB, free: 13.27 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003268/0.3917, allocations: 54.5 kB / 0.5485 GB, free: 13.22 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 1.683e-06/0.3917, allocations: 0 / 0.5485 GB, free: 13.22 MB / 398.1 MB Notification: Performance of matching and sorting (n=23): time 0.003612/0.3953, allocations: 0.7528 MB / 0.5493 GB, free: 12.64 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.542e-05/0.3953, allocations: 56.02 kB / 0.5493 GB, free: 12.57 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003619/0.3957, allocations: 288.8 kB / 0.5496 GB, free: 12.3 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.622e-05/0.3957, allocations: 29.7 kB / 0.5496 GB, free: 12.27 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000168/0.3959, allocations: 189.4 kB / 0.5498 GB, free: 12.09 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.53e-05/0.396, allocations: 85.86 kB / 0.5499 GB, free: 12.01 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001084/0.3961, allocations: 51.05 kB / 0.5499 GB, free: 11.96 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001725/0.3963, allocations: 343.8 kB / 0.5502 GB, free: 11.63 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002913/0.3965, allocations: 99.17 kB / 0.5503 GB, free: 11.55 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002778/0.3968, allocations: 105.7 kB / 0.5504 GB, free: 11.47 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005806/0.3974, allocations: 248.9 kB / 0.5507 GB, free: 11.25 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.3974, allocations: 0 / 0.5507 GB, free: 11.25 MB / 398.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.001886/0.3993, allocations: 0.4912 MB / 0.5512 GB, free: 10.84 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.616e-05/0.3993, allocations: 4.703 kB / 0.5512 GB, free: 10.84 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.3993, allocations: 0 / 0.5512 GB, free: 10.84 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001368/0.4007, allocations: 213.4 kB / 0.5514 GB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006069/0.4013, allocations: 85.7 kB / 0.5515 GB, free: 10.62 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005/0.4063, allocations: 4.572 MB / 0.5559 GB, free: 5.934 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002734/0.4066, allocations: 12.77 kB / 0.5559 GB, free: 5.926 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.917e-05/0.4066, allocations: 14.91 kB / 0.5559 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.0001997/0.4068, allocations: 138.6 kB / 0.5561 GB, free: 5.77 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.338e-05/0.4069, allocations: 32.31 kB / 0.5561 GB, free: 5.738 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001526/0.4084, allocations: 0.5129 MB / 0.5566 GB, free: 5.301 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-06/0.4084, allocations: 4 kB / 0.5566 GB, free: 5.297 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.4084, allocations: 4 kB / 0.5566 GB, free: 5.293 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.4084, allocations: 1.734 kB / 0.5566 GB, free: 5.293 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002121/0.4105, allocations: 0.9034 MB / 0.5575 GB, free: 4.484 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.018e-06/0.4105, allocations: 0 / 0.5575 GB, free: 4.484 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005649/0.4111, allocations: 86.59 kB / 0.5576 GB, free: 4.418 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008352/0.4119, allocations: 153.6 kB / 0.5577 GB, free: 4.293 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.023e-05/0.412, allocations: 4.844 kB / 0.5577 GB, free: 4.289 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004278/0.4163, allocations: 4.223 MB / 0.5619 GB, free: 15.9 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.4163, allocations: 0 / 0.5619 GB, free: 15.9 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001458/0.4177, allocations: 0.5591 MB / 0.5624 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.391e-05/0.4178, allocations: 37.45 kB / 0.5624 GB, free: 15.35 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.313e-05/0.4178, allocations: 4.797 kB / 0.5624 GB, free: 15.34 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002363/0.4181, allocations: 17.3 kB / 0.5625 GB, free: 15.33 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001254/0.4182, allocations: 34.47 kB / 0.5625 GB, free: 15.31 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.291e-05/0.4182, allocations: 8.656 kB / 0.5625 GB, free: 15.3 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002614/0.4185, allocations: 212.4 kB / 0.5627 GB, free: 15.12 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4185, allocations: 0 / 0.5627 GB, free: 15.12 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006543/0.4191, allocations: 103.8 kB / 0.5628 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.001694/0.4208, allocations: 1.105 MB / 0.5639 GB, free: 13.95 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002086/0.4229, allocations: 0.6378 MB / 0.5645 GB, free: 13.37 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.4229, allocations: 0 / 0.5645 GB, free: 13.37 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009624/0.4239, allocations: 437.7 kB / 0.5649 GB, free: 12.96 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000426/0.4243, allocations: 54.09 kB / 0.565 GB, free: 12.91 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006692/0.431, allocations: 3.283 MB / 0.5682 GB, free: 9.574 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004284/0.4314, allocations: 0.7923 MB / 0.569 GB, free: 8.758 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001282/0.4316, allocations: 30.97 kB / 0.569 GB, free: 8.727 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001594/0.4317, allocations: 111.4 kB / 0.5691 GB, free: 8.617 MB / 414.1 MB Notification: Performance of SimCode: time 9.42e-07/0.4317, allocations: 3.938 kB / 0.5691 GB, free: 8.613 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04503/0.4768, allocations: 8.341 MB / 0.5772 GB, free: 404 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.33/13.8, allocations: 7.062 kB / 0.5772 GB, free: 400 kB / 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.653473924001446] Failed to read output from testmodel.py, exit status != 0: 13.930064362997655 13.945688801 13.557015266 Calling exit ...