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.001777/0.001777, allocations: 117.4 kB / 17.17 MB, free: 5.977 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.002075/0.002075, allocations: 214.3 kB / 20.13 MB, free: 3.035 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.689/1.689, allocations: 230.6 MB / 253.5 MB, free: 15.11 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.1096/0.1096, allocations: 22.93 MB / 332.5 MB, free: 2.641 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.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.002191/0.002191, allocations: 64.53 kB / 466.7 MB, free: 32.13 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1054, allocations: 59.27 MB / 0.5137 GB, free: 14.02 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.03662/0.1421, allocations: 23.24 MB / 0.5364 GB, free: 6.895 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001184/0.1432, allocations: 394.8 kB / 0.5367 GB, free: 6.508 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001322/0.1434, allocations: 4 kB / 0.5367 GB, free: 6.504 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001064/0.1435, allocations: 47.5 kB / 0.5368 GB, free: 6.457 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002541/0.1437, allocations: 111 kB / 0.5369 GB, free: 6.348 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000334/0.1441, allocations: 107.8 kB / 0.537 GB, free: 6.242 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004626/0.1445, allocations: 418.2 kB / 0.5374 GB, free: 5.832 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000353/0.1449, allocations: 215.3 kB / 0.5376 GB, free: 5.621 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001966/0.1451, allocations: 175.3 kB / 0.5378 GB, free: 5.449 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000302/0.1454, allocations: 219.1 kB / 0.538 GB, free: 5.234 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.139e-05/0.1454, allocations: 40 kB / 0.538 GB, free: 5.195 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001396/0.1456, allocations: 71.95 kB / 0.5381 GB, free: 5.125 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.851e-05/0.1457, allocations: 83.67 kB / 0.5382 GB, free: 5.043 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001926/0.1459, allocations: 199 kB / 0.5384 GB, free: 4.848 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005234/0.1464, allocations: 454.1 kB / 0.5388 GB, free: 4.402 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.1464, allocations: 0 / 0.5388 GB, free: 4.402 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1464, allocations: 0 / 0.5388 GB, free: 4.402 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.504e-06/0.1464, allocations: 0 / 0.5388 GB, free: 4.402 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.001298/0.1477, allocations: 0.6776 MB / 0.5395 GB, free: 3.672 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.297e-05/0.1477, allocations: 8.625 kB / 0.5395 GB, free: 3.664 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.376e-05/0.1478, allocations: 8.75 kB / 0.5395 GB, free: 3.656 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.966e-05/0.1478, allocations: 58.73 kB / 0.5395 GB, free: 3.59 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.608e-05/0.1479, allocations: 48.66 kB / 0.5396 GB, free: 3.543 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004501/0.1484, allocations: 304.2 kB / 0.5399 GB, free: 3.207 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.55e-05/0.1484, allocations: 24.94 kB / 0.5399 GB, free: 3.184 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.983e-05/0.1484, allocations: 24.38 kB / 0.5399 GB, free: 3.16 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000623/0.1491, allocations: 289.1 kB / 0.5402 GB, free: 2.871 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/0.1491, allocations: 0 / 0.5402 GB, free: 2.871 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.444e-05/0.1491, allocations: 12 kB / 0.5402 GB, free: 2.859 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.176e-05/0.1491, allocations: 7.938 kB / 0.5402 GB, free: 2.852 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006963/0.1498, allocations: 266 kB / 0.5405 GB, free: 2.594 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001534/0.1514, allocations: 0.8111 MB / 0.5413 GB, free: 1.727 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005739/0.1519, allocations: 218.7 kB / 0.5415 GB, free: 1.504 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000388/0.1523, allocations: 140.7 kB / 0.5416 GB, free: 1.363 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.711e-05/0.1523, allocations: 8 kB / 0.5416 GB, free: 1.355 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.266e-05/0.1524, allocations: 30.56 kB / 0.5416 GB, free: 1.316 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003058/0.1527, allocations: 63.84 kB / 0.5417 GB, free: 1.254 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 1.553e-06/0.1527, allocations: 7.938 kB / 0.5417 GB, free: 1.246 MB / 398.1 MB Notification: Performance of matching and sorting (n=23): time 0.003951/0.1566, allocations: 0.9632 MB / 0.5426 GB, free: 216 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.209e-05/0.1567, allocations: 51.41 kB / 0.5427 GB, free: 152 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003473/0.157, allocations: 287.4 kB / 0.543 GB, free: 15.86 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.832e-05/0.1571, allocations: 29.7 kB / 0.543 GB, free: 15.82 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001512/0.1572, allocations: 192.6 kB / 0.5432 GB, free: 15.63 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.887e-05/0.1573, allocations: 75.34 kB / 0.5432 GB, free: 15.56 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001013/0.1574, allocations: 53.92 kB / 0.5433 GB, free: 15.5 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001674/0.1576, allocations: 342.7 kB / 0.5436 GB, free: 15.16 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003102/0.1579, allocations: 104.3 kB / 0.5437 GB, free: 15.05 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000297/0.1582, allocations: 104.9 kB / 0.5438 GB, free: 14.95 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006411/0.1588, allocations: 242.2 kB / 0.5441 GB, free: 14.71 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.1588, allocations: 0 / 0.5441 GB, free: 14.71 MB / 414.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.001973/0.1608, allocations: 499.5 kB / 0.5445 GB, free: 14.21 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.149e-05/0.1608, allocations: 4 kB / 0.5445 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.1608, allocations: 3.938 kB / 0.5445 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001335/0.1622, allocations: 202.3 kB / 0.5447 GB, free: 14 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006561/0.1628, allocations: 83.92 kB / 0.5448 GB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005222/0.168, allocations: 4.786 MB / 0.5495 GB, free: 8.785 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002992/0.1683, allocations: 16.02 kB / 0.5495 GB, free: 8.77 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.119e-05/0.1684, allocations: 11.98 kB / 0.5495 GB, free: 8.758 MB / 414.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.000229/0.1686, allocations: 141.8 kB / 0.5496 GB, free: 8.609 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.314e-05/0.1687, allocations: 31.81 kB / 0.5497 GB, free: 8.578 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001553/0.1702, allocations: 0.4977 MB / 0.5502 GB, free: 8.062 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.803e-06/0.1702, allocations: 4 kB / 0.5502 GB, free: 8.059 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.1702, allocations: 4 kB / 0.5502 GB, free: 8.055 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.236e-06/0.1702, allocations: 3.984 kB / 0.5502 GB, free: 8.051 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001971/0.1722, allocations: 0.9153 MB / 0.5511 GB, free: 7.066 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.394e-06/0.1722, allocations: 3.984 kB / 0.5511 GB, free: 7.062 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005546/0.1728, allocations: 84 kB / 0.5512 GB, free: 6.98 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007431/0.1735, allocations: 158.4 kB / 0.5513 GB, free: 6.816 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.304e-05/0.1735, allocations: 4 kB / 0.5513 GB, free: 6.812 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00398/0.1775, allocations: 4.428 MB / 0.5556 GB, free: 2.059 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.1775, allocations: 0 / 0.5556 GB, free: 2.059 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001445/0.179, allocations: 0.5568 MB / 0.5562 GB, free: 1.477 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001087/0.1791, allocations: 112.8 kB / 0.5563 GB, free: 1.348 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.302e-05/0.1791, allocations: 12.06 kB / 0.5563 GB, free: 1.336 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002425/0.1794, allocations: 15.98 kB / 0.5563 GB, free: 1.32 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.65e-05/0.1795, allocations: 31.95 kB / 0.5563 GB, free: 1.289 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.028e-05/0.1795, allocations: 8 kB / 0.5563 GB, free: 1.281 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002321/0.1797, allocations: 213.9 kB / 0.5566 GB, free: 1.07 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1797, allocations: 0 / 0.5566 GB, free: 1.07 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005883/0.1803, allocations: 103.8 kB / 0.5567 GB, free: 0.9688 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.001771/0.1821, allocations: 1.085 MB / 0.5577 GB, free: 15.85 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002236/0.1843, allocations: 0.6375 MB / 0.5583 GB, free: 15.19 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.1843, allocations: 0 / 0.5583 GB, free: 15.19 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001005/0.1853, allocations: 441.1 kB / 0.5588 GB, free: 14.73 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004404/0.1858, allocations: 52.7 kB / 0.5588 GB, free: 14.68 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007207/0.193, allocations: 3.286 MB / 0.562 GB, free: 11.3 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004745/0.1934, allocations: 0.7922 MB / 0.5628 GB, free: 10.48 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001378/0.1936, allocations: 26.98 kB / 0.5628 GB, free: 10.46 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001816/0.1938, allocations: 111.4 kB / 0.5629 GB, free: 10.35 MB / 430.1 MB Notification: Performance of SimCode: time 6.81e-07/0.1938, allocations: 0 / 0.5629 GB, free: 10.35 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03474/0.2285, allocations: 8.115 MB / 0.5708 GB, free: 2.332 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.97/13.2, allocations: 16 kB / 0.5709 GB, free: 2.316 MB / 430.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 & /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.3338444220135] Failed to read output from testmodel.py, exit status != 0: 13.364435205003247 13.393327799 13.242064724 Calling exit ...