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.001773/0.001773, allocations: 100.3 kB / 19.72 MB, free: 1.785 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.002266/0.002266, allocations: 211.2 kB / 23.01 MB, free: 4.621 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.481/1.481, allocations: 230.6 MB / 256.8 MB, free: 7.742 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.1088/0.1088, allocations: 24.04 MB / 337.2 MB, free: 11.31 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.002253/0.002253, allocations: 67.89 kB / 473.8 MB, free: 6.371 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3456/0.3479, 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.07011/0.418, allocations: 23.4 MB / 0.5438 GB, free: 1.66 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001594/0.4196, allocations: 437 kB / 0.5442 GB, free: 1.355 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001469/0.4197, allocations: 6.75 kB / 0.5442 GB, free: 1.352 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001302/0.4199, allocations: 45.66 kB / 0.5442 GB, free: 1.324 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00027/0.4201, allocations: 111 kB / 0.5443 GB, free: 1.242 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004458/0.4206, allocations: 108.5 kB / 0.5444 GB, free: 1.184 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003615/0.4209, allocations: 423.1 kB / 0.5448 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003407/0.4213, allocations: 218.8 kB / 0.5451 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001792/0.4215, allocations: 162.8 kB / 0.5452 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002622/0.4217, allocations: 206 kB / 0.5454 GB, free: 424 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.244e-05/0.4218, allocations: 40 kB / 0.5454 GB, free: 384 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000125/0.4219, allocations: 67.83 kB / 0.5455 GB, free: 324 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.402e-05/0.422, allocations: 87.91 kB / 0.5456 GB, free: 252 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001387/0.4221, allocations: 164.2 kB / 0.5457 GB, free: 104 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006399/0.4227, allocations: 445.1 kB / 0.5462 GB, free: 15.82 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.4228, allocations: 0 / 0.5462 GB, free: 15.82 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.4228, allocations: 0 / 0.5462 GB, free: 15.82 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.095e-06/0.4228, allocations: 3.938 kB / 0.5462 GB, free: 15.81 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.00127/0.424, allocations: 0.6095 MB / 0.5468 GB, free: 15.22 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.926e-05/0.4241, allocations: 12.92 kB / 0.5468 GB, free: 15.21 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.099e-05/0.4242, allocations: 61.73 kB / 0.5468 GB, free: 15.15 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.059e-05/0.4243, allocations: 44.66 kB / 0.5469 GB, free: 15.11 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004681/0.4247, allocations: 251.6 kB / 0.5471 GB, free: 14.86 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.817e-05/0.4248, allocations: 17.03 kB / 0.5471 GB, free: 14.84 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.487e-05/0.4248, allocations: 25.03 kB / 0.5472 GB, free: 14.82 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007218/0.4255, allocations: 375.3 kB / 0.5475 GB, free: 14.49 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.582e-05/0.4255, allocations: 7.875 kB / 0.5475 GB, free: 14.48 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.609e-05/0.4256, allocations: 12 kB / 0.5475 GB, free: 14.47 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.105e-05/0.4256, allocations: 8 kB / 0.5475 GB, free: 14.46 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006841/0.4263, allocations: 265.6 kB / 0.5478 GB, free: 14.25 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001645/0.4279, allocations: 0.6978 MB / 0.5485 GB, free: 13.61 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00063/0.4285, allocations: 221.8 kB / 0.5487 GB, free: 13.41 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004074/0.429, allocations: 134.7 kB / 0.5488 GB, free: 13.29 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.185e-05/0.429, allocations: 9.203 kB / 0.5488 GB, free: 13.29 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.971e-05/0.429, allocations: 34.56 kB / 0.5489 GB, free: 13.24 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003099/0.4293, allocations: 58.88 kB / 0.5489 GB, free: 13.19 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 2.104e-06/0.4294, allocations: 0 / 0.5489 GB, free: 13.19 MB / 398.1 MB Notification: Performance of matching and sorting (n=23): time 0.003701/0.4331, allocations: 0.7414 MB / 0.5496 GB, free: 12.62 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.781e-05/0.4331, allocations: 55.34 kB / 0.5497 GB, free: 12.55 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003573/0.4335, allocations: 290.3 kB / 0.55 GB, free: 12.29 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.37e-05/0.4335, allocations: 29.7 kB / 0.55 GB, free: 12.25 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001499/0.4336, allocations: 196.2 kB / 0.5502 GB, free: 12.06 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.008e-05/0.4337, allocations: 73.73 kB / 0.5503 GB, free: 12 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001117/0.4338, allocations: 54.91 kB / 0.5503 GB, free: 11.95 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000195/0.434, allocations: 340.3 kB / 0.5506 GB, free: 11.61 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003111/0.4343, allocations: 98.98 kB / 0.5507 GB, free: 11.54 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002901/0.4346, allocations: 107.6 kB / 0.5508 GB, free: 11.45 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006163/0.4352, allocations: 236.7 kB / 0.5511 GB, free: 11.24 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.4352, allocations: 8.5 kB / 0.5511 GB, free: 11.23 MB / 398.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.001939/0.4372, allocations: 0.4912 MB / 0.5515 GB, free: 10.83 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.076e-05/0.4372, allocations: 8.75 kB / 0.5516 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.4372, allocations: 0 / 0.5516 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001257/0.4385, allocations: 208.8 kB / 0.5518 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006308/0.4391, allocations: 90.16 kB / 0.5518 GB, free: 10.6 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004955/0.4441, allocations: 4.552 MB / 0.5563 GB, free: 5.926 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002904/0.4443, allocations: 13 kB / 0.5563 GB, free: 5.918 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.73e-05/0.4444, allocations: 14.75 kB / 0.5563 GB, free: 5.906 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.0002051/0.4446, allocations: 134.5 kB / 0.5564 GB, free: 5.766 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.772e-05/0.4446, allocations: 31.81 kB / 0.5565 GB, free: 5.734 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001589/0.4462, allocations: 0.5126 MB / 0.557 GB, free: 5.297 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.863e-06/0.4462, allocations: 4.703 kB / 0.557 GB, free: 5.293 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.906e-06/0.4462, allocations: 4 kB / 0.557 GB, free: 5.289 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.51e-06/0.4463, allocations: 1.547 kB / 0.557 GB, free: 5.289 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002028/0.4483, allocations: 0.8638 MB / 0.5578 GB, free: 4.488 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.556e-06/0.4483, allocations: 0 / 0.5578 GB, free: 4.488 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005575/0.4488, allocations: 86.92 kB / 0.5579 GB, free: 4.422 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007159/0.4496, allocations: 153.1 kB / 0.5581 GB, free: 4.297 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.195e-05/0.4496, allocations: 12.69 kB / 0.5581 GB, free: 4.285 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003811/0.4534, allocations: 4.222 MB / 0.5622 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.4534, allocations: 0 / 0.5622 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001471/0.4549, allocations: 0.5513 MB / 0.5627 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.523e-05/0.4549, allocations: 33.73 kB / 0.5628 GB, free: 15.35 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.154e-05/0.455, allocations: 8.547 kB / 0.5628 GB, free: 15.34 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000239/0.4552, allocations: 16.73 kB / 0.5628 GB, free: 15.33 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001026/0.4553, allocations: 34.81 kB / 0.5628 GB, free: 15.31 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.298e-05/0.4554, allocations: 8.844 kB / 0.5628 GB, free: 15.3 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002582/0.4556, allocations: 208.2 kB / 0.563 GB, free: 15.12 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.4556, allocations: 3.938 kB / 0.563 GB, free: 15.12 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006031/0.4562, allocations: 104.5 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.001675/0.4579, allocations: 1.085 MB / 0.5642 GB, free: 13.96 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002189/0.4601, allocations: 0.6489 MB / 0.5648 GB, free: 13.38 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.4601, allocations: 0 / 0.5648 GB, free: 13.38 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009554/0.461, allocations: 438 kB / 0.5652 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.0004299/0.4615, allocations: 55.8 kB / 0.5653 GB, free: 12.92 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006825/0.4683, allocations: 3.282 MB / 0.5685 GB, free: 9.672 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002587/0.4686, allocations: 190.2 kB / 0.5687 GB, free: 9.469 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001437/0.4687, allocations: 26.97 kB / 0.5687 GB, free: 9.441 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001633/0.4689, allocations: 115.3 kB / 0.5688 GB, free: 9.328 MB / 414.1 MB Notification: Performance of SimCode: time 1.212e-06/0.4689, allocations: 0 / 0.5688 GB, free: 9.328 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05883/0.5277, allocations: 8.89 MB / 0.5775 GB, free: 0.5898 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.26/13.79, allocations: 11.97 kB / 0.5775 GB, free: 0.582 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 sys.exit(0), Time elapsed: 16.546989605762064] Failed to read output from testmodel.py, exit status != 0: 13.91903468221426 13.938106342 13.511992066 Calling exit ...