Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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(BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion") translateModel(BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001081/0.001082, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001112/0.001112, allocations: 193.4 kB / 16.14 MB, free: 6.707 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.305/1.305, allocations: 222.9 MB / 239.8 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.003276/0.003275, allocations: 282.8 kB / 290.2 MB, free: 2.203 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9641/0.9641, allocations: 169.2 MB / 0.4977 GB, free: 14.14 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001651/0.001651, allocations: 95.92 kB / 0.5945 GB, free: 28.33 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1822/0.1839, allocations: 86.98 MB / 0.6794 GB, free: 1.188 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.005719/0.1897, allocations: 4.05 MB / 0.6834 GB, free: 13.12 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001978/0.1899, allocations: 155.5 kB / 0.6835 GB, free: 12.97 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.665e-05/0.1899, allocations: 0 / 0.6835 GB, free: 12.97 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001059/0.19, allocations: 4 kB / 0.6835 GB, free: 12.97 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 7.854e-05/0.1901, allocations: 11.91 kB / 0.6835 GB, free: 12.96 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003082/0.1905, allocations: 82.5 kB / 0.6836 GB, free: 12.88 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 9.615e-05/0.1906, allocations: 55.89 kB / 0.6837 GB, free: 12.82 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.808e-05/0.1906, allocations: 0 / 0.6837 GB, free: 12.82 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.646e-05/0.1907, allocations: 19.91 kB / 0.6837 GB, free: 12.8 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.942e-05/0.1907, allocations: 15.94 kB / 0.6837 GB, free: 12.79 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.3e-05/0.1908, allocations: 0 / 0.6837 GB, free: 12.79 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002142/0.191, allocations: 79.77 kB / 0.6838 GB, free: 12.71 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.322e-05/0.191, allocations: 4 kB / 0.6838 GB, free: 12.71 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.086e-05/0.1911, allocations: 15.92 kB / 0.6838 GB, free: 12.69 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001264/0.1912, allocations: 48.17 kB / 0.6838 GB, free: 12.64 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.1912, allocations: 0 / 0.6838 GB, free: 12.64 MB / 494.1 MB Notification: Performance of FrontEnd: time 7.01e-07/0.1912, allocations: 0 / 0.6838 GB, free: 12.64 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.178e-06/0.1912, allocations: 0 / 0.6838 GB, free: 12.64 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004068/0.1916, allocations: 329.5 kB / 0.6842 GB, free: 12.28 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.106e-05/0.1917, allocations: 12.03 kB / 0.6842 GB, free: 12.27 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.518e-05/0.1917, allocations: 4.844 kB / 0.6842 GB, free: 12.26 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001179/0.1919, allocations: 168.3 kB / 0.6843 GB, free: 12.06 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.839e-05/0.1919, allocations: 34.27 kB / 0.6844 GB, free: 12.02 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.634e-06/0.1919, allocations: 384 / 0.6844 GB, free: 12.02 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001297/0.1921, allocations: 45.62 kB / 0.6844 GB, free: 11.97 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.925e-06/0.1921, allocations: 0 / 0.6844 GB, free: 11.97 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.179e-05/0.1921, allocations: 0 / 0.6844 GB, free: 11.97 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.086e-05/0.1921, allocations: 7.938 kB / 0.6844 GB, free: 11.96 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.911e-05/0.1922, allocations: 15.98 kB / 0.6844 GB, free: 11.95 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004537/0.1926, allocations: 345.9 kB / 0.6848 GB, free: 11.54 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.986e-05/0.1927, allocations: 18.52 kB / 0.6848 GB, free: 11.51 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.544e-05/0.1927, allocations: 8.922 kB / 0.6848 GB, free: 11.5 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.823e-05/0.1928, allocations: 81.11 kB / 0.6849 GB, free: 11.4 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.418e-05/0.1928, allocations: 38.48 kB / 0.6849 GB, free: 11.36 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 9.82e-07/0.1929, allocations: 0 / 0.6849 GB, free: 11.36 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001454/0.193, allocations: 37.73 kB / 0.6849 GB, free: 11.31 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.507e-05/0.193, allocations: 59.44 kB / 0.685 GB, free: 11.24 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.565e-05/0.1931, allocations: 97.84 kB / 0.6851 GB, free: 11.14 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.276e-05/0.1932, allocations: 29.7 kB / 0.6851 GB, free: 11.1 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.444e-05/0.1932, allocations: 92.05 kB / 0.6852 GB, free: 11.01 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.322e-06/0.1932, allocations: 3.906 kB / 0.6852 GB, free: 11 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.796e-05/0.1933, allocations: 13.72 kB / 0.6852 GB, free: 10.98 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001255/0.1934, allocations: 322.8 kB / 0.6855 GB, free: 10.66 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.654e-05/0.1934, allocations: 8 kB / 0.6855 GB, free: 10.65 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.365e-05/0.1934, allocations: 13.72 kB / 0.6856 GB, free: 10.63 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.87e-05/0.1935, allocations: 25.7 kB / 0.6856 GB, free: 10.6 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.1935, allocations: 3.938 kB / 0.6856 GB, free: 10.6 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.231e-05/0.1936, allocations: 45.7 kB / 0.6856 GB, free: 10.55 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.251e-05/0.1936, allocations: 4 kB / 0.6856 GB, free: 10.54 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.1936, allocations: 4.062 kB / 0.6856 GB, free: 10.54 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.443e-05/0.1936, allocations: 4.281 kB / 0.6856 GB, free: 10.54 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.432e-05/0.1937, allocations: 7.984 kB / 0.6856 GB, free: 10.53 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.462e-06/0.1937, allocations: 0 / 0.6856 GB, free: 10.53 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.63e-05/0.1937, allocations: 3.938 kB / 0.6856 GB, free: 10.52 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.068e-05/0.1937, allocations: 4 kB / 0.6857 GB, free: 10.52 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.141e-05/0.1938, allocations: 111.1 kB / 0.6858 GB, free: 10.4 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.79e-05/0.1938, allocations: 7.984 kB / 0.6858 GB, free: 10.39 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000107/0.1939, allocations: 121 kB / 0.6859 GB, free: 10.27 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.518e-05/0.194, allocations: 184.2 kB / 0.6861 GB, free: 10.08 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.053e-05/0.1941, allocations: 176.3 kB / 0.6862 GB, free: 9.902 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.03e-05/0.1941, allocations: 176.3 kB / 0.6864 GB, free: 9.723 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002137/0.1944, allocations: 413.1 kB / 0.6868 GB, free: 9.262 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.267e-05/0.1944, allocations: 105 kB / 0.6869 GB, free: 9.152 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.096e-05/0.1944, allocations: 112.8 kB / 0.687 GB, free: 9.035 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.321e-05/0.1945, allocations: 180.3 kB / 0.6872 GB, free: 8.852 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.65e-05/0.1946, allocations: 176.3 kB / 0.6873 GB, free: 8.672 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.586e-05/0.1946, allocations: 184.2 kB / 0.6875 GB, free: 8.484 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.862e-05/0.1947, allocations: 176.3 kB / 0.6877 GB, free: 8.305 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001263/0.1948, allocations: 319.6 kB / 0.688 GB, free: 7.969 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.897e-05/0.1949, allocations: 182.3 kB / 0.6882 GB, free: 7.766 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.465e-05/0.195, allocations: 184.2 kB / 0.6883 GB, free: 7.578 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001408/0.1951, allocations: 113 kB / 0.6884 GB, free: 7.461 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.838e-05/0.1952, allocations: 184.2 kB / 0.6886 GB, free: 7.273 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.846e-05/0.1953, allocations: 101 kB / 0.6887 GB, free: 7.168 MB / 494.1 MB Notification: Performance of sorting global known variables: time 5.068e-05/0.1953, allocations: 91.27 kB / 0.6888 GB, free: 7.078 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1953, allocations: 3.938 kB / 0.6888 GB, free: 7.074 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.000244/0.1956, allocations: 19.94 kB / 0.6888 GB, free: 7.055 MB / 494.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 (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002691/0.1958, allocations: 198.4 kB / 0.689 GB, free: 6.852 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 6.935e-05/0.1959, allocations: 15.94 kB / 0.689 GB, free: 6.836 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.1959, allocations: 0 / 0.689 GB, free: 6.836 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.372e-06/0.1959, allocations: 0 / 0.689 GB, free: 6.836 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003998/0.1963, allocations: 0.5206 MB / 0.6895 GB, free: 6.312 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002617/0.1966, allocations: 183.8 kB / 0.6897 GB, free: 6.105 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002302/0.1968, allocations: 0.6809 MB / 0.6904 GB, free: 5.398 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 4.242e-05/0.1969, allocations: 7.938 kB / 0.6904 GB, free: 5.391 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.493e-05/0.1969, allocations: 11.44 kB / 0.6904 GB, free: 5.383 MB / 494.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1969, allocations: 0 / 0.6904 GB, free: 5.383 MB / 494.1 MB Notification: Performance of Templates: time 0.002533/0.1995, allocations: 0.6126 MB / 0.691 GB, free: 4.773 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.makefile (rm -f BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.sim & ./BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1)