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.001311/0.001311, allocations: 97.88 kB / 19.73 MB, free: 2.117 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.00149/0.00149, allocations: 216.1 kB / 23.03 MB, free: 4.922 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.512/1.512, allocations: 230.6 MB / 256.8 MB, free: 7.805 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.1171/0.1171, allocations: 22.93 MB / 336.1 MB, free: 12.52 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Pumps_valve,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Pumps_valve",fmuType="cs",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.002179/0.002179, allocations: 59.91 kB / 472.2 MB, free: 7.883 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3707/0.3728, allocations: 59.3 MB / 0.519 GB, free: 10.6 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.07423/0.4471, allocations: 23.03 MB / 0.5415 GB, free: 2.398 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001457/0.4485, allocations: 388.3 kB / 0.5419 GB, free: 2.121 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003587/0.4489, allocations: 2.531 kB / 0.5419 GB, free: 2.121 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001677/0.4491, allocations: 44.84 kB / 0.5419 GB, free: 2.094 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004095/0.4495, allocations: 113.7 kB / 0.542 GB, free: 2.012 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004353/0.4499, allocations: 106.5 kB / 0.5421 GB, free: 1.953 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005611/0.4505, allocations: 413 kB / 0.5425 GB, free: 1.746 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000403/0.4509, allocations: 222.4 kB / 0.5427 GB, free: 1.645 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002844/0.4512, allocations: 170.8 kB / 0.5429 GB, free: 1.566 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003471/0.4515, allocations: 216.8 kB / 0.5431 GB, free: 1.461 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.07e-05/0.4516, allocations: 37.12 kB / 0.5431 GB, free: 1.461 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001826/0.4518, allocations: 71.42 kB / 0.5432 GB, free: 1.449 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.644e-05/0.4519, allocations: 96.2 kB / 0.5433 GB, free: 1.383 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002385/0.4521, allocations: 158.4 kB / 0.5434 GB, free: 1.301 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006265/0.4527, allocations: 455.7 kB / 0.5439 GB, free: 1.113 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.4527, allocations: 0 / 0.5439 GB, free: 1.113 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.4527, allocations: 0 / 0.5439 GB, free: 1.113 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.816e-05/0.4527, allocations: 1.406 kB / 0.5439 GB, free: 1.113 MB / 382.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.001418/0.4542, allocations: 0.609 MB / 0.5445 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.467e-05/0.4542, allocations: 10.08 kB / 0.5445 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.565e-05/0.4542, allocations: 12.16 kB / 0.5445 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.094e-05/0.4543, allocations: 61.36 kB / 0.5446 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000116/0.4544, allocations: 43.59 kB / 0.5446 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004405/0.4549, allocations: 243.6 kB / 0.5448 GB, free: 388 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.251e-05/0.4549, allocations: 24.19 kB / 0.5449 GB, free: 372 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.33e-05/0.4549, allocations: 24.66 kB / 0.5449 GB, free: 364 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006669/0.4556, allocations: 373 kB / 0.5452 GB, free: 144 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.346e-05/0.4556, allocations: 1.25 kB / 0.5452 GB, free: 144 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.54e-05/0.4557, allocations: 12.09 kB / 0.5452 GB, free: 136 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.089e-05/0.4557, allocations: 5.75 kB / 0.5453 GB, free: 136 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000672/0.4563, allocations: 256.3 kB / 0.5455 GB, free: 60 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001722/0.4581, allocations: 0.705 MB / 0.5462 GB, free: 15.55 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005841/0.4587, allocations: 221.3 kB / 0.5464 GB, free: 15.36 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003892/0.459, allocations: 139.2 kB / 0.5465 GB, free: 15.24 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.087e-05/0.4591, allocations: 5.031 kB / 0.5465 GB, free: 15.23 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.892e-05/0.4591, allocations: 38.56 kB / 0.5466 GB, free: 15.19 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003668/0.4595, allocations: 54.3 kB / 0.5466 GB, free: 15.14 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 4.328e-06/0.4595, allocations: 7.984 kB / 0.5466 GB, free: 15.13 MB / 398.1 MB Notification: Performance of matching and sorting (n=23): time 0.00391/0.4634, allocations: 0.7358 MB / 0.5473 GB, free: 14.56 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.681e-05/0.4634, allocations: 55.41 kB / 0.5474 GB, free: 14.5 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004609/0.4639, allocations: 288.4 kB / 0.5477 GB, free: 14.23 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.639e-05/0.464, allocations: 33.7 kB / 0.5477 GB, free: 14.2 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001866/0.4641, allocations: 185.8 kB / 0.5479 GB, free: 14.02 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.693e-05/0.4642, allocations: 77.86 kB / 0.548 GB, free: 13.95 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001213/0.4644, allocations: 54.53 kB / 0.548 GB, free: 13.9 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001826/0.4645, allocations: 340.3 kB / 0.5483 GB, free: 13.57 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003028/0.4648, allocations: 102.9 kB / 0.5484 GB, free: 13.48 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002806/0.4651, allocations: 109.7 kB / 0.5485 GB, free: 13.4 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005754/0.4657, allocations: 233.2 kB / 0.5488 GB, free: 13.2 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.4657, allocations: 0 / 0.5488 GB, free: 13.2 MB / 398.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.00188/0.4676, allocations: 0.49 MB / 0.5492 GB, free: 12.79 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.139e-05/0.4676, allocations: 4 kB / 0.5492 GB, free: 12.79 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.4676, allocations: 0 / 0.5492 GB, free: 12.79 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001377/0.469, allocations: 208.2 kB / 0.5494 GB, free: 12.63 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006917/0.4697, allocations: 89.88 kB / 0.5495 GB, free: 12.56 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00514/0.4748, allocations: 4.546 MB / 0.554 GB, free: 7.891 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003165/0.4751, allocations: 17.14 kB / 0.554 GB, free: 7.879 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.411e-05/0.4752, allocations: 10.41 kB / 0.554 GB, free: 7.871 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.0002294/0.4754, allocations: 146.3 kB / 0.5541 GB, free: 7.719 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.912e-05/0.4755, allocations: 32.47 kB / 0.5542 GB, free: 7.688 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001605/0.4771, allocations: 0.511 MB / 0.5547 GB, free: 7.254 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.206e-06/0.4771, allocations: 4 kB / 0.5547 GB, free: 7.25 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.4771, allocations: 0.7969 kB / 0.5547 GB, free: 7.25 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.169e-06/0.4771, allocations: 1.359 kB / 0.5547 GB, free: 7.25 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002072/0.4792, allocations: 0.8534 MB / 0.5555 GB, free: 6.457 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.529e-06/0.4792, allocations: 4.75 kB / 0.5555 GB, free: 6.453 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005857/0.4798, allocations: 86.55 kB / 0.5556 GB, free: 6.387 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007897/0.4806, allocations: 147.6 kB / 0.5557 GB, free: 6.266 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.404e-05/0.4806, allocations: 13.5 kB / 0.5557 GB, free: 6.254 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004091/0.4847, allocations: 4.204 MB / 0.5598 GB, free: 1.867 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.4847, allocations: 0.6562 kB / 0.5599 GB, free: 1.867 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001495/0.4862, allocations: 0.5568 MB / 0.5604 GB, free: 1.355 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001093/0.4863, allocations: 42.23 kB / 0.5604 GB, free: 1.316 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.93e-05/0.4863, allocations: 8.844 kB / 0.5604 GB, free: 1.309 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002638/0.4866, allocations: 16.41 kB / 0.5605 GB, free: 1.297 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001147/0.4867, allocations: 30.34 kB / 0.5605 GB, free: 1.281 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.771e-05/0.4868, allocations: 8.859 kB / 0.5605 GB, free: 1.273 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002687/0.487, allocations: 208.3 kB / 0.5607 GB, free: 1.094 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.487, allocations: 0 / 0.5607 GB, free: 1.094 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006466/0.4877, allocations: 100.5 kB / 0.5608 GB, free: 0.9961 MB / 398.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.001715/0.4894, allocations: 1.085 MB / 0.5618 GB, free: 15.94 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002236/0.4916, allocations: 0.6366 MB / 0.5625 GB, free: 15.36 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.4916, allocations: 0 / 0.5625 GB, free: 15.36 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001008/0.4926, allocations: 433 kB / 0.5629 GB, free: 14.96 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004617/0.4931, allocations: 50.16 kB / 0.5629 GB, free: 14.91 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007292/0.5004, allocations: 3.286 MB / 0.5661 GB, free: 11.88 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000213/0.5006, allocations: 186.2 kB / 0.5663 GB, free: 11.68 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001418/0.5007, allocations: 38.89 kB / 0.5664 GB, free: 11.64 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001817/0.5009, allocations: 107.4 kB / 0.5665 GB, free: 11.53 MB / 414.1 MB Notification: Performance of SimCode: time 9.91e-07/0.5009, allocations: 0 / 0.5665 GB, free: 11.53 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03694/0.5379, allocations: 8.585 MB / 0.5748 GB, free: 3.133 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.02/14.56, allocations: 3.984 kB / 0.5748 GB, free: 3.129 MB / 414.1 MB " [Timeout remaining time 645] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_Pumps_valve_fmu --startTime=0 --stopTime=50 --stepSize=0.1 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_component_models_Pumps_valve.fmu > AES_AES.Coursework.ThermSys_component_models.Pumps_valve.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 17.4691156540066] Failed to read output from testmodel.py, exit status != 0: 14.740450517972931 14.756696776 14.30049451 Calling exit ...