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.001273/0.001273, allocations: 110.8 kB / 16.46 MB, free: 6.035 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.001226/0.001226, allocations: 192.5 kB / 19.41 MB, free: 3.539 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.355/1.355, allocations: 225.6 MB / 247.8 MB, free: 13.93 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.09713/0.09713, allocations: 22.69 MB / 325.4 MB, free: 3.531 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.002389/0.002389, allocations: 63.89 kB / 457.2 MB, free: 1.77 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1234/0.1258, allocations: 58.02 MB / 0.5031 GB, free: 7.645 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.4122/0.538, allocations: 23.21 MB / 0.5258 GB, free: 6.211 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001172/0.5392, allocations: 394.1 kB / 0.5262 GB, free: 6.145 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000131/0.5393, allocations: 2.812 kB / 0.5262 GB, free: 6.145 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 9.674e-05/0.5394, allocations: 47.64 kB / 0.5262 GB, free: 6.117 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002446/0.5397, allocations: 107.2 kB / 0.5263 GB, free: 6.066 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003476/0.54, allocations: 105.6 kB / 0.5264 GB, free: 6.059 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003891/0.5404, allocations: 413.2 kB / 0.5268 GB, free: 5.973 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003336/0.5408, allocations: 219.6 kB / 0.527 GB, free: 5.957 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001919/0.541, allocations: 171.4 kB / 0.5272 GB, free: 5.918 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003161/0.5413, allocations: 213.3 kB / 0.5274 GB, free: 5.879 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.174e-05/0.5413, allocations: 36.53 kB / 0.5274 GB, free: 5.879 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001485/0.5415, allocations: 68.58 kB / 0.5275 GB, free: 5.879 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.809e-05/0.5416, allocations: 89.73 kB / 0.5276 GB, free: 5.863 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001658/0.5417, allocations: 190.8 kB / 0.5277 GB, free: 5.809 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005555/0.5423, allocations: 456 kB / 0.5282 GB, free: 5.727 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.5423, allocations: 1.188 kB / 0.5282 GB, free: 5.727 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.5423, allocations: 0 / 0.5282 GB, free: 5.727 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.326e-06/0.5423, allocations: 4 kB / 0.5282 GB, free: 5.723 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.001184/0.5435, allocations: 0.675 MB / 0.5288 GB, free: 5.23 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.678e-05/0.5435, allocations: 8.969 kB / 0.5288 GB, free: 5.23 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.655e-05/0.5436, allocations: 63.33 kB / 0.5289 GB, free: 5.191 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.3e-05/0.5437, allocations: 43.94 kB / 0.5289 GB, free: 5.168 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003353/0.544, allocations: 306.3 kB / 0.5292 GB, free: 4.926 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.275e-05/0.544, allocations: 21.19 kB / 0.5293 GB, free: 4.926 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.664e-05/0.5441, allocations: 24.31 kB / 0.5293 GB, free: 4.926 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005486/0.5446, allocations: 287.9 kB / 0.5296 GB, free: 4.887 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.315e-05/0.5446, allocations: 7.875 kB / 0.5296 GB, free: 4.879 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.874e-05/0.5446, allocations: 10.62 kB / 0.5296 GB, free: 4.879 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.215e-06/0.5447, allocations: 9.625 kB / 0.5296 GB, free: 4.875 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006068/0.5453, allocations: 258.8 kB / 0.5298 GB, free: 4.875 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001491/0.5468, allocations: 0.8145 MB / 0.5306 GB, free: 4.535 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005359/0.5473, allocations: 219.6 kB / 0.5308 GB, free: 4.508 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003304/0.5476, allocations: 139.8 kB / 0.531 GB, free: 4.492 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.477e-05/0.5477, allocations: 8.094 kB / 0.531 GB, free: 4.488 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.211e-05/0.5477, allocations: 35.97 kB / 0.531 GB, free: 4.449 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003004/0.548, allocations: 65.17 kB / 0.5311 GB, free: 4.434 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 1.573e-06/0.548, allocations: 1.375 kB / 0.5311 GB, free: 4.434 MB / 382.1 MB Notification: Performance of matching and sorting (n=23): time 0.003422/0.5514, allocations: 0.9665 MB / 0.532 GB, free: 4.023 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.418e-05/0.5514, allocations: 55.47 kB / 0.5321 GB, free: 3.961 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002839/0.5517, allocations: 282.7 kB / 0.5323 GB, free: 3.805 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.214e-05/0.5517, allocations: 32.02 kB / 0.5324 GB, free: 3.77 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.919e-05/0.5518, allocations: 185.9 kB / 0.5326 GB, free: 3.613 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.726e-05/0.5519, allocations: 84.47 kB / 0.5326 GB, free: 3.547 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.983e-05/0.552, allocations: 49.38 kB / 0.5327 GB, free: 3.52 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.936e-05/0.552, allocations: 338.3 kB / 0.533 GB, free: 3.195 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002592/0.5523, allocations: 106.7 kB / 0.5331 GB, free: 3.16 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002448/0.5525, allocations: 104 kB / 0.5332 GB, free: 3.133 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004994/0.553, allocations: 235.4 kB / 0.5334 GB, free: 3.039 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.553, allocations: 0 / 0.5334 GB, free: 3.039 MB / 382.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.001685/0.5547, allocations: 0.4954 MB / 0.5339 GB, free: 2.844 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.176e-05/0.5547, allocations: 6.797 kB / 0.5339 GB, free: 2.844 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.672e-06/0.5547, allocations: 0 / 0.5339 GB, free: 2.844 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001166/0.5559, allocations: 204.2 kB / 0.5341 GB, free: 2.789 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005708/0.5565, allocations: 86.47 kB / 0.5342 GB, free: 2.785 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003975/0.5604, allocations: 4.762 MB / 0.5388 GB, free: 14.29 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002965/0.5607, allocations: 21.19 kB / 0.5389 GB, free: 14.28 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.724e-05/0.5608, allocations: 12.67 kB / 0.5389 GB, free: 14.27 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.0002165/0.561, allocations: 142.6 kB / 0.539 GB, free: 14.14 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.466e-05/0.5611, allocations: 33.38 kB / 0.539 GB, free: 14.12 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001467/0.5625, allocations: 0.5093 MB / 0.5395 GB, free: 13.9 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.53e-06/0.5625, allocations: 4.469 kB / 0.5395 GB, free: 13.9 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.5625, allocations: 1.594 kB / 0.5395 GB, free: 13.9 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.773e-06/0.5625, allocations: 2.203 kB / 0.5395 GB, free: 13.9 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001872/0.5644, allocations: 0.9328 MB / 0.5405 GB, free: 13.35 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.008e-06/0.5644, allocations: 4.594 kB / 0.5405 GB, free: 13.35 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004798/0.5649, allocations: 87.78 kB / 0.5405 GB, free: 13.34 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006491/0.5655, allocations: 148.3 kB / 0.5407 GB, free: 13.3 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.184e-05/0.5656, allocations: 10.23 kB / 0.5407 GB, free: 13.29 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003723/0.5693, allocations: 4.431 MB / 0.545 GB, free: 8.945 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.5693, allocations: 0 / 0.545 GB, free: 8.945 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001276/0.5706, allocations: 0.5594 MB / 0.5456 GB, free: 8.641 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001309/0.5707, allocations: 110.2 kB / 0.5457 GB, free: 8.523 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.061e-05/0.5707, allocations: 8.406 kB / 0.5457 GB, free: 8.52 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002261/0.571, allocations: 15.73 kB / 0.5457 GB, free: 8.516 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.204e-05/0.571, allocations: 33.5 kB / 0.5457 GB, free: 8.504 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.694e-05/0.5711, allocations: 7.281 kB / 0.5457 GB, free: 8.504 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002022/0.5713, allocations: 212.4 kB / 0.5459 GB, free: 8.387 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5713, allocations: 0 / 0.5459 GB, free: 8.387 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005723/0.5718, allocations: 95.05 kB / 0.546 GB, free: 8.371 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.001465/0.5733, allocations: 1.087 MB / 0.5471 GB, free: 7.539 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00218/0.5755, allocations: 0.6359 MB / 0.5477 GB, free: 7.219 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.5755, allocations: 0 / 0.5477 GB, free: 7.219 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008525/0.5763, allocations: 442.7 kB / 0.5481 GB, free: 6.938 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003911/0.5767, allocations: 59.48 kB / 0.5482 GB, free: 6.906 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006195/0.5829, allocations: 3.268 MB / 0.5514 GB, free: 4.965 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004573/0.5834, allocations: 0.7964 MB / 0.5522 GB, free: 4.254 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001282/0.5835, allocations: 31.61 kB / 0.5522 GB, free: 4.242 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001507/0.5837, allocations: 112.1 kB / 0.5523 GB, free: 4.16 MB / 398.1 MB Notification: Performance of SimCode: time 6.41e-07/0.5837, allocations: 0 / 0.5523 GB, free: 4.16 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03975/0.6234, allocations: 8.086 MB / 0.5602 GB, free: 14.15 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.9/12.52, allocations: 8.641 kB / 0.5602 GB, free: 14.14 MB / 414.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 sys.exit(0), Time elapsed: 15.026787160895765] Failed to read output from testmodel.py, exit status != 0: 12.620206356979907 12.646713599 12.099494072 Calling exit ...