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.001538/0.001538, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001408/0.001408, allocations: 189.5 kB / 16.25 MB, free: 6.633 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.454/1.454, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002546/0.002546, allocations: 291.6 kB / 290.4 MB, free: 2.137 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.094/1.094, allocations: 178.6 MB / 0.507 GB, free: 4.73 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003895/0.003896, allocations: 96.75 kB / 0.6059 GB, free: 24.97 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1712/0.1751, allocations: 89.16 MB / 0.693 GB, free: 4.73 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.005771/0.181, allocations: 4.046 MB / 0.6969 GB, free: 0.6719 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002025/0.1812, allocations: 151.5 kB / 0.6971 GB, free: 0.5234 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.313e-05/0.1812, allocations: 4 kB / 0.6971 GB, free: 0.5195 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 9.465e-05/0.1813, allocations: 3.938 kB / 0.6971 GB, free: 0.5156 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 9.361e-05/0.1814, allocations: 19.91 kB / 0.6971 GB, free: 0.4961 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003274/0.1818, allocations: 71.77 kB / 0.6972 GB, free: 436 kB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 8.421e-05/0.1819, allocations: 39.78 kB / 0.6972 GB, free: 396 kB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.73e-05/0.1819, allocations: 4 kB / 0.6972 GB, free: 392 kB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.906e-05/0.182, allocations: 15.98 kB / 0.6972 GB, free: 376 kB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.263e-05/0.182, allocations: 15.97 kB / 0.6972 GB, free: 360 kB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.068e-05/0.182, allocations: 0 / 0.6972 GB, free: 360 kB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001843/0.1822, allocations: 55.81 kB / 0.6973 GB, free: 304 kB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.086e-05/0.1823, allocations: 7.938 kB / 0.6973 GB, free: 296 kB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.958e-05/0.1823, allocations: 8 kB / 0.6973 GB, free: 288 kB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001423/0.1825, allocations: 60.03 kB / 0.6974 GB, free: 228 kB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.463e-06/0.1825, allocations: 4 kB / 0.6974 GB, free: 224 kB / 494.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1825, allocations: 0 / 0.6974 GB, free: 224 kB / 494.1 MB Notification: Performance of Transformations before backend: time 4.468e-06/0.1825, allocations: 0 / 0.6974 GB, free: 224 kB / 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.0004265/0.1829, allocations: 335.5 kB / 0.6977 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.183, allocations: 8.031 kB / 0.6977 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.048e-05/0.183, allocations: 4.938 kB / 0.6977 GB, free: 15.83 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001368/0.1832, allocations: 164.4 kB / 0.6979 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.064e-05/0.1832, allocations: 34.27 kB / 0.6979 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.058e-05/0.1832, allocations: 384 / 0.6979 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001345/0.1834, allocations: 53.61 kB / 0.6979 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.103e-06/0.1834, allocations: 0 / 0.6979 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.122e-05/0.1834, allocations: 0 / 0.6979 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.596e-05/0.1834, allocations: 4 kB / 0.6979 GB, free: 15.53 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.634e-05/0.1835, allocations: 19.92 kB / 0.698 GB, free: 15.51 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004528/0.1839, allocations: 330 kB / 0.6983 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 4.842e-05/0.184, allocations: 18.58 kB / 0.6983 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.523e-05/0.184, allocations: 4.859 kB / 0.6983 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001034/0.1841, allocations: 85.17 kB / 0.6984 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.363e-05/0.1842, allocations: 38.56 kB / 0.6984 GB, free: 14.94 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=1): time 1.092e-06/0.1842, allocations: 0 / 0.6984 GB, free: 14.94 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1): time 0.0001378/0.1843, allocations: 37.62 kB / 0.6984 GB, free: 14.89 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.486e-05/0.1844, allocations: 51.41 kB / 0.6985 GB, free: 14.83 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.303e-05/0.1845, allocations: 109.7 kB / 0.6986 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.033e-05/0.1845, allocations: 29.69 kB / 0.6986 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.943e-05/0.1846, allocations: 80.14 kB / 0.6987 GB, free: 14.6 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 9.107e-06/0.1846, allocations: 12.03 kB / 0.6987 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.493e-05/0.1846, allocations: 17.72 kB / 0.6987 GB, free: 14.56 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001446/0.1848, allocations: 318.7 kB / 0.699 GB, free: 14.24 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.64e-05/0.1848, allocations: 3.984 kB / 0.699 GB, free: 14.24 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.594e-05/0.1848, allocations: 17.72 kB / 0.6991 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.046e-05/0.1849, allocations: 25.66 kB / 0.6991 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.1849, allocations: 3.938 kB / 0.6991 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.484e-05/0.185, allocations: 49.62 kB / 0.6991 GB, free: 14.12 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.449e-05/0.185, allocations: 8 kB / 0.6991 GB, free: 14.12 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.998e-06/0.185, allocations: 0 / 0.6991 GB, free: 14.12 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.158e-05/0.185, allocations: 0 / 0.6991 GB, free: 14.12 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.318e-05/0.1851, allocations: 7.984 kB / 0.6992 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.09e-06/0.1851, allocations: 0 / 0.6992 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.623e-05/0.1851, allocations: 4 kB / 0.6992 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.275e-06/0.1851, allocations: 0 / 0.6992 GB, free: 14.11 MB / 0.4981 GB 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.552e-05/0.1852, allocations: 121.8 kB / 0.6993 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.691e-05/0.1852, allocations: 3.906 kB / 0.6993 GB, free: 13.97 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001303/0.1854, allocations: 121.2 kB / 0.6994 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.063e-05/0.1854, allocations: 180.3 kB / 0.6996 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.379e-05/0.1855, allocations: 176.3 kB / 0.6997 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.638e-05/0.1856, allocations: 192.2 kB / 0.6999 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002682/0.1859, allocations: 405.2 kB / 0.7003 GB, free: 12.83 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.78e-05/0.1859, allocations: 108.9 kB / 0.7004 GB, free: 12.72 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.958e-05/0.186, allocations: 101 kB / 0.7005 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.042e-05/0.1861, allocations: 180.2 kB / 0.7007 GB, free: 12.43 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.487e-05/0.1862, allocations: 180.2 kB / 0.7008 GB, free: 12.25 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.239e-05/0.1863, allocations: 184.3 kB / 0.701 GB, free: 12.06 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.765e-05/0.1863, allocations: 180.2 kB / 0.7012 GB, free: 11.88 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001666/0.1865, allocations: 311.8 kB / 0.7015 GB, free: 11.55 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 9.081e-05/0.1866, allocations: 182 kB / 0.7017 GB, free: 11.34 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001016/0.1867, allocations: 188.3 kB / 0.7018 GB, free: 11.15 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001595/0.1869, allocations: 113.2 kB / 0.702 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.754e-05/0.187, allocations: 180.3 kB / 0.7021 GB, free: 10.85 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.816e-05/0.187, allocations: 101 kB / 0.7022 GB, free: 10.75 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 5.738e-05/0.1871, allocations: 91.2 kB / 0.7023 GB, free: 10.66 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.91e-07/0.1871, allocations: 0 / 0.7023 GB, free: 10.66 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000236/0.1873, allocations: 15.94 kB / 0.7023 GB, free: 10.64 MB / 0.4981 GB 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.0002742/0.1876, allocations: 202.4 kB / 0.7025 GB, free: 10.43 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 6.784e-05/0.1877, allocations: 16.03 kB / 0.7025 GB, free: 10.42 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1877, allocations: 0 / 0.7025 GB, free: 10.42 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.132e-06/0.1877, allocations: 0 / 0.7025 GB, free: 10.42 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004365/0.1881, allocations: 463.8 kB / 0.703 GB, free: 9.961 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002669/0.1884, allocations: 189.8 kB / 0.7032 GB, free: 9.746 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003162/0.1887, allocations: 0.6768 MB / 0.7038 GB, free: 9.043 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 4.446e-05/0.1888, allocations: 8 kB / 0.7038 GB, free: 9.035 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.591e-05/0.1888, allocations: 7.438 kB / 0.7038 GB, free: 9.027 MB / 0.4981 GB Notification: Performance of SimCode: time 2.71e-07/0.1888, allocations: 3.938 kB / 0.7038 GB, free: 9.023 MB / 0.4981 GB Notification: Performance of Templates: time 0.003083/0.1919, allocations: 0.6362 MB / 0.7045 GB, free: 8.395 MB / 0.4981 GB 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)