Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.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.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion") translateModel(BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001052/0.001052, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001062/0.001062, allocations: 195.9 kB / 16.14 MB, free: 6.664 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.322/1.322, allocations: 222.9 MB / 239.8 MB, free: 4.578 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002067/0.002067, allocations: 289.5 kB / 290.2 MB, free: 2.18 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.011/1.011, allocations: 169.2 MB / 0.4977 GB, free: 14.16 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001751/0.001751, allocations: 94.44 kB / 0.5945 GB, free: 28.18 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1743/0.1761, allocations: 86.99 MB / 0.6794 GB, free: 1.148 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion): time 0.005239/0.1814, allocations: 3.333 MB / 0.6827 GB, free: 13.81 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.000113/0.1815, allocations: 55.8 kB / 0.6827 GB, free: 13.76 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.184e-05/0.1816, allocations: 0.7188 kB / 0.6827 GB, free: 13.76 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001054/0.1817, allocations: 7.984 kB / 0.6828 GB, free: 13.75 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 8.091e-05/0.1818, allocations: 8.812 kB / 0.6828 GB, free: 13.74 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005832/0.1824, allocations: 165.4 kB / 0.6829 GB, free: 13.58 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 9.759e-05/0.1825, allocations: 68.47 kB / 0.683 GB, free: 13.52 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.607e-05/0.1825, allocations: 4 kB / 0.683 GB, free: 13.51 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.987e-05/0.1826, allocations: 15.97 kB / 0.683 GB, free: 13.5 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.668e-05/0.1827, allocations: 11.94 kB / 0.683 GB, free: 13.48 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.335e-05/0.1827, allocations: 0 / 0.683 GB, free: 13.48 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003711/0.1831, allocations: 171.5 kB / 0.6832 GB, free: 13.32 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.322e-05/0.1831, allocations: 7.984 kB / 0.6832 GB, free: 13.31 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.837e-05/0.1831, allocations: 8 kB / 0.6832 GB, free: 13.3 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002876/0.1834, allocations: 139.9 kB / 0.6833 GB, free: 13.16 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.1834, allocations: 0 / 0.6833 GB, free: 13.16 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.1835, allocations: 0 / 0.6833 GB, free: 13.16 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.426e-06/0.1835, allocations: 4 kB / 0.6833 GB, free: 13.16 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.000428/0.1839, allocations: 347.5 kB / 0.6837 GB, free: 12.77 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.606e-05/0.1839, allocations: 12.03 kB / 0.6837 GB, free: 12.76 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.023e-05/0.184, allocations: 0.9375 kB / 0.6837 GB, free: 12.76 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000111/0.1841, allocations: 164.3 kB / 0.6838 GB, free: 12.56 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.517e-05/0.1842, allocations: 34.27 kB / 0.6839 GB, free: 12.52 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.009e-05/0.1842, allocations: 384 / 0.6839 GB, free: 12.52 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001355/0.1843, allocations: 49.59 kB / 0.6839 GB, free: 12.47 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.394e-06/0.1843, allocations: 7.938 kB / 0.6839 GB, free: 12.46 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.196e-05/0.1844, allocations: 3.984 kB / 0.6839 GB, free: 12.46 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.791e-05/0.1844, allocations: 4 kB / 0.6839 GB, free: 12.45 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.595e-05/0.1844, allocations: 19.92 kB / 0.6839 GB, free: 12.43 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006925/0.1851, allocations: 0.5755 MB / 0.6845 GB, free: 11.73 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.74e-05/0.1852, allocations: 22.58 kB / 0.6845 GB, free: 11.7 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.534e-05/0.1852, allocations: 4.859 kB / 0.6845 GB, free: 11.7 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00024/0.1855, allocations: 344.5 kB / 0.6849 GB, free: 11.29 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.436e-05/0.1855, allocations: 30.56 kB / 0.6849 GB, free: 11.25 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 1.072e-06/0.1855, allocations: 0 / 0.6849 GB, free: 11.25 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001429/0.1856, allocations: 41.62 kB / 0.6849 GB, free: 11.2 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.294e-05/0.1857, allocations: 59.34 kB / 0.685 GB, free: 11.13 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.772e-05/0.1858, allocations: 97.86 kB / 0.6851 GB, free: 11.02 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.655e-05/0.1858, allocations: 25.7 kB / 0.6851 GB, free: 10.99 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.453e-05/0.1859, allocations: 92.16 kB / 0.6852 GB, free: 10.9 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.316e-06/0.1859, allocations: 7.938 kB / 0.6852 GB, free: 10.89 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.302e-05/0.186, allocations: 21.62 kB / 0.6852 GB, free: 10.86 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001082/0.1861, allocations: 318.8 kB / 0.6855 GB, free: 10.54 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.84e-05/0.1861, allocations: 8 kB / 0.6855 GB, free: 10.54 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.472e-05/0.1861, allocations: 13.7 kB / 0.6855 GB, free: 10.52 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.738e-05/0.1862, allocations: 29.66 kB / 0.6856 GB, free: 10.48 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.1862, allocations: 0 / 0.6856 GB, free: 10.48 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 8.713e-05/0.1863, allocations: 45.69 kB / 0.6856 GB, free: 10.43 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/0.1863, allocations: 11.94 kB / 0.6856 GB, free: 10.42 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.329e-06/0.1863, allocations: 0 / 0.6856 GB, free: 10.42 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.061e-05/0.1863, allocations: 0 / 0.6856 GB, free: 10.42 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.357e-05/0.1864, allocations: 4 kB / 0.6856 GB, free: 10.41 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.723e-06/0.1864, allocations: 4 kB / 0.6856 GB, free: 10.41 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.934e-05/0.1864, allocations: 4.062 kB / 0.6856 GB, free: 10.41 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.252e-05/0.1864, allocations: 3.984 kB / 0.6856 GB, free: 10.4 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 7.611e-05/0.1865, allocations: 119 kB / 0.6858 GB, free: 10.28 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.733e-05/0.1865, allocations: 0 / 0.6858 GB, free: 10.28 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001215/0.1867, allocations: 117 kB / 0.6859 GB, free: 10.15 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.277e-05/0.1867, allocations: 184.2 kB / 0.686 GB, free: 9.965 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.859e-05/0.1868, allocations: 180.3 kB / 0.6862 GB, free: 9.781 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.647e-05/0.1869, allocations: 184.2 kB / 0.6864 GB, free: 9.594 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002381/0.1871, allocations: 405.2 kB / 0.6868 GB, free: 9.141 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-05/0.1872, allocations: 108.9 kB / 0.6869 GB, free: 9.027 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.411e-05/0.1872, allocations: 101 kB / 0.687 GB, free: 8.922 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.257e-05/0.1873, allocations: 180.3 kB / 0.6872 GB, free: 8.738 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.493e-05/0.1873, allocations: 188.2 kB / 0.6873 GB, free: 8.547 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.41e-05/0.1874, allocations: 180.4 kB / 0.6875 GB, free: 8.363 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.685e-05/0.1875, allocations: 184.2 kB / 0.6877 GB, free: 8.176 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001356/0.1876, allocations: 307.8 kB / 0.688 GB, free: 7.852 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.349e-05/0.1877, allocations: 189.9 kB / 0.6882 GB, free: 7.641 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.107e-05/0.1878, allocations: 184.3 kB / 0.6883 GB, free: 7.453 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001579/0.1879, allocations: 108.9 kB / 0.6884 GB, free: 7.34 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.233e-05/0.188, allocations: 180.3 kB / 0.6886 GB, free: 7.156 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.666e-05/0.1881, allocations: 105 kB / 0.6887 GB, free: 7.047 MB / 494.1 MB Notification: Performance of sorting global known variables: time 5.762e-05/0.1881, allocations: 83.28 kB / 0.6888 GB, free: 6.965 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1881, allocations: 4 kB / 0.6888 GB, free: 6.961 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003081/0.1885, allocations: 39.92 kB / 0.6888 GB, free: 6.922 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.0003255/0.1888, allocations: 244.2 kB / 0.6891 GB, free: 6.672 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 8.349e-05/0.1889, allocations: 7.938 kB / 0.6891 GB, free: 6.664 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.1889, allocations: 0 / 0.6891 GB, free: 6.664 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 3.857e-06/0.1889, allocations: 8 kB / 0.6891 GB, free: 6.656 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005477/0.1895, allocations: 0.5224 MB / 0.6896 GB, free: 6.129 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003213/0.1898, allocations: 189.7 kB / 0.6898 GB, free: 5.918 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002996/0.1901, allocations: 0.677 MB / 0.6904 GB, free: 5.215 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 5.421e-05/0.1902, allocations: 4 kB / 0.6904 GB, free: 5.211 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.064e-05/0.1902, allocations: 7.438 kB / 0.6904 GB, free: 5.207 MB / 494.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1902, allocations: 0 / 0.6904 GB, free: 5.207 MB / 494.1 MB Notification: Performance of Templates: time 0.003934/0.1941, allocations: 1.197 MB / 0.6916 GB, free: 4.062 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.makefile (rm -f BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.sim & ./BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe 2>&1)