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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) 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: translateModel(AES.Coursework.ThermSys_component_models.Pumps_valve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Pumps_valve") translateModel(AES.Coursework.ThermSys_component_models.Pumps_valve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Pumps_valve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001533/0.001533, allocations: 107.7 kB / 16.37 MB, free: 6.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001617/0.001617, allocations: 193.1 kB / 17.31 MB, free: 5.824 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.342/1.342, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09243/0.09243, allocations: 22.32 MB / 313.5 MB, free: 8.887 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001406/0.001406, allocations: 71.27 kB / 382.2 MB, free: 41.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1091, allocations: 54.97 MB / 437.2 MB, free: 12.25 MB / 318.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.03422/0.1434, allocations: 22.01 MB / 459.2 MB, free: 6.363 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001312/0.1447, allocations: 382.9 kB / 459.6 MB, free: 5.988 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001396/0.1449, allocations: 0 / 459.6 MB, free: 5.988 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001271/0.145, allocations: 47.5 kB / 459.6 MB, free: 5.941 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002736/0.1453, allocations: 99.11 kB / 459.7 MB, free: 5.844 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003906/0.1457, allocations: 103.8 kB / 459.8 MB, free: 5.742 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000432/0.1461, allocations: 422 kB / 460.3 MB, free: 5.332 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003551/0.1465, allocations: 251.6 kB / 460.5 MB, free: 5.09 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001661/0.1467, allocations: 159.4 kB / 460.7 MB, free: 4.934 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002362/0.1469, allocations: 211.1 kB / 460.9 MB, free: 4.727 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.754e-05/0.147, allocations: 43.98 kB / 460.9 MB, free: 4.684 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001451/0.1471, allocations: 67.97 kB / 461 MB, free: 4.617 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.333e-05/0.1472, allocations: 83.62 kB / 461.1 MB, free: 4.535 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001811/0.1474, allocations: 199 kB / 461.2 MB, free: 4.34 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004379/0.1478, allocations: 438.5 kB / 461.7 MB, free: 3.91 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.1479, allocations: 3.938 kB / 461.7 MB, free: 3.906 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.1479, allocations: 4 kB / 461.7 MB, free: 3.902 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.554e-06/0.1479, allocations: 0 / 461.7 MB, free: 3.902 MB / 334.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.001252/0.1491, allocations: 0.6779 MB / 462.4 MB, free: 3.172 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.915e-05/0.1492, allocations: 8.031 kB / 462.4 MB, free: 3.164 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.533e-05/0.1493, allocations: 40.47 kB / 462.4 MB, free: 3.125 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004671/0.1498, allocations: 315.9 kB / 462.7 MB, free: 2.777 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.434e-05/0.1498, allocations: 16.94 kB / 462.7 MB, free: 2.762 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.7e-05/0.1498, allocations: 28.38 kB / 462.8 MB, free: 2.734 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005901/0.1504, allocations: 285.3 kB / 463 MB, free: 2.449 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.208e-05/0.1505, allocations: 192 / 463 MB, free: 2.449 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.32e-05/0.1505, allocations: 15.94 kB / 463.1 MB, free: 2.434 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.388e-06/0.1505, allocations: 4 kB / 463.1 MB, free: 2.43 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005977/0.1511, allocations: 254.1 kB / 463.3 MB, free: 2.18 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001443/0.1526, allocations: 0.8069 MB / 464.1 MB, free: 1.32 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005218/0.1531, allocations: 234.7 kB / 464.3 MB, free: 1.082 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003385/0.1535, allocations: 144.8 kB / 464.5 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.991e-05/0.1535, allocations: 7.938 kB / 464.5 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.82e-05/0.1535, allocations: 38.48 kB / 464.5 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001997/0.1537, allocations: 43.81 kB / 464.6 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.402e-06/0.1537, allocations: 0 / 464.6 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.003605/0.1574, allocations: 0.969 MB / 465.5 MB, free: 15.8 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.654e-05/0.1574, allocations: 59.34 kB / 465.6 MB, free: 15.73 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003447/0.1578, allocations: 287.4 kB / 465.9 MB, free: 15.43 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.476e-05/0.1578, allocations: 25.7 kB / 465.9 MB, free: 15.4 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001331/0.158, allocations: 188.4 kB / 466.1 MB, free: 15.21 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.999e-05/0.158, allocations: 74.91 kB / 466.2 MB, free: 15.14 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.656e-05/0.1581, allocations: 49.92 kB / 466.2 MB, free: 15.09 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.1583, allocations: 346.8 kB / 466.6 MB, free: 14.74 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002607/0.1586, allocations: 100.4 kB / 466.6 MB, free: 14.64 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002435/0.1588, allocations: 100.9 kB / 466.7 MB, free: 14.54 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005008/0.1593, allocations: 235.9 kB / 467 MB, free: 14.31 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.468e-06/0.1593, allocations: 3.938 kB / 467 MB, free: 14.31 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.001718/0.1611, allocations: 0.4998 MB / 467.5 MB, free: 13.79 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.25e-05/0.1611, allocations: 4 kB / 467.5 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.1611, allocations: 0 / 467.5 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001207/0.1623, allocations: 206.3 kB / 467.7 MB, free: 13.58 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000585/0.1629, allocations: 91.84 kB / 467.8 MB, free: 13.49 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004175/0.1671, allocations: 4.759 MB / 472.5 MB, free: 8.391 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002599/0.1674, allocations: 16.02 kB / 472.6 MB, free: 8.375 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.544e-05/0.1674, allocations: 11.98 kB / 472.6 MB, free: 8.363 MB / 350.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.0001975/0.1676, allocations: 153.7 kB / 472.7 MB, free: 8.203 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.379e-05/0.1677, allocations: 27.62 kB / 472.7 MB, free: 8.176 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00137/0.1691, allocations: 0.5063 MB / 473.2 MB, free: 7.648 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.1691, allocations: 7.938 kB / 473.3 MB, free: 7.641 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.926e-06/0.1691, allocations: 0 / 473.3 MB, free: 7.641 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.1691, allocations: 0 / 473.3 MB, free: 7.641 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001717/0.1708, allocations: 0.9388 MB / 474.2 MB, free: 6.633 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.1708, allocations: 0 / 474.2 MB, free: 6.633 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005006/0.1714, allocations: 87.98 kB / 474.3 MB, free: 6.547 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006555/0.172, allocations: 158.4 kB / 474.4 MB, free: 6.383 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.258e-05/0.1721, allocations: 4 kB / 474.4 MB, free: 6.379 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003193/0.1753, allocations: 4.423 MB / 478.9 MB, free: 1.633 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.1753, allocations: 0 / 478.9 MB, free: 1.633 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001227/0.1765, allocations: 0.5571 MB / 479.4 MB, free: 1.047 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.818e-05/0.1766, allocations: 100.7 kB / 479.5 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.475e-05/0.1767, allocations: 12.06 kB / 479.5 MB, free: 0.918 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002332/0.1769, allocations: 23.91 kB / 479.6 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.114e-05/0.177, allocations: 27.91 kB / 479.6 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.134e-05/0.177, allocations: 12 kB / 479.6 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001838/0.1772, allocations: 213.9 kB / 479.8 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1772, allocations: 0 / 479.8 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000553/0.1778, allocations: 99.84 kB / 479.9 MB, free: 0.5508 MB / 350.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.000156/0.178, allocations: 99.25 kB / 480 MB, free: 456 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001975/0.1799, allocations: 0.657 MB / 480.6 MB, free: 15.76 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.18, allocations: 0 / 480.6 MB, free: 15.76 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008599/0.1808, allocations: 457.1 kB / 481.1 MB, free: 15.29 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003915/0.1812, allocations: 48.64 kB / 481.1 MB, free: 15.24 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001051/0.1823, allocations: 0.6222 MB / 481.8 MB, free: 14.6 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003267/0.1826, allocations: 0.7923 MB / 482.6 MB, free: 13.78 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001118/0.1827, allocations: 34.91 kB / 482.6 MB, free: 13.75 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.302e-05/0.1828, allocations: 23.44 kB / 482.6 MB, free: 13.72 MB / 366.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1828, allocations: 7.938 kB / 482.6 MB, free: 13.71 MB / 366.1 MB Notification: Performance of Templates: time 0.009427/0.1923, allocations: 5.06 MB / 487.7 MB, free: 8.68 MB / 366.1 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.Pumps_valve.makefile (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 & ./AES_AES.Coursework.ThermSys_component_models.Pumps_valve -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Pumps_valve.pipe 2>&1)