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.001301/0.001301, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001515/0.001515, allocations: 217 kB / 22.25 MB, free: 5.082 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.452/1.452, allocations: 230.6 MB / 256 MB, free: 8.047 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.107/0.107, allocations: 24.12 MB / 336.6 MB, free: 11.47 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.003213/0.003213, allocations: 63.91 kB / 473.3 MB, free: 6.41 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3891/0.3923, allocations: 59.59 MB / 0.5204 GB, free: 10.11 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.03764/0.43, allocations: 23.43 MB / 0.5433 GB, free: 1.512 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001517/0.4315, allocations: 459 kB / 0.5437 GB, free: 1.184 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001809/0.4317, allocations: 3.906 kB / 0.5437 GB, free: 1.184 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001174/0.4318, allocations: 47.98 kB / 0.5438 GB, free: 1.152 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002659/0.4321, allocations: 107.4 kB / 0.5439 GB, free: 1.074 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004025/0.4325, allocations: 117.4 kB / 0.544 GB, free: 1.008 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004599/0.4329, allocations: 413.8 kB / 0.5444 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000378/0.4333, allocations: 219 kB / 0.5446 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002194/0.4335, allocations: 178.7 kB / 0.5448 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002424/0.4338, allocations: 215.5 kB / 0.545 GB, free: 452 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.788e-05/0.4338, allocations: 40 kB / 0.545 GB, free: 412 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001195/0.4339, allocations: 68.77 kB / 0.5451 GB, free: 352 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.73e-05/0.434, allocations: 93.31 kB / 0.5452 GB, free: 276 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001279/0.4341, allocations: 186.7 kB / 0.5453 GB, free: 104 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006173/0.4347, allocations: 462.1 kB / 0.5458 GB, free: 15.8 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.4347, allocations: 0 / 0.5458 GB, free: 15.8 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.805e-06/0.4347, allocations: 1.125 kB / 0.5458 GB, free: 15.8 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.208e-06/0.4348, allocations: 0 / 0.5458 GB, free: 15.8 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.001249/0.436, allocations: 0.6005 MB / 0.5464 GB, free: 15.21 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.201e-05/0.436, allocations: 13.62 kB / 0.5464 GB, free: 15.2 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.92e-05/0.4361, allocations: 60.38 kB / 0.5464 GB, free: 15.14 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.191e-05/0.4362, allocations: 41.59 kB / 0.5465 GB, free: 15.1 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004194/0.4366, allocations: 255.8 kB / 0.5467 GB, free: 14.85 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.955e-05/0.4367, allocations: 21.88 kB / 0.5467 GB, free: 14.83 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.688e-05/0.4367, allocations: 24.38 kB / 0.5468 GB, free: 14.81 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006552/0.4374, allocations: 289.8 kB / 0.547 GB, free: 14.58 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.537e-05/0.4374, allocations: 3.938 kB / 0.547 GB, free: 14.57 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.491e-05/0.4374, allocations: 15.94 kB / 0.5471 GB, free: 14.56 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.002e-05/0.4374, allocations: 4 kB / 0.5471 GB, free: 14.55 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006922/0.4381, allocations: 261.9 kB / 0.5473 GB, free: 14.34 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001708/0.4398, allocations: 0.7816 MB / 0.5481 GB, free: 13.67 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005783/0.4404, allocations: 213.9 kB / 0.5483 GB, free: 13.48 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003812/0.4408, allocations: 136.7 kB / 0.5484 GB, free: 13.36 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.249e-05/0.4408, allocations: 7.938 kB / 0.5484 GB, free: 13.36 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.22e-05/0.4409, allocations: 34.56 kB / 0.5485 GB, free: 13.31 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002998/0.4412, allocations: 58.39 kB / 0.5485 GB, free: 13.26 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 1.623e-06/0.4412, allocations: 3.938 kB / 0.5485 GB, free: 13.26 MB / 398.1 MB Notification: Performance of matching and sorting (n=23): time 0.00367/0.4448, allocations: 0.7519 MB / 0.5492 GB, free: 12.68 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.763e-05/0.4449, allocations: 53.98 kB / 0.5493 GB, free: 12.61 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003671/0.4452, allocations: 291 kB / 0.5496 GB, free: 12.34 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.649e-05/0.4453, allocations: 29.7 kB / 0.5496 GB, free: 12.31 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001517/0.4454, allocations: 192.9 kB / 0.5498 GB, free: 12.12 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.556e-05/0.4455, allocations: 82.56 kB / 0.5499 GB, free: 12.05 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001045/0.4456, allocations: 50.48 kB / 0.5499 GB, free: 12 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001611/0.4458, allocations: 336.4 kB / 0.5502 GB, free: 11.68 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002847/0.4461, allocations: 106.3 kB / 0.5503 GB, free: 11.59 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000278/0.4463, allocations: 110.4 kB / 0.5504 GB, free: 11.5 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005688/0.4469, allocations: 241.3 kB / 0.5507 GB, free: 11.29 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.4469, allocations: 0 / 0.5507 GB, free: 11.29 MB / 398.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.00189/0.4488, allocations: 0.4989 MB / 0.5512 GB, free: 10.88 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.699e-05/0.4488, allocations: 4 kB / 0.5512 GB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.082e-06/0.4488, allocations: 0 / 0.5512 GB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001284/0.4501, allocations: 213.2 kB / 0.5514 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006304/0.4507, allocations: 94.12 kB / 0.5515 GB, free: 10.64 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004971/0.4557, allocations: 4.557 MB / 0.5559 GB, free: 5.977 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002672/0.456, allocations: 16.55 kB / 0.5559 GB, free: 5.965 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.901e-05/0.456, allocations: 14.91 kB / 0.5559 GB, free: 5.953 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.0001965/0.4562, allocations: 139.1 kB / 0.5561 GB, free: 5.809 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.843e-05/0.4563, allocations: 31.81 kB / 0.5561 GB, free: 5.777 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001532/0.4578, allocations: 0.5124 MB / 0.5566 GB, free: 5.34 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.63e-06/0.4578, allocations: 4 kB / 0.5566 GB, free: 5.336 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.4578, allocations: 5 kB / 0.5566 GB, free: 5.332 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.063e-05/0.4578, allocations: 9.719 kB / 0.5566 GB, free: 5.324 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002/0.4598, allocations: 0.8951 MB / 0.5575 GB, free: 4.523 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.4598, allocations: 0 / 0.5575 GB, free: 4.523 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005472/0.4604, allocations: 95.08 kB / 0.5576 GB, free: 4.449 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007637/0.4611, allocations: 153 kB / 0.5577 GB, free: 4.324 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.678e-05/0.4612, allocations: 9.125 kB / 0.5577 GB, free: 4.316 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004088/0.4652, allocations: 4.219 MB / 0.5619 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.4652, allocations: 0 / 0.5619 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001567/0.4668, allocations: 0.559 MB / 0.5624 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.443e-05/0.4669, allocations: 29.64 kB / 0.5624 GB, free: 15.39 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.883e-05/0.4669, allocations: 16.94 kB / 0.5624 GB, free: 15.37 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002361/0.4672, allocations: 16.78 kB / 0.5625 GB, free: 15.36 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.016e-05/0.4672, allocations: 26.44 kB / 0.5625 GB, free: 15.35 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.404e-05/0.4673, allocations: 12.84 kB / 0.5625 GB, free: 15.34 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002374/0.4675, allocations: 208.8 kB / 0.5627 GB, free: 15.16 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4675, allocations: 0 / 0.5627 GB, free: 15.16 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005852/0.4681, allocations: 99.89 kB / 0.5628 GB, free: 15.06 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.001726/0.4698, allocations: 1.09 MB / 0.5639 GB, free: 14 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002164/0.472, allocations: 0.6566 MB / 0.5645 GB, free: 13.4 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.472, allocations: 3.938 kB / 0.5645 GB, free: 13.4 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009809/0.473, allocations: 434.1 kB / 0.5649 GB, free: 12.99 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004323/0.4734, allocations: 48.48 kB / 0.565 GB, free: 12.95 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006863/0.4803, allocations: 3.296 MB / 0.5682 GB, free: 9.602 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004623/0.4807, allocations: 0.7844 MB / 0.569 GB, free: 8.793 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001366/0.4809, allocations: 30.97 kB / 0.569 GB, free: 8.762 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001646/0.481, allocations: 103.4 kB / 0.5691 GB, free: 8.66 MB / 414.1 MB Notification: Performance of SimCode: time 9.62e-07/0.481, allocations: 0 / 0.5691 GB, free: 8.66 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05139/0.5324, allocations: 8.344 MB / 0.5772 GB, free: 448 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.39/13.93, allocations: 11.16 kB / 0.5772 GB, free: 440 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 & /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 sys.exit(0), Time elapsed: 16.579907276201993] Failed to read output from testmodel.py, exit status != 0: 14.051288299961016 14.065162012 13.6271194 Calling exit ...