Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion") translateModel(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 1.989/1.989, allocations: 387.4 MB / 394.9 MB, free: 13.4 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001019/0.001019, allocations: 176.9 kB / 487.4 MB, free: 5.027 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.38/1.38, allocations: 221.5 MB / 0.7824 GB, free: 0.9258 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008515/0.0008514, allocations: 107 kB / 0.9219 GB, free: 2.148 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.3e-05/1.3e-05, allocations: 0 / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2524/0.2524, allocations: 142.4 MB / 1.206 GB, free: 43.95 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9757/1.228, allocations: 388.4 MB / 1.585 GB, free: 1.699 MB / 0.9948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002494/1.228, allocations: 65.91 kB / 1.585 GB, free: 1.668 MB / 0.9948 GB Notification: Performance of FrontEnd - DAE generated: time 0.02676/1.255, allocations: 13.22 MB / 1.598 GB, free: 7.367 MB / 1.01 GB Notification: Performance of FrontEnd: time 1.663e-06/1.255, allocations: 3.938 kB / 1.598 GB, free: 7.363 MB / 1.01 GB Notification: Performance of Transformations before backend: time 6.763e-06/1.255, allocations: 0 / 1.598 GB, free: 7.363 MB / 1.01 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.0003184/1.256, allocations: 330.4 kB / 1.599 GB, free: 7 MB / 1.01 GB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/1.256, allocations: 8.562 kB / 1.599 GB, free: 6.992 MB / 1.01 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.811e-05/1.256, allocations: 4 kB / 1.599 GB, free: 6.988 MB / 1.01 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001292/1.256, allocations: 167 kB / 1.599 GB, free: 6.785 MB / 1.01 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.988e-05/1.256, allocations: 25.7 kB / 1.599 GB, free: 6.754 MB / 1.01 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.252e-05/1.256, allocations: 11.94 kB / 1.599 GB, free: 6.742 MB / 1.01 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.164e-05/1.256, allocations: 7.984 kB / 1.599 GB, free: 6.734 MB / 1.01 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.092e-05/1.256, allocations: 41.44 kB / 1.599 GB, free: 6.691 MB / 1.01 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.124e-06/1.256, allocations: 0 / 1.599 GB, free: 6.691 MB / 1.01 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.088e-05/1.256, allocations: 0 / 1.599 GB, free: 6.691 MB / 1.01 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.854e-05/1.256, allocations: 7.938 kB / 1.599 GB, free: 6.684 MB / 1.01 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004168/1.257, allocations: 318.2 kB / 1.599 GB, free: 6.324 MB / 1.01 GB Notification: Performance of preOpt comSubExp (simulation): time 4.504e-05/1.257, allocations: 26.56 kB / 1.599 GB, free: 6.289 MB / 1.01 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.583e-05/1.257, allocations: 8.797 kB / 1.599 GB, free: 6.277 MB / 1.01 GB Notification: Performance of preOpt evalFunc (simulation): time 7.862e-05/1.257, allocations: 81.17 kB / 1.599 GB, free: 6.18 MB / 1.01 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.233e-05/1.257, allocations: 30.56 kB / 1.599 GB, free: 6.141 MB / 1.01 GB Notification: Performance of pre-optimization done (n=1): time 1.904e-06/1.257, allocations: 0 / 1.599 GB, free: 6.141 MB / 1.01 GB Notification: Performance of matching and sorting (n=1): time 0.0001615/1.257, allocations: 41.56 kB / 1.599 GB, free: 6.098 MB / 1.01 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.73e-05/1.257, allocations: 51.41 kB / 1.599 GB, free: 6.035 MB / 1.01 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.856e-05/1.257, allocations: 93.03 kB / 1.599 GB, free: 5.938 MB / 1.01 GB Notification: Performance of collectPreVariables (initialization): time 1.481e-05/1.257, allocations: 25.7 kB / 1.599 GB, free: 5.906 MB / 1.01 GB Notification: Performance of collectInitialEqns (initialization): time 5.832e-05/1.257, allocations: 95.91 kB / 1.6 GB, free: 5.812 MB / 1.01 GB Notification: Performance of collectInitialBindings (initialization): time 4.108e-06/1.257, allocations: 0 / 1.6 GB, free: 5.812 MB / 1.01 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.685e-06/1.257, allocations: 0 / 1.6 GB, free: 5.812 MB / 1.01 GB Notification: Performance of setup shared object (initialization): time 0.0001131/1.257, allocations: 314.8 kB / 1.6 GB, free: 5.496 MB / 1.01 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.426e-05/1.257, allocations: 4 kB / 1.6 GB, free: 5.492 MB / 1.01 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.28e-05/1.257, allocations: 17.47 kB / 1.6 GB, free: 5.473 MB / 1.01 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.461e-05/1.257, allocations: 15.92 kB / 1.6 GB, free: 5.457 MB / 1.01 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/1.257, allocations: 0 / 1.6 GB, free: 5.457 MB / 1.01 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001076/1.258, allocations: 45.69 kB / 1.6 GB, free: 5.406 MB / 1.01 GB Notification: Performance of prepare postOptimizeDAE: time 1.637e-05/1.258, allocations: 6.188 kB / 1.6 GB, free: 5.402 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/1.258, allocations: 3.938 kB / 1.6 GB, free: 5.398 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.117e-05/1.258, allocations: 0 / 1.6 GB, free: 5.398 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.482e-05/1.258, allocations: 4 kB / 1.6 GB, free: 5.395 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.997e-06/1.258, allocations: 4 kB / 1.6 GB, free: 5.391 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.267e-05/1.258, allocations: 7.969 kB / 1.6 GB, free: 5.383 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.658e-06/1.258, allocations: 7.812 kB / 1.6 GB, free: 5.379 MB / 1.01 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.534e-05/1.258, allocations: 108.9 kB / 1.6 GB, free: 5.266 MB / 1.01 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.515e-05/1.258, allocations: 0 / 1.6 GB, free: 5.266 MB / 1.01 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001071/1.258, allocations: 117.6 kB / 1.6 GB, free: 5.145 MB / 1.01 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.406e-05/1.258, allocations: 176.3 kB / 1.6 GB, free: 4.965 MB / 1.01 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.12e-05/1.258, allocations: 184.2 kB / 1.6 GB, free: 4.777 MB / 1.01 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.711e-05/1.258, allocations: 184.2 kB / 1.601 GB, free: 4.59 MB / 1.01 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002103/1.258, allocations: 385.5 kB / 1.601 GB, free: 4.172 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.18e-05/1.258, allocations: 104.9 kB / 1.601 GB, free: 4.062 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.167e-05/1.258, allocations: 105 kB / 1.601 GB, free: 3.953 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.007e-05/1.259, allocations: 180.3 kB / 1.601 GB, free: 3.77 MB / 1.01 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.452e-05/1.259, allocations: 180.2 kB / 1.602 GB, free: 3.586 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.16e-05/1.259, allocations: 180.2 kB / 1.602 GB, free: 3.406 MB / 1.01 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.719e-05/1.259, allocations: 184.2 kB / 1.602 GB, free: 3.219 MB / 1.01 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001529/1.259, allocations: 307.8 kB / 1.602 GB, free: 2.895 MB / 1.01 GB Notification: Performance of postOpt removeConstants (simulation): time 9.708e-05/1.259, allocations: 190 kB / 1.602 GB, free: 2.688 MB / 1.01 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.949e-05/1.259, allocations: 184.1 kB / 1.603 GB, free: 2.5 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001393/1.259, allocations: 105 kB / 1.603 GB, free: 2.391 MB / 1.01 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.738e-05/1.259, allocations: 180.3 kB / 1.603 GB, free: 2.207 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.041e-05/1.259, allocations: 112.9 kB / 1.603 GB, free: 2.09 MB / 1.01 GB Notification: Performance of sorting global known variables: time 4.53e-05/1.259, allocations: 87.22 kB / 1.603 GB, free: 2.008 MB / 1.01 GB Notification: Performance of sort global known variables: time 1.2e-07/1.259, allocations: 0 / 1.603 GB, free: 2.008 MB / 1.01 GB Notification: Performance of remove unused functions: time 0.0002604/1.26, allocations: 19.94 kB / 1.603 GB, free: 1.988 MB / 1.01 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002315/1.26, allocations: 204.6 kB / 1.603 GB, free: 1.777 MB / 1.01 GB Notification: Performance of simCode: created initialization part: time 5.387e-05/1.26, allocations: 7.984 kB / 1.603 GB, free: 1.77 MB / 1.01 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/1.26, allocations: 0 / 1.603 GB, free: 1.77 MB / 1.01 GB Notification: Performance of simCode: created simulation system equations: time 3.146e-06/1.26, allocations: 3.938 kB / 1.603 GB, free: 1.766 MB / 1.01 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003408/1.26, allocations: 0.5262 MB / 1.604 GB, free: 1.238 MB / 1.01 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001682/1.261, allocations: 123.4 kB / 1.604 GB, free: 1.094 MB / 1.01 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002713/1.261, allocations: 0.6768 MB / 1.605 GB, free: 400 kB / 1.01 GB Notification: Performance of simCode: alias equations: time 4.776e-05/1.261, allocations: 12.27 kB / 1.605 GB, free: 388 kB / 1.01 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.799e-05/1.261, allocations: 7.438 kB / 1.605 GB, free: 384 kB / 1.01 GB Notification: Performance of SimCode: time 2.1e-07/1.261, allocations: 0 / 1.605 GB, free: 384 kB / 1.01 GB Notification: Performance of Templates: time 0.002868/1.264, allocations: 0.709 MB / 1.605 GB, free: 15.68 MB / 1.026 GB make -j1 -f Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.makefile (rm -f Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.sim & ./Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Examples_WaterTemperatureEnthalpyInversion.csv","../files/Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches