Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.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.Examples.SteamTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_latest_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion") translateModel(Buildings.Media.Examples.SteamTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_latest_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001522/0.001522, allocations: 111.3 kB / 15.23 MB, free: 0.6562 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.001774/0.001774, allocations: 194.9 kB / 16.14 MB, free: 6.703 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.432/1.432, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.728/2.728, allocations: 461.9 MB / 0.7342 GB, free: 15.05 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001242, allocations: 64.22 kB / 0.8984 GB, free: 37.41 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3985/0.3998, allocations: 157.4 MB / 1.052 GB, free: 8.941 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamTemperatureEnthalpyInversion): time 0.1599/0.5598, allocations: 133.3 MB / 1.182 GB, free: 3.102 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0001972/0.56, allocations: 51.59 kB / 1.182 GB, free: 3.055 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.475e-05/0.5601, allocations: 0 / 1.182 GB, free: 3.055 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001575/0.5602, allocations: 7.938 kB / 1.182 GB, free: 3.047 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 9.851e-05/0.5604, allocations: 15.92 kB / 1.182 GB, free: 3.031 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009106/0.5613, allocations: 219.1 kB / 1.183 GB, free: 2.816 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001123/0.5614, allocations: 55.88 kB / 1.183 GB, free: 2.762 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 4.161e-05/0.5615, allocations: 3.938 kB / 1.183 GB, free: 2.758 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 3.876e-05/0.5615, allocations: 19.98 kB / 1.183 GB, free: 2.738 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 7.041e-05/0.5616, allocations: 4 kB / 1.183 GB, free: 2.734 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.585e-05/0.5616, allocations: 11.92 kB / 1.183 GB, free: 2.723 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000461/0.5621, allocations: 235.4 kB / 1.183 GB, free: 2.492 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 6.111e-05/0.5621, allocations: 15.97 kB / 1.183 GB, free: 2.477 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 2.907e-05/0.5622, allocations: 7.938 kB / 1.183 GB, free: 2.469 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0003549/0.5625, allocations: 191.9 kB / 1.183 GB, free: 2.281 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.409e-06/0.5626, allocations: 3.938 kB / 1.183 GB, free: 2.277 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.162e-06/0.5626, allocations: 0 / 1.183 GB, free: 2.277 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 4.879e-06/0.5626, allocations: 0 / 1.183 GB, free: 2.277 MB / 0.9356 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.0004414/0.563, allocations: 359.5 kB / 1.183 GB, free: 1.879 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.127e-05/0.5631, allocations: 8.031 kB / 1.183 GB, free: 1.871 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.763e-05/0.5631, allocations: 4.938 kB / 1.183 GB, free: 1.867 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001313/0.5633, allocations: 168.3 kB / 1.184 GB, free: 1.664 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.088e-05/0.5633, allocations: 26.27 kB / 1.184 GB, free: 1.633 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.144e-05/0.5633, allocations: 7.938 kB / 1.184 GB, free: 1.625 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001444/0.5635, allocations: 45.67 kB / 1.184 GB, free: 1.574 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.518e-06/0.5635, allocations: 4 kB / 1.184 GB, free: 1.57 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.107e-05/0.5635, allocations: 0 / 1.184 GB, free: 1.57 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.954e-05/0.5636, allocations: 0 / 1.184 GB, free: 1.57 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.447e-05/0.5636, allocations: 27.86 kB / 1.184 GB, free: 1.543 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008839/0.5645, allocations: 0.5949 MB / 1.184 GB, free: 0.8242 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 3.732e-05/0.5646, allocations: 14.58 kB / 1.184 GB, free: 0.8008 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.976e-05/0.5646, allocations: 12.92 kB / 1.184 GB, free: 0.7852 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002053/0.5648, allocations: 332.4 kB / 1.185 GB, free: 396 kB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.857e-05/0.5648, allocations: 38.56 kB / 1.185 GB, free: 348 kB / 0.9356 GB Notification: Performance of pre-optimization done (n=1): time 1.012e-06/0.5648, allocations: 0 / 1.185 GB, free: 348 kB / 0.9356 GB Notification: Performance of matching and sorting (n=1): time 0.000156/0.565, allocations: 33.64 kB / 1.185 GB, free: 308 kB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.748e-05/0.565, allocations: 51.41 kB / 1.185 GB, free: 244 kB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.532e-05/0.5651, allocations: 109.8 kB / 1.185 GB, free: 124 kB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.534e-05/0.5652, allocations: 29.83 kB / 1.185 GB, free: 88 kB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 4.856e-05/0.5652, allocations: 84.05 kB / 1.185 GB, free: 0 / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 4.779e-06/0.5652, allocations: 0 / 1.185 GB, free: 0 / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.238e-05/0.5653, allocations: 21.7 kB / 1.185 GB, free: 15.97 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001087/0.5654, allocations: 318.8 kB / 1.185 GB, free: 15.65 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.396e-05/0.5654, allocations: 0 / 1.185 GB, free: 15.65 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.644e-05/0.5654, allocations: 21.7 kB / 1.185 GB, free: 15.62 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.677e-05/0.5655, allocations: 25.66 kB / 1.185 GB, free: 15.59 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.5655, allocations: 0 / 1.185 GB, free: 15.59 MB / 0.9512 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.5e-05/0.5656, allocations: 49.59 kB / 1.185 GB, free: 15.54 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.431e-05/0.5656, allocations: 4 kB / 1.185 GB, free: 15.54 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.5656, allocations: 4 kB / 1.185 GB, free: 15.53 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.251e-05/0.5656, allocations: 3.938 kB / 1.185 GB, free: 15.53 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.519e-05/0.5657, allocations: 4 kB / 1.185 GB, free: 15.52 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.932e-06/0.5657, allocations: 0 / 1.185 GB, free: 15.52 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.033e-05/0.5657, allocations: 8.062 kB / 1.185 GB, free: 15.52 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.022e-05/0.5657, allocations: 3.938 kB / 1.185 GB, free: 15.51 MB / 0.9512 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.82e-05/0.5658, allocations: 113.8 kB / 1.185 GB, free: 15.39 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.766e-05/0.5658, allocations: 7.984 kB / 1.186 GB, free: 15.38 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001086/0.566, allocations: 113 kB / 1.186 GB, free: 15.26 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.807e-05/0.566, allocations: 180.2 kB / 1.186 GB, free: 15.08 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.374e-05/0.5661, allocations: 188.2 kB / 1.186 GB, free: 14.89 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.521e-05/0.5662, allocations: 180.2 kB / 1.186 GB, free: 14.7 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000212/0.5664, allocations: 417.1 kB / 1.187 GB, free: 14.24 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.208e-05/0.5664, allocations: 105 kB / 1.187 GB, free: 14.13 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.038e-05/0.5664, allocations: 108.9 kB / 1.187 GB, free: 14.02 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.291e-05/0.5665, allocations: 176.3 kB / 1.187 GB, free: 13.84 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.675e-05/0.5666, allocations: 184.2 kB / 1.187 GB, free: 13.65 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.725e-05/0.5666, allocations: 180.2 kB / 1.187 GB, free: 13.46 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.097e-05/0.5667, allocations: 184.2 kB / 1.187 GB, free: 13.28 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000119/0.5668, allocations: 303.8 kB / 1.188 GB, free: 12.96 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 7.061e-05/0.5669, allocations: 190 kB / 1.188 GB, free: 12.75 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.209e-05/0.567, allocations: 176.3 kB / 1.188 GB, free: 12.57 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001493/0.5671, allocations: 112.9 kB / 1.188 GB, free: 12.45 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.699e-05/0.5672, allocations: 176.3 kB / 1.188 GB, free: 12.27 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.9e-05/0.5673, allocations: 109 kB / 1.188 GB, free: 12.16 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 4.661e-05/0.5673, allocations: 83.22 kB / 1.189 GB, free: 12.07 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.41e-07/0.5673, allocations: 4 kB / 1.189 GB, free: 12.07 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003097/0.5676, allocations: 55.92 kB / 1.189 GB, free: 12.02 MB / 0.9512 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.000343/0.568, allocations: 254.7 kB / 1.189 GB, free: 11.75 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 7.548e-05/0.5681, allocations: 15.98 kB / 1.189 GB, free: 11.74 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.5681, allocations: 0 / 1.189 GB, free: 11.74 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 1.172e-06/0.5681, allocations: 0 / 1.189 GB, free: 11.74 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004588/0.5685, allocations: 0.5263 MB / 1.189 GB, free: 11.21 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002868/0.5688, allocations: 195.6 kB / 1.19 GB, free: 10.99 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002207/0.5691, allocations: 0.677 MB / 1.19 GB, free: 10.29 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 3.845e-05/0.5691, allocations: 4 kB / 1.19 GB, free: 10.29 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.696e-05/0.5691, allocations: 11.44 kB / 1.19 GB, free: 10.27 MB / 0.9512 GB Notification: Performance of SimCode: time 2.1e-07/0.5691, allocations: 0 / 1.19 GB, free: 10.27 MB / 0.9512 GB Notification: Performance of Templates: time 0.003845/0.573, allocations: 1.266 MB / 1.191 GB, free: 9.012 MB / 0.9512 GB make -j1 -f Buildings_latest_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.makefile (rm -f Buildings_latest_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_latest_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.pipe >> ../files/Buildings_latest_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.sim & ./Buildings_latest_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Examples_SteamTemperatureEnthalpyInversion.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches