Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.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/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion") translateModel(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_latest_Buildings.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.00177/0.00177, 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.001831/0.001831, allocations: 195.8 kB / 16.14 MB, free: 6.645 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.389/1.389, allocations: 222.9 MB / 239.8 MB, free: 4.574 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.757/2.757, allocations: 461.9 MB / 0.7342 GB, free: 15.02 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001273, allocations: 63.89 kB / 0.8984 GB, free: 37.19 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3361/0.3374, allocations: 157.4 MB / 1.052 GB, free: 8.824 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion): time 0.004692/0.3421, allocations: 3.359 MB / 1.055 GB, free: 5.441 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 9.394e-05/0.3422, allocations: 55.86 kB / 1.055 GB, free: 5.387 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.177e-05/0.3422, allocations: 0 / 1.055 GB, free: 5.387 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 9.399e-05/0.3423, allocations: 0 / 1.055 GB, free: 5.387 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 8.35e-05/0.3424, allocations: 15.91 kB / 1.055 GB, free: 5.371 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004815/0.3429, allocations: 174.3 kB / 1.056 GB, free: 5.203 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.481e-05/0.343, allocations: 63.81 kB / 1.056 GB, free: 5.141 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.65e-05/0.3431, allocations: 4 kB / 1.056 GB, free: 5.137 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 4.269e-05/0.3431, allocations: 11.98 kB / 1.056 GB, free: 5.125 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.544e-05/0.3432, allocations: 19.92 kB / 1.056 GB, free: 5.105 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.304e-05/0.3432, allocations: 0 / 1.056 GB, free: 5.105 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003763/0.3436, allocations: 171.5 kB / 1.056 GB, free: 4.938 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 5.083e-05/0.3437, allocations: 7.984 kB / 1.056 GB, free: 4.93 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.613e-05/0.3437, allocations: 11.92 kB / 1.056 GB, free: 4.918 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003108/0.344, allocations: 136 kB / 1.056 GB, free: 4.785 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.344, allocations: 8 kB / 1.056 GB, free: 4.777 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.21e-07/0.344, allocations: 0 / 1.056 GB, free: 4.777 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.937e-06/0.3441, allocations: 0 / 1.056 GB, free: 4.777 MB / 0.8106 GB 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.0005371/0.3446, allocations: 344.4 kB / 1.056 GB, free: 4.395 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.946e-05/0.3446, allocations: 11.97 kB / 1.056 GB, free: 4.383 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.134e-05/0.3447, allocations: 0.9375 kB / 1.056 GB, free: 4.383 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001155/0.3448, allocations: 168.3 kB / 1.057 GB, free: 4.18 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.145e-05/0.3449, allocations: 26.27 kB / 1.057 GB, free: 4.148 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.476e-06/0.3449, allocations: 384 / 1.057 GB, free: 4.148 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001251/0.345, allocations: 57.61 kB / 1.057 GB, free: 4.086 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.274e-06/0.3451, allocations: 0 / 1.057 GB, free: 4.086 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.189e-05/0.3451, allocations: 0 / 1.057 GB, free: 4.086 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.859e-05/0.3451, allocations: 3.984 kB / 1.057 GB, free: 4.082 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.375e-05/0.3451, allocations: 11.94 kB / 1.057 GB, free: 4.07 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005961/0.3457, allocations: 0.591 MB / 1.057 GB, free: 3.355 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 3.539e-05/0.3458, allocations: 18.58 kB / 1.057 GB, free: 3.328 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.712e-05/0.3458, allocations: 12.91 kB / 1.057 GB, free: 3.312 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002263/0.346, allocations: 340.4 kB / 1.058 GB, free: 2.906 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.521e-05/0.3461, allocations: 30.56 kB / 1.058 GB, free: 2.867 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=1): time 1.132e-06/0.3461, allocations: 0 / 1.058 GB, free: 2.867 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1): time 0.0001511/0.3462, allocations: 37.64 kB / 1.058 GB, free: 2.824 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.67e-05/0.3463, allocations: 51.41 kB / 1.058 GB, free: 2.762 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001669/0.3465, allocations: 110 kB / 1.058 GB, free: 2.645 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.442e-05/0.3465, allocations: 25.7 kB / 1.058 GB, free: 2.613 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.536e-05/0.3465, allocations: 84.05 kB / 1.058 GB, free: 2.527 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.869e-06/0.3465, allocations: 0 / 1.058 GB, free: 2.527 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.297e-05/0.3466, allocations: 21.7 kB / 1.058 GB, free: 2.5 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001717/0.3468, allocations: 314.8 kB / 1.058 GB, free: 2.184 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.5e-05/0.3468, allocations: 4 kB / 1.058 GB, free: 2.18 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.515e-05/0.3468, allocations: 21.7 kB / 1.058 GB, free: 2.152 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.586e-05/0.3469, allocations: 25.66 kB / 1.058 GB, free: 2.121 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.3469, allocations: 0 / 1.058 GB, free: 2.121 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.851e-05/0.3469, allocations: 53.53 kB / 1.058 GB, free: 2.062 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.381e-05/0.347, allocations: 4 kB / 1.058 GB, free: 2.059 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.848e-06/0.347, allocations: 0 / 1.058 GB, free: 2.059 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.343e-05/0.347, allocations: 4 kB / 1.058 GB, free: 2.055 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.543e-05/0.347, allocations: 7.938 kB / 1.058 GB, free: 2.047 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/0.3471, allocations: 4.062 kB / 1.058 GB, free: 2.043 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.11e-05/0.3471, allocations: 7.938 kB / 1.058 GB, free: 2.035 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.302e-05/0.3471, allocations: 8 kB / 1.058 GB, free: 2.027 MB / 0.8106 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 0.0001623/0.3473, allocations: 119.3 kB / 1.058 GB, free: 1.902 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.857e-05/0.3473, allocations: 4 kB / 1.058 GB, free: 1.898 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001043/0.3474, allocations: 112.9 kB / 1.059 GB, free: 1.781 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.799e-05/0.3475, allocations: 188.3 kB / 1.059 GB, free: 1.59 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.694e-05/0.3476, allocations: 180.2 kB / 1.059 GB, free: 1.406 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001527/0.3477, allocations: 180.2 kB / 1.059 GB, free: 1.223 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003062/0.3481, allocations: 413.1 kB / 1.059 GB, free: 0.7617 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.239e-05/0.3481, allocations: 104.9 kB / 1.06 GB, free: 0.6523 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.491e-05/0.3481, allocations: 101.1 kB / 1.06 GB, free: 0.5469 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.53e-05/0.3482, allocations: 188.3 kB / 1.06 GB, free: 364 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001622/0.3484, allocations: 180.2 kB / 1.06 GB, free: 176 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.524e-05/0.3484, allocations: 180.2 kB / 1.06 GB, free: 15.99 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.97e-05/0.3485, allocations: 180.2 kB / 1.06 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001275/0.3487, allocations: 308 kB / 1.061 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001591/0.3488, allocations: 190 kB / 1.061 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.474e-05/0.3489, allocations: 176.3 kB / 1.061 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001607/0.3491, allocations: 112.9 kB / 1.061 GB, free: 14.97 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.968e-05/0.3491, allocations: 184.2 kB / 1.061 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.085e-05/0.3492, allocations: 105 kB / 1.061 GB, free: 14.68 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.831e-05/0.3492, allocations: 95.22 kB / 1.061 GB, free: 14.58 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3492, allocations: 0 / 1.061 GB, free: 14.58 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003206/0.3496, allocations: 35.98 kB / 1.062 GB, free: 14.55 MB / 0.8262 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.0002605/0.3498, allocations: 234.4 kB / 1.062 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 6.878e-05/0.3499, allocations: 8 kB / 1.062 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3499, allocations: 0 / 1.062 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 2.996e-06/0.3499, allocations: 0 / 1.062 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004532/0.3504, allocations: 0.5303 MB / 1.062 GB, free: 13.76 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002437/0.3506, allocations: 181.9 kB / 1.062 GB, free: 13.56 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000277/0.3509, allocations: 0.677 MB / 1.063 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.258e-05/0.351, allocations: 4 kB / 1.063 GB, free: 12.85 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.682e-05/0.351, allocations: 15.44 kB / 1.063 GB, free: 12.84 MB / 0.8262 GB Notification: Performance of SimCode: time 2.31e-07/0.351, allocations: 0 / 1.063 GB, free: 12.84 MB / 0.8262 GB Notification: Performance of Templates: time 0.003943/0.355, allocations: 1.184 MB / 1.064 GB, free: 11.7 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.makefile (rm -f Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe >> ../files/Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.sim & ./Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityTemperatureEnthalpyInversion.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches