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.00181/0.00181, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.002173/0.002173, allocations: 212.4 kB / 23.04 MB, free: 5.078 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.8 MB, free: 8.059 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.1028/0.1028, allocations: 22.94 MB / 336.2 MB, free: 12.68 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.002995/0.002995, allocations: 67.91 kB / 472.3 MB, free: 8.062 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3478/0.3508, allocations: 59.29 MB / 0.5191 GB, free: 10.67 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.03561/0.3864, allocations: 23.25 MB / 0.5418 GB, free: 2.234 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001151/0.3876, allocations: 395.7 kB / 0.5422 GB, free: 1.949 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001548/0.3877, allocations: 2.938 kB / 0.5422 GB, free: 1.949 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001047/0.3878, allocations: 45.75 kB / 0.5422 GB, free: 1.922 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002292/0.388, allocations: 112.2 kB / 0.5423 GB, free: 1.84 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003263/0.3884, allocations: 102.9 kB / 0.5424 GB, free: 1.785 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003762/0.3887, allocations: 416 kB / 0.5428 GB, free: 1.574 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003014/0.389, allocations: 225.2 kB / 0.5431 GB, free: 1.473 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001636/0.3892, allocations: 173.4 kB / 0.5432 GB, free: 1.391 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002385/0.3894, allocations: 214.8 kB / 0.5434 GB, free: 1.285 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.285e-05/0.3895, allocations: 37.12 kB / 0.5435 GB, free: 1.285 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001297/0.3896, allocations: 67.8 kB / 0.5435 GB, free: 1.277 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.539e-05/0.3897, allocations: 91.94 kB / 0.5436 GB, free: 1.215 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001293/0.3898, allocations: 189.9 kB / 0.5438 GB, free: 1.102 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004684/0.3903, allocations: 444.8 kB / 0.5442 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.3903, allocations: 4 kB / 0.5442 GB, free: 0.918 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3903, allocations: 0 / 0.5442 GB, free: 0.918 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.806e-06/0.3903, allocations: 1.438 kB / 0.5442 GB, free: 0.918 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.00108/0.3914, allocations: 0.6115 MB / 0.5448 GB, free: 468 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.871e-05/0.3914, allocations: 11.23 kB / 0.5448 GB, free: 468 kB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.603e-05/0.3914, allocations: 6.812 kB / 0.5448 GB, free: 468 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.448e-05/0.3915, allocations: 61.05 kB / 0.5449 GB, free: 412 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.622e-05/0.3916, allocations: 44.03 kB / 0.5449 GB, free: 388 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003218/0.3919, allocations: 247.5 kB / 0.5452 GB, free: 184 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.247e-05/0.3919, allocations: 23.53 kB / 0.5452 GB, free: 168 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.036e-05/0.3919, allocations: 26.19 kB / 0.5452 GB, free: 160 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005941/0.3925, allocations: 292.4 kB / 0.5455 GB, free: 40 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.248e-05/0.3926, allocations: 0.5156 kB / 0.5455 GB, free: 40 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.973e-05/0.3926, allocations: 13.69 kB / 0.5455 GB, free: 28 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.075e-06/0.3926, allocations: 14.11 kB / 0.5455 GB, free: 20 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006719/0.3933, allocations: 262.4 kB / 0.5458 GB, free: 15.94 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001486/0.3948, allocations: 0.773 MB / 0.5465 GB, free: 15.46 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005547/0.3953, allocations: 223.6 kB / 0.5467 GB, free: 15.36 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003653/0.3957, allocations: 134.3 kB / 0.5469 GB, free: 15.31 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.284e-05/0.3957, allocations: 6.281 kB / 0.5469 GB, free: 15.31 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.564e-05/0.3957, allocations: 33.94 kB / 0.5469 GB, free: 15.27 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003203/0.396, allocations: 63.45 kB / 0.547 GB, free: 15.21 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 1.463e-06/0.3961, allocations: 0 / 0.547 GB, free: 15.21 MB / 398.1 MB Notification: Performance of matching and sorting (n=23): time 0.003722/0.3998, allocations: 0.7355 MB / 0.5477 GB, free: 14.64 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.395e-05/0.3998, allocations: 56.16 kB / 0.5477 GB, free: 14.58 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003693/0.4002, allocations: 288.2 kB / 0.548 GB, free: 14.32 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.279e-05/0.4002, allocations: 33.7 kB / 0.548 GB, free: 14.28 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001503/0.4004, allocations: 186 kB / 0.5482 GB, free: 14.1 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.04e-05/0.4005, allocations: 81.48 kB / 0.5483 GB, free: 14.03 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001043/0.4006, allocations: 46.25 kB / 0.5483 GB, free: 13.98 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001663/0.4007, allocations: 344 kB / 0.5487 GB, free: 13.65 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003014/0.401, allocations: 103.4 kB / 0.5488 GB, free: 13.57 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002928/0.4013, allocations: 109.7 kB / 0.5489 GB, free: 13.48 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005789/0.4019, allocations: 242.7 kB / 0.5491 GB, free: 13.27 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.4019, allocations: 0 / 0.5491 GB, free: 13.27 MB / 398.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.00191/0.4038, allocations: 496.4 kB / 0.5496 GB, free: 12.87 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.032e-05/0.4038, allocations: 14.44 kB / 0.5496 GB, free: 12.86 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.4039, allocations: 0 / 0.5496 GB, free: 12.86 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001275/0.4051, allocations: 205.5 kB / 0.5498 GB, free: 12.7 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006263/0.4058, allocations: 88.02 kB / 0.5499 GB, free: 12.64 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005119/0.4109, allocations: 4.568 MB / 0.5543 GB, free: 7.953 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003606/0.4112, allocations: 16.61 kB / 0.5544 GB, free: 7.941 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.852e-05/0.4113, allocations: 10.72 kB / 0.5544 GB, free: 7.934 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.0002227/0.4115, allocations: 142.4 kB / 0.5545 GB, free: 7.785 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.195e-05/0.4116, allocations: 32.56 kB / 0.5545 GB, free: 7.754 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001566/0.4131, allocations: 0.5027 MB / 0.555 GB, free: 7.328 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.4131, allocations: 8.609 kB / 0.555 GB, free: 7.32 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.4131, allocations: 3.938 kB / 0.555 GB, free: 7.316 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.105e-06/0.4131, allocations: 5.922 kB / 0.555 GB, free: 7.312 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002042/0.4152, allocations: 0.8929 MB / 0.5559 GB, free: 6.512 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/0.4152, allocations: 0.7031 kB / 0.5559 GB, free: 6.512 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005654/0.4158, allocations: 94.64 kB / 0.556 GB, free: 6.438 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007338/0.4165, allocations: 147.8 kB / 0.5561 GB, free: 6.316 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.853e-05/0.4165, allocations: 8.797 kB / 0.5562 GB, free: 6.309 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003856/0.4204, allocations: 4.214 MB / 0.5603 GB, free: 1.922 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.047e-06/0.4204, allocations: 4 kB / 0.5603 GB, free: 1.918 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001493/0.4219, allocations: 0.5532 MB / 0.5608 GB, free: 1.41 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.47e-05/0.422, allocations: 42.33 kB / 0.5609 GB, free: 1.371 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.446e-05/0.422, allocations: 8 kB / 0.5609 GB, free: 1.363 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002367/0.4222, allocations: 17.44 kB / 0.5609 GB, free: 1.352 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.259e-05/0.4223, allocations: 25.69 kB / 0.5609 GB, free: 1.34 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.488e-05/0.4224, allocations: 13.36 kB / 0.5609 GB, free: 1.328 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002418/0.4226, allocations: 208.1 kB / 0.5611 GB, free: 1.148 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4226, allocations: 0 / 0.5611 GB, free: 1.148 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006022/0.4232, allocations: 99.89 kB / 0.5612 GB, free: 1.051 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.001699/0.4249, allocations: 1.085 MB / 0.5623 GB, free: 16 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002178/0.4271, allocations: 0.6403 MB / 0.5629 GB, free: 15.41 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.4271, allocations: 5.219 kB / 0.5629 GB, free: 15.41 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009943/0.4281, allocations: 431.9 kB / 0.5633 GB, free: 15 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004403/0.4285, allocations: 46.42 kB / 0.5634 GB, free: 14.96 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006944/0.4355, allocations: 3.293 MB / 0.5666 GB, free: 11.87 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004592/0.4359, allocations: 0.7844 MB / 0.5673 GB, free: 11.06 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001323/0.436, allocations: 30.97 kB / 0.5674 GB, free: 11.03 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001631/0.4362, allocations: 107.4 kB / 0.5675 GB, free: 10.92 MB / 414.1 MB Notification: Performance of SimCode: time 7.11e-07/0.4362, allocations: 0 / 0.5675 GB, free: 10.92 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03701/0.4732, allocations: 8.375 MB / 0.5756 GB, free: 2.684 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.54/14.02, allocations: 10.25 kB / 0.5757 GB, free: 2.676 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 & /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: 16.909533929952886] Failed to read output from testmodel.py, exit status != 0: 14.214416250004433 14.231238111 13.837438122 Calling exit ...