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.001581/0.001581, allocations: 103.6 kB / 16.35 MB, free: 6.289 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.001727/0.001727, allocations: 193.4 kB / 17.3 MB, free: 5.859 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.383/1.383, 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.09266/0.09266, allocations: 22.32 MB / 313.5 MB, free: 8.922 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002407/0.002407, allocations: 59.5 kB / 382.2 MB, free: 40.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1206/0.1231, allocations: 54.97 MB / 437.2 MB, free: 12.29 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.03433/0.1575, allocations: 22.01 MB / 459.2 MB, free: 6.418 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001249/0.1587, allocations: 390.8 kB / 459.6 MB, free: 6.035 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000254/0.159, allocations: 4 kB / 459.6 MB, free: 6.031 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001432/0.1591, allocations: 47.5 kB / 459.6 MB, free: 5.984 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003271/0.1595, allocations: 99.05 kB / 459.7 MB, free: 5.887 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004272/0.1599, allocations: 107.8 kB / 459.8 MB, free: 5.781 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004775/0.1604, allocations: 410.3 kB / 460.2 MB, free: 5.379 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003888/0.1608, allocations: 251.5 kB / 460.5 MB, free: 5.137 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002085/0.161, allocations: 167.4 kB / 460.7 MB, free: 4.973 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00028/0.1613, allocations: 207.2 kB / 460.9 MB, free: 4.77 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.09e-05/0.1614, allocations: 36 kB / 460.9 MB, free: 4.734 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001549/0.1616, allocations: 75.95 kB / 461 MB, free: 4.66 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.68e-05/0.1617, allocations: 87.69 kB / 461 MB, free: 4.574 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001877/0.1618, allocations: 187 kB / 461.2 MB, free: 4.391 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004453/0.1623, allocations: 446.4 kB / 461.7 MB, free: 3.953 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.1623, allocations: 0 / 461.7 MB, free: 3.953 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.1623, allocations: 4 kB / 461.7 MB, free: 3.949 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.497e-05/0.1624, allocations: 0 / 461.7 MB, free: 3.949 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.001266/0.1636, allocations: 0.6857 MB / 462.4 MB, free: 3.211 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.675e-05/0.1637, allocations: 8.031 kB / 462.4 MB, free: 3.203 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.599e-05/0.1638, allocations: 40.47 kB / 462.4 MB, free: 3.164 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004062/0.1642, allocations: 296 kB / 462.7 MB, free: 2.836 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.867e-05/0.1642, allocations: 28.86 kB / 462.7 MB, free: 2.809 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.48e-05/0.1643, allocations: 24.38 kB / 462.7 MB, free: 2.785 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005792/0.1648, allocations: 281.3 kB / 463 MB, free: 2.504 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.072e-05/0.1649, allocations: 4.188 kB / 463 MB, free: 2.5 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.621e-05/0.1649, allocations: 15.94 kB / 463 MB, free: 2.484 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.107e-06/0.1649, allocations: 8 kB / 463 MB, free: 2.477 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006039/0.1655, allocations: 246.1 kB / 463.3 MB, free: 2.234 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001613/0.1672, allocations: 0.8186 MB / 464.1 MB, free: 1.363 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005565/0.1677, allocations: 239.4 kB / 464.3 MB, free: 1.121 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003435/0.1681, allocations: 144.8 kB / 464.5 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.645e-05/0.1681, allocations: 0 / 464.5 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.376e-05/0.1682, allocations: 42.5 kB / 464.5 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002172/0.1684, allocations: 43.81 kB / 464.6 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.563e-06/0.1684, allocations: 0 / 464.6 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.003742/0.1721, allocations: 0.9693 MB / 465.5 MB, free: 15.84 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.585e-05/0.1722, allocations: 55.41 kB / 465.6 MB, free: 15.78 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002906/0.1725, allocations: 283.4 kB / 465.9 MB, free: 15.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.412e-05/0.1725, allocations: 33.7 kB / 465.9 MB, free: 15.45 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001308/0.1727, allocations: 192.4 kB / 466.1 MB, free: 15.25 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.712e-05/0.1727, allocations: 70.92 kB / 466.2 MB, free: 15.18 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.726e-05/0.1728, allocations: 53.91 kB / 466.2 MB, free: 15.12 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001384/0.173, allocations: 334.8 kB / 466.5 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002699/0.1733, allocations: 100.4 kB / 466.6 MB, free: 14.69 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002638/0.1735, allocations: 104.9 kB / 466.7 MB, free: 14.59 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005645/0.1741, allocations: 239.9 kB / 467 MB, free: 14.36 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.699e-06/0.1741, allocations: 3.938 kB / 467 MB, free: 14.35 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.001758/0.1759, allocations: 0.492 MB / 467.5 MB, free: 13.84 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.123e-05/0.1759, allocations: 4 kB / 467.5 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.1759, allocations: 4 kB / 467.5 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001238/0.1772, allocations: 202.3 kB / 467.7 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006281/0.1778, allocations: 87.86 kB / 467.8 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004533/0.1824, allocations: 4.774 MB / 472.5 MB, free: 8.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002403/0.1826, allocations: 16.02 kB / 472.5 MB, free: 8.414 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.055e-05/0.1827, allocations: 11.98 kB / 472.6 MB, free: 8.402 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.0001786/0.1829, allocations: 149.8 kB / 472.7 MB, free: 8.246 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.854e-05/0.183, allocations: 31.56 kB / 472.7 MB, free: 8.215 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001402/0.1844, allocations: 0.5024 MB / 473.2 MB, free: 7.691 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.531e-06/0.1844, allocations: 4 kB / 473.2 MB, free: 7.688 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.928e-06/0.1844, allocations: 0 / 473.2 MB, free: 7.688 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.071e-06/0.1844, allocations: 11.98 kB / 473.3 MB, free: 7.676 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001863/0.1863, allocations: 0.9309 MB / 474.2 MB, free: 6.676 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.1863, allocations: 0 / 474.2 MB, free: 6.676 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005191/0.1868, allocations: 91.88 kB / 474.3 MB, free: 6.586 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006688/0.1875, allocations: 150.4 kB / 474.4 MB, free: 6.43 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.524e-05/0.1875, allocations: 8 kB / 474.4 MB, free: 6.422 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003563/0.1911, allocations: 4.423 MB / 478.9 MB, free: 1.676 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.1911, allocations: 0 / 478.9 MB, free: 1.676 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001269/0.1924, allocations: 0.5531 MB / 479.4 MB, free: 1.094 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.605e-05/0.1925, allocations: 112.7 kB / 479.5 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.328e-05/0.1926, allocations: 8 kB / 479.5 MB, free: 0.957 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002282/0.1928, allocations: 19.98 kB / 479.5 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.875e-05/0.1929, allocations: 27.95 kB / 479.6 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.285e-05/0.1929, allocations: 12 kB / 479.6 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001893/0.1931, allocations: 202 kB / 479.8 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1931, allocations: 0 / 479.8 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005649/0.1937, allocations: 107.8 kB / 479.9 MB, free: 0.5977 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.0001665/0.1939, allocations: 111.2 kB / 480 MB, free: 492 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002003/0.1959, allocations: 0.6454 MB / 480.6 MB, free: 15.81 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.1959, allocations: 0 / 480.6 MB, free: 15.81 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008901/0.1968, allocations: 457.1 kB / 481.1 MB, free: 15.34 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003995/0.1972, allocations: 56.58 kB / 481.1 MB, free: 15.28 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001063/0.1983, allocations: 0.6147 MB / 481.8 MB, free: 14.64 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003647/0.1987, allocations: 0.7923 MB / 482.5 MB, free: 13.82 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001083/0.1988, allocations: 35.05 kB / 482.6 MB, free: 13.79 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.113e-05/0.1988, allocations: 27.44 kB / 482.6 MB, free: 13.76 MB / 366.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1989, allocations: 0 / 482.6 MB, free: 13.76 MB / 366.1 MB Notification: Performance of Templates: time 0.01082/0.2097, allocations: 5.062 MB / 487.7 MB, free: 8.727 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 gbode -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Pumps_valve.pipe 2>&1)