Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_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_10_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.007012/0.007012, allocations: 96.39 kB / 15.73 MB, free: 6.484 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.001664/0.001664, allocations: 191.5 kB / 16.67 MB, free: 6.391 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.422/1.422, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.678/2.678, allocations: 437 MB / 0.7105 GB, free: 5.062 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001195/0.001195, allocations: 67.89 kB / 1.019 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3086/0.3098, allocations: 151.6 MB / 1.167 GB, free: 6.977 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion): time 0.004521/0.3144, allocations: 3.283 MB / 1.17 GB, free: 3.668 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0001065/0.3145, allocations: 59.84 kB / 1.17 GB, free: 3.609 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.558e-05/0.3146, allocations: 0 / 1.17 GB, free: 3.609 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0001015/0.3147, allocations: 3.938 kB / 1.17 GB, free: 3.605 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 6.871e-05/0.3147, allocations: 7.938 kB / 1.17 GB, free: 3.598 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005182/0.3153, allocations: 191.2 kB / 1.17 GB, free: 3.41 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 8.628e-05/0.3154, allocations: 27.92 kB / 1.17 GB, free: 3.383 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 4.092e-05/0.3154, allocations: 4 kB / 1.17 GB, free: 3.379 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 4.272e-05/0.3155, allocations: 23.84 kB / 1.17 GB, free: 3.355 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 8.494e-05/0.3156, allocations: 11.98 kB / 1.17 GB, free: 3.344 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.352e-05/0.3156, allocations: 4 kB / 1.17 GB, free: 3.34 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003421/0.3159, allocations: 171.6 kB / 1.17 GB, free: 3.172 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 4.735e-05/0.316, allocations: 7.922 kB / 1.17 GB, free: 3.164 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 2.552e-05/0.316, allocations: 7.938 kB / 1.17 GB, free: 3.156 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0002718/0.3163, allocations: 143.6 kB / 1.17 GB, free: 3.016 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.3163, allocations: 4 kB / 1.17 GB, free: 3.012 MB / 0.92 GB Notification: Performance of FrontEnd: time 3.136e-06/0.3163, allocations: 0 / 1.17 GB, free: 3.012 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.209e-06/0.3163, allocations: 3.938 kB / 1.17 GB, free: 3.008 MB / 0.92 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.0004362/0.3168, allocations: 343.4 kB / 1.171 GB, free: 2.625 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.548e-05/0.3168, allocations: 8.031 kB / 1.171 GB, free: 2.617 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.134e-05/0.3168, allocations: 4.938 kB / 1.171 GB, free: 2.613 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001164/0.317, allocations: 164.3 kB / 1.171 GB, free: 2.414 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.077e-05/0.317, allocations: 30.27 kB / 1.171 GB, free: 2.379 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.086e-05/0.3171, allocations: 384 / 1.171 GB, free: 2.379 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001213/0.3172, allocations: 49.62 kB / 1.171 GB, free: 2.324 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.274e-06/0.3172, allocations: 0 / 1.171 GB, free: 2.324 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.107e-05/0.3172, allocations: 0 / 1.171 GB, free: 2.324 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.153e-05/0.3172, allocations: 7.984 kB / 1.171 GB, free: 2.316 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.712e-05/0.3173, allocations: 11.94 kB / 1.171 GB, free: 2.305 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006512/0.3179, allocations: 0.5833 MB / 1.172 GB, free: 1.598 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 4.128e-05/0.318, allocations: 22.58 kB / 1.172 GB, free: 1.566 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.558e-05/0.318, allocations: 8.844 kB / 1.172 GB, free: 1.555 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00024/0.3183, allocations: 344.5 kB / 1.172 GB, free: 1.145 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.941e-05/0.3183, allocations: 34.5 kB / 1.172 GB, free: 1.102 MB / 0.92 GB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.3183, allocations: 0 / 1.172 GB, free: 1.102 MB / 0.92 GB Notification: Performance of matching and sorting (n=1): time 0.0001396/0.3184, allocations: 33.64 kB / 1.172 GB, free: 1.062 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.538e-05/0.3185, allocations: 59.39 kB / 1.172 GB, free: 0.9922 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.292e-05/0.3186, allocations: 102 kB / 1.172 GB, free: 0.8828 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.35e-05/0.3186, allocations: 25.7 kB / 1.172 GB, free: 0.8516 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 5.274e-05/0.3187, allocations: 88.09 kB / 1.172 GB, free: 0.7617 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 5.831e-06/0.3187, allocations: 7.984 kB / 1.172 GB, free: 0.7539 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.066e-05/0.3187, allocations: 17.67 kB / 1.172 GB, free: 0.7305 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001038/0.3188, allocations: 314.8 kB / 1.173 GB, free: 424 kB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.59e-05/0.3188, allocations: 4 kB / 1.173 GB, free: 420 kB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.585e-05/0.3189, allocations: 21.7 kB / 1.173 GB, free: 392 kB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.501e-05/0.3189, allocations: 29.66 kB / 1.173 GB, free: 356 kB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.3189, allocations: 0 / 1.173 GB, free: 356 kB / 0.92 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.796e-05/0.319, allocations: 45.69 kB / 1.173 GB, free: 304 kB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.434e-05/0.319, allocations: 8 kB / 1.173 GB, free: 296 kB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.097e-06/0.319, allocations: 0 / 1.173 GB, free: 296 kB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.139e-05/0.319, allocations: 0 / 1.173 GB, free: 296 kB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.782e-05/0.3191, allocations: 11.94 kB / 1.173 GB, free: 284 kB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.733e-06/0.3191, allocations: 8.062 kB / 1.173 GB, free: 276 kB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.818e-05/0.3191, allocations: 3.938 kB / 1.173 GB, free: 272 kB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.847e-06/0.3191, allocations: 4.219 kB / 1.173 GB, free: 268 kB / 0.92 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 7.164e-05/0.3192, allocations: 117.8 kB / 1.173 GB, free: 140 kB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.491e-05/0.3193, allocations: 0 / 1.173 GB, free: 140 kB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001136/0.3194, allocations: 121 kB / 1.173 GB, free: 8 kB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.81e-05/0.3194, allocations: 184.2 kB / 1.173 GB, free: 15.82 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.764e-05/0.3195, allocations: 180.2 kB / 1.173 GB, free: 15.64 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-05/0.3196, allocations: 184.2 kB / 1.174 GB, free: 15.45 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002037/0.3198, allocations: 409.2 kB / 1.174 GB, free: 14.99 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.891e-05/0.3198, allocations: 109 kB / 1.174 GB, free: 14.88 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.138e-05/0.3199, allocations: 104.9 kB / 1.174 GB, free: 14.77 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.502e-05/0.3199, allocations: 180.3 kB / 1.174 GB, free: 14.59 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.038e-05/0.32, allocations: 184.2 kB / 1.174 GB, free: 14.4 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.951e-05/0.3201, allocations: 184.3 kB / 1.175 GB, free: 14.21 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.711e-05/0.3201, allocations: 176.3 kB / 1.175 GB, free: 14.03 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001221/0.3202, allocations: 311.7 kB / 1.175 GB, free: 13.7 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 6.734e-05/0.3203, allocations: 194 kB / 1.175 GB, free: 13.49 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.093e-05/0.3204, allocations: 180.3 kB / 1.175 GB, free: 13.3 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001474/0.3205, allocations: 105 kB / 1.176 GB, free: 13.2 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.881e-05/0.3206, allocations: 188.2 kB / 1.176 GB, free: 13 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.691e-05/0.3207, allocations: 101 kB / 1.176 GB, free: 12.9 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 4.289e-05/0.3207, allocations: 87.28 kB / 1.176 GB, free: 12.81 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3207, allocations: 0 / 1.176 GB, free: 12.81 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002646/0.321, allocations: 35.86 kB / 1.176 GB, free: 12.78 MB / 0.9356 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.0002455/0.3212, allocations: 236.7 kB / 1.176 GB, free: 12.54 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 6.531e-05/0.3213, allocations: 7.938 kB / 1.176 GB, free: 12.53 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.3213, allocations: 4 kB / 1.176 GB, free: 12.52 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 1.282e-06/0.3213, allocations: 0 / 1.176 GB, free: 12.52 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004087/0.3217, allocations: 460 kB / 1.177 GB, free: 12.07 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00026/0.322, allocations: 181.9 kB / 1.177 GB, free: 11.87 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002481/0.3223, allocations: 0.6768 MB / 1.177 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 4.001e-05/0.3223, allocations: 7.859 kB / 1.177 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.533e-05/0.3223, allocations: 7.438 kB / 1.177 GB, free: 11.15 MB / 0.9356 GB Notification: Performance of SimCode: time 2.51e-07/0.3223, allocations: 0 / 1.177 GB, free: 11.15 MB / 0.9356 GB Notification: Performance of Templates: time 0.003521/0.3259, allocations: 1.223 MB / 1.179 GB, free: 9.98 MB / 0.9356 GB make -j1 -f Buildings_10_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.makefile (rm -f Buildings_10_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_10_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_10_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe >> ../files/Buildings_10_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.sim & ./Buildings_10_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityTemperatureEnthalpyInversion.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches