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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001323/0.001328, allocations: 113.4 kB / 16.41 MB, free: 6.504 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001479/0.001479, allocations: 191.7 kB / 19.35 MB, free: 3.734 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.432/1.432, allocations: 222.9 MB / 245 MB, free: 15.02 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.1002/0.1002, allocations: 22.33 MB / 319.6 MB, free: 6.762 MB / 254.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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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 0.002001/0.002001, allocations: 68.12 kB / 445.3 MB, free: 8.613 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1172/0.1193, allocations: 54.96 MB / 0.4885 GB, free: 1.602 MB / 366.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.4287/0.548, allocations: 23.19 MB / 0.5111 GB, free: 4.98 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001112/0.5492, allocations: 392.7 kB / 0.5115 GB, free: 4.91 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000151/0.5493, allocations: 7.406 kB / 0.5115 GB, free: 4.906 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001064/0.5494, allocations: 44.2 kB / 0.5116 GB, free: 4.879 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002273/0.5497, allocations: 103.4 kB / 0.5117 GB, free: 4.828 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003569/0.55, allocations: 110.7 kB / 0.5118 GB, free: 4.82 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003761/0.5504, allocations: 407.8 kB / 0.5122 GB, free: 4.734 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000395/0.5508, allocations: 251.1 kB / 0.5124 GB, free: 4.707 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001886/0.551, allocations: 164.3 kB / 0.5125 GB, free: 4.672 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002937/0.5513, allocations: 214.7 kB / 0.5128 GB, free: 4.629 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.485e-05/0.5514, allocations: 36.88 kB / 0.5128 GB, free: 4.629 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000173/0.5516, allocations: 71.06 kB / 0.5129 GB, free: 4.625 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.183e-05/0.5517, allocations: 89.52 kB / 0.5129 GB, free: 4.609 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001925/0.5519, allocations: 190.8 kB / 0.5131 GB, free: 4.555 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006314/0.5525, allocations: 444.7 kB / 0.5135 GB, free: 4.477 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.5525, allocations: 0 / 0.5135 GB, free: 4.477 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.013e-06/0.5525, allocations: 0 / 0.5135 GB, free: 4.477 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.011e-05/0.5526, allocations: 1.312 kB / 0.5135 GB, free: 4.477 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.001203/0.5538, allocations: 0.6916 MB / 0.5142 GB, free: 3.98 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.215e-05/0.5538, allocations: 8.531 kB / 0.5142 GB, free: 3.98 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.392e-05/0.5539, allocations: 60.22 kB / 0.5143 GB, free: 3.941 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.4e-05/0.554, allocations: 43.53 kB / 0.5143 GB, free: 3.918 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003738/0.5544, allocations: 312.8 kB / 0.5146 GB, free: 3.672 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.787e-05/0.5544, allocations: 18.22 kB / 0.5146 GB, free: 3.672 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.975e-05/0.5544, allocations: 24.88 kB / 0.5147 GB, free: 3.672 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006028/0.5551, allocations: 278.9 kB / 0.5149 GB, free: 3.633 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.418e-05/0.5551, allocations: 3.938 kB / 0.5149 GB, free: 3.629 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.043e-05/0.5551, allocations: 11.3 kB / 0.5149 GB, free: 3.629 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.07e-05/0.5551, allocations: 6.938 kB / 0.515 GB, free: 3.629 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006322/0.5558, allocations: 255.7 kB / 0.5152 GB, free: 3.621 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00149/0.5573, allocations: 0.8149 MB / 0.516 GB, free: 3.285 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005423/0.5578, allocations: 236.5 kB / 0.5162 GB, free: 3.258 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003858/0.5582, allocations: 145.8 kB / 0.5164 GB, free: 3.246 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.541e-05/0.5583, allocations: 9.594 kB / 0.5164 GB, free: 3.242 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.086e-05/0.5583, allocations: 36.22 kB / 0.5164 GB, free: 3.203 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002171/0.5585, allocations: 40.66 kB / 0.5164 GB, free: 3.191 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 2.004e-06/0.5585, allocations: 0 / 0.5164 GB, free: 3.191 MB / 382.1 MB Notification: Performance of matching and sorting (n=23): time 0.003585/0.5621, allocations: 0.9787 MB / 0.5174 GB, free: 2.801 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.151e-05/0.5622, allocations: 53.62 kB / 0.5174 GB, free: 2.738 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000353/0.5625, allocations: 285.9 kB / 0.5177 GB, free: 2.633 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.18e-05/0.5626, allocations: 31.77 kB / 0.5178 GB, free: 2.602 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001124/0.5627, allocations: 186.4 kB / 0.5179 GB, free: 2.488 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.653e-05/0.5628, allocations: 78.11 kB / 0.518 GB, free: 2.438 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.843e-05/0.5629, allocations: 51.67 kB / 0.5181 GB, free: 2.422 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.919e-05/0.5629, allocations: 341.2 kB / 0.5184 GB, free: 2.105 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002957/0.5632, allocations: 103.4 kB / 0.5185 GB, free: 2.105 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002737/0.5635, allocations: 103.3 kB / 0.5186 GB, free: 2.105 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005718/0.5641, allocations: 244.5 kB / 0.5188 GB, free: 2.082 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.5641, allocations: 0 / 0.5188 GB, free: 2.082 MB / 382.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.001865/0.566, allocations: 0.492 MB / 0.5193 GB, free: 1.984 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.164e-05/0.566, allocations: 5.219 kB / 0.5193 GB, free: 1.984 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.566, allocations: 0 / 0.5193 GB, free: 1.984 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001253/0.5673, allocations: 205.3 kB / 0.5195 GB, free: 1.953 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000644/0.568, allocations: 92 kB / 0.5196 GB, free: 1.949 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004465/0.5724, allocations: 4.764 MB / 0.5242 GB, free: 13.75 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003232/0.5728, allocations: 16.09 kB / 0.5242 GB, free: 13.75 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.998e-05/0.5728, allocations: 19.28 kB / 0.5243 GB, free: 13.74 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.0002181/0.5731, allocations: 137.6 kB / 0.5244 GB, free: 13.62 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.498e-05/0.5731, allocations: 30.22 kB / 0.5244 GB, free: 13.61 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00142/0.5746, allocations: 0.5093 MB / 0.5249 GB, free: 13.51 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/0.5746, allocations: 4.578 kB / 0.5249 GB, free: 13.51 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/0.5746, allocations: 0.9688 kB / 0.5249 GB, free: 13.51 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.294e-05/0.5746, allocations: 7.109 kB / 0.5249 GB, free: 13.5 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002099/0.5767, allocations: 0.9307 MB / 0.5258 GB, free: 13.15 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/0.5767, allocations: 3.938 kB / 0.5258 GB, free: 13.14 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005489/0.5773, allocations: 87.64 kB / 0.5259 GB, free: 13.14 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006836/0.578, allocations: 149.3 kB / 0.5261 GB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.707e-05/0.578, allocations: 6.266 kB / 0.5261 GB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004017/0.5821, allocations: 4.434 MB / 0.5304 GB, free: 8.977 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.634e-06/0.5821, allocations: 1.062 kB / 0.5304 GB, free: 8.977 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001493/0.5836, allocations: 0.5593 MB / 0.531 GB, free: 8.77 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001455/0.5838, allocations: 111.9 kB / 0.5311 GB, free: 8.656 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.609e-05/0.5838, allocations: 5.609 kB / 0.5311 GB, free: 8.656 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002356/0.5841, allocations: 17.69 kB / 0.5311 GB, free: 8.656 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001159/0.5842, allocations: 26.12 kB / 0.5311 GB, free: 8.656 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.445e-05/0.5842, allocations: 12.58 kB / 0.5311 GB, free: 8.656 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002763/0.5845, allocations: 208.9 kB / 0.5313 GB, free: 8.578 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.5845, allocations: 4 kB / 0.5313 GB, free: 8.574 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006222/0.5851, allocations: 96.61 kB / 0.5314 GB, free: 8.566 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.001683/0.5868, allocations: 1.094 MB / 0.5325 GB, free: 7.832 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002328/0.5892, allocations: 0.6418 MB / 0.5331 GB, free: 7.594 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.049e-05/0.5892, allocations: 5.125 kB / 0.5331 GB, free: 7.59 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00112/0.5903, allocations: 460 kB / 0.5336 GB, free: 7.348 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005521/0.5909, allocations: 56.81 kB / 0.5336 GB, free: 7.336 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006857/0.5978, allocations: 3.279 MB / 0.5368 GB, free: 5.844 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004685/0.5983, allocations: 0.7893 MB / 0.5376 GB, free: 5.141 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001597/0.5984, allocations: 28.7 kB / 0.5376 GB, free: 5.133 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00014/0.5986, allocations: 112 kB / 0.5377 GB, free: 5.121 MB / 398.1 MB Notification: Performance of SimCode: time 9.62e-07/0.5986, allocations: 0 / 0.5377 GB, free: 5.121 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05581/0.6544, allocations: 8.019 MB / 0.5455 GB, free: 1.488 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.46/13.12, allocations: 16.08 kB / 0.5456 GB, free: 1.477 MB / 398.1 MB " [Timeout remaining time 647] (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 & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_component_models.Pumps_valve_res.csv --start-time 0 --stop-time 50 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 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: 15.842497720965184] Failed to read output from testmodel.py, exit status != 0: 13.217124887974933 13.237206014 12.680618923 Calling exit ...