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.0008635/0.0008635, allocations: 72.52 kB / 19.95 MB, free: 4.613 MB / 18.57 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.00104/0.00104, allocations: 169.2 kB / 23.23 MB, free: 1.332 MB / 18.57 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 0.901/0.901, allocations: 177.1 MB / 203.5 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] 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.063/0.063, allocations: 18.12 MB / 278.1 MB, free: 11.52 MB / 266.7 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: Performance of FrontEnd - loaded program: time 2.174e-06/2.174e-06, allocations: 0 / 415.1 MB, free: 12.68 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.37e-05/2.588e-05, allocations: 2.281 kB / 415.1 MB, free: 12.67 MB / 330.7 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.02628/0.02631, allocations: 23.67 MB / 438.7 MB, free: 15.42 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001338/0.02765, allocations: 450 kB / 439.2 MB, free: 15.03 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001638/0.02781, allocations: 0 / 439.2 MB, free: 15.03 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001037/0.02791, allocations: 44.92 kB / 439.2 MB, free: 15 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002615/0.02817, allocations: 115.7 kB / 439.3 MB, free: 14.9 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000499/0.02867, allocations: 111.9 kB / 439.4 MB, free: 14.82 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.000451/0.02912, allocations: 431.1 kB / 439.9 MB, free: 14.44 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004163/0.02954, allocations: 216.1 kB / 440.1 MB, free: 14.28 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000188/0.02973, allocations: 158.5 kB / 440.2 MB, free: 14.14 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002555/0.02998, allocations: 177.3 kB / 440.4 MB, free: 14.02 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 5.347e-05/0.03004, allocations: 36 kB / 440.4 MB, free: 13.98 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001271/0.03016, allocations: 64.91 kB / 440.5 MB, free: 13.93 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 8.117e-05/0.03025, allocations: 91.84 kB / 440.6 MB, free: 13.85 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001174/0.03036, allocations: 132.9 kB / 440.7 MB, free: 13.74 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005475/0.03091, allocations: 479.2 kB / 441.2 MB, free: 13.43 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.03092, allocations: 3.938 kB / 441.2 MB, free: 13.43 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.03092, allocations: 0 / 441.2 MB, free: 13.43 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.583e-06/0.03092, allocations: 0 / 441.2 MB, free: 13.43 MB / 346.7 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.0009315/0.03186, allocations: 0.5979 MB / 441.8 MB, free: 12.85 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.05e-05/0.03191, allocations: 12.92 kB / 441.8 MB, free: 12.84 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.117e-05/0.03197, allocations: 61.12 kB / 441.9 MB, free: 12.77 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.289e-05/0.03203, allocations: 44.66 kB / 441.9 MB, free: 12.73 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003667/0.0324, allocations: 243.8 kB / 442.1 MB, free: 12.49 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.289e-05/0.03242, allocations: 21.03 kB / 442.2 MB, free: 12.47 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.072e-05/0.03245, allocations: 32.31 kB / 442.2 MB, free: 12.44 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004708/0.03292, allocations: 367.3 kB / 442.6 MB, free: 12.11 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.03293, allocations: 192 / 442.6 MB, free: 12.11 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.496e-05/0.03296, allocations: 17.06 kB / 442.6 MB, free: 12.1 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.04e-05/0.03297, allocations: 12.12 kB / 442.6 MB, free: 12.09 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004116/0.03338, allocations: 261.4 kB / 442.8 MB, free: 11.87 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001081/0.03446, allocations: 0.7056 MB / 443.5 MB, free: 11.22 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004051/0.03486, allocations: 222 kB / 443.8 MB, free: 11.02 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002459/0.03511, allocations: 139.2 kB / 443.9 MB, free: 10.91 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.352e-05/0.03514, allocations: 9.359 kB / 443.9 MB, free: 10.9 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.716e-05/0.03517, allocations: 35.17 kB / 443.9 MB, free: 10.86 MB / 346.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001827/0.03535, allocations: 58.3 kB / 444 MB, free: 10.8 MB / 346.7 MB Notification: Performance of pre-optimization done (n=23): time 1.853e-06/0.03536, allocations: 4 kB / 444 MB, free: 10.8 MB / 346.7 MB Notification: Performance of matching and sorting (n=23): time 0.002066/0.03742, allocations: 0.749 MB / 444.7 MB, free: 10.22 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.716e-05/0.03746, allocations: 56.05 kB / 444.8 MB, free: 10.15 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002514/0.03771, allocations: 288.3 kB / 445.1 MB, free: 9.895 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.436e-05/0.03773, allocations: 33.7 kB / 445.1 MB, free: 9.855 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00011/0.03784, allocations: 189.7 kB / 445.3 MB, free: 9.676 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.224e-05/0.03789, allocations: 73.31 kB / 445.4 MB, free: 9.609 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.512e-05/0.03796, allocations: 54.11 kB / 445.4 MB, free: 9.559 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.98e-05/0.03806, allocations: 336.2 kB / 445.8 MB, free: 9.23 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001787/0.03824, allocations: 103.3 kB / 445.9 MB, free: 9.148 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001686/0.03841, allocations: 109.9 kB / 446 MB, free: 9.062 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003482/0.03876, allocations: 225.8 kB / 446.2 MB, free: 8.867 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.03876, allocations: 4 kB / 446.2 MB, free: 8.863 MB / 346.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.001044/0.0398, allocations: 0.5027 MB / 446.7 MB, free: 8.445 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.761e-05/0.03982, allocations: 4.609 kB / 446.7 MB, free: 8.441 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.523e-06/0.03983, allocations: 0 / 446.7 MB, free: 8.441 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007063/0.04053, allocations: 213 kB / 446.9 MB, free: 8.281 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003266/0.04086, allocations: 86.44 kB / 447 MB, free: 8.219 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003106/0.04397, allocations: 4.547 MB / 451.5 MB, free: 3.543 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001699/0.04414, allocations: 20.84 kB / 451.6 MB, free: 3.527 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.824e-05/0.04416, allocations: 7.047 kB / 451.6 MB, free: 3.523 MB / 346.7 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.0001577/0.04431, allocations: 138.4 kB / 451.7 MB, free: 3.379 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.196e-05/0.04436, allocations: 32.42 kB / 451.7 MB, free: 3.348 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008439/0.0452, allocations: 0.5088 MB / 452.2 MB, free: 2.922 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.0452, allocations: 4 kB / 452.2 MB, free: 2.918 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.796e-06/0.04521, allocations: 3.938 kB / 452.2 MB, free: 2.914 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.04521, allocations: 5.859 kB / 452.3 MB, free: 2.91 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001144/0.04636, allocations: 0.8716 MB / 453.1 MB, free: 2.102 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.04636, allocations: 0 / 453.1 MB, free: 2.102 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002692/0.04663, allocations: 90.81 kB / 453.2 MB, free: 2.031 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003551/0.04698, allocations: 157.1 kB / 453.4 MB, free: 1.902 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.719e-05/0.047, allocations: 4.562 kB / 453.4 MB, free: 1.898 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002105/0.04911, allocations: 4.199 MB / 457.6 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.04911, allocations: 4.312 kB / 457.6 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007542/0.04986, allocations: 0.5523 MB / 458.1 MB, free: 12.97 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.179e-05/0.0499, allocations: 39.69 kB / 458.2 MB, free: 12.93 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.373e-05/0.04993, allocations: 8.062 kB / 458.2 MB, free: 12.93 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001141/0.05004, allocations: 15.98 kB / 458.2 MB, free: 12.91 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.563e-05/0.05012, allocations: 35.94 kB / 458.2 MB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.433e-05/0.05013, allocations: 8 kB / 458.2 MB, free: 12.87 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001534/0.05028, allocations: 211 kB / 458.4 MB, free: 12.66 MB / 362.7 MB Notification: Performance of sort global known variables: time 4e-08/0.05028, allocations: 0 / 458.4 MB, free: 12.66 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004136/0.0507, allocations: 95.89 kB / 458.5 MB, free: 12.57 MB / 362.7 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.0009224/0.05162, allocations: 1.097 MB / 459.6 MB, free: 11.43 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001106/0.05273, allocations: 0.6457 MB / 460.3 MB, free: 10.76 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.05273, allocations: 0 / 460.3 MB, free: 10.76 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004662/0.05319, allocations: 441.1 kB / 460.7 MB, free: 10.3 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003077/0.0535, allocations: 58.7 kB / 460.8 MB, free: 10.25 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003817/0.05732, allocations: 3.266 MB / 464 MB, free: 6.883 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001283/0.05745, allocations: 186.3 kB / 464.2 MB, free: 6.688 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.133e-05/0.05754, allocations: 30.97 kB / 464.2 MB, free: 6.66 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000111/0.05765, allocations: 108.5 kB / 464.3 MB, free: 6.555 MB / 362.7 MB Notification: Performance of SimCode: time 1.022e-06/0.05765, allocations: 4 kB / 464.3 MB, free: 6.551 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02467/0.08232, allocations: 9.03 MB / 473.4 MB, free: 13.68 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.112/8.194, allocations: 7.125 kB / 473.4 MB, free: 13.68 MB / 378.7 MB " [Timeout remaining time 652] (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: 10.150470054708421] Failed to read output from testmodel.py, exit status != 0: 8.287672153674066 8.296812192 8.264036165 Calling exit ...