Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.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.Examples.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion") translateModel(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001658/0.001658, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001923/0.001923, allocations: 194.8 kB / 16.53 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.488/1.488, allocations: 222.9 MB / 240.2 MB, free: 4.258 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.723/2.723, allocations: 437 MB / 0.7104 GB, free: 5.039 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002236/0.002236, allocations: 63.88 kB / 0.8692 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5795/0.5817, allocations: 151.6 MB / 1.017 GB, free: 2.492 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.00692/0.5887, allocations: 4.008 MB / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0002312/0.589, allocations: 159.5 kB / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.905e-05/0.589, allocations: 0 / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001104/0.5892, allocations: 3.984 kB / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 7.842e-05/0.5893, allocations: 15.92 kB / 1.021 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004247/0.5897, allocations: 79.69 kB / 1.021 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001074/0.5898, allocations: 31.86 kB / 1.021 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 4.601e-05/0.5899, allocations: 0 / 1.021 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 5.435e-05/0.5899, allocations: 23.97 kB / 1.022 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 7.004e-05/0.59, allocations: 11.92 kB / 1.022 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.427e-05/0.59, allocations: 0 / 1.022 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002348/0.5903, allocations: 63.81 kB / 1.022 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 4.945e-05/0.5903, allocations: 7.922 kB / 1.022 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.144e-05/0.5904, allocations: 8 kB / 1.022 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001374/0.5905, allocations: 43.89 kB / 1.022 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.5905, allocations: 0 / 1.022 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.322e-06/0.5905, allocations: 0 / 1.022 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.36e-06/0.5905, allocations: 0 / 1.022 GB, free: 14.02 MB / 0.7794 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.0004803/0.591, allocations: 337.5 kB / 1.022 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.13e-05/0.5911, allocations: 12.02 kB / 1.022 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.18e-05/0.5911, allocations: 0.9375 kB / 1.022 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000164/0.5913, allocations: 164.4 kB / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.618e-05/0.5914, allocations: 26.27 kB / 1.022 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.959e-06/0.5914, allocations: 8.375 kB / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001435/0.5915, allocations: 49.56 kB / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.074e-05/0.5915, allocations: 0 / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.134e-05/0.5916, allocations: 0 / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.919e-05/0.5916, allocations: 0 / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.418e-05/0.5916, allocations: 19.97 kB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005082/0.5922, allocations: 337.9 kB / 1.023 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 4.222e-05/0.5922, allocations: 22.58 kB / 1.023 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.66e-05/0.5922, allocations: 8.797 kB / 1.023 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001131/0.5924, allocations: 85.16 kB / 1.023 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.136e-05/0.5924, allocations: 34.56 kB / 1.023 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.5924, allocations: 0 / 1.023 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of matching and sorting (n=1): time 0.0001604/0.5926, allocations: 33.7 kB / 1.023 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.92e-05/0.5926, allocations: 51.53 kB / 1.023 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.861e-05/0.5927, allocations: 109.8 kB / 1.023 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.886e-05/0.5927, allocations: 25.7 kB / 1.023 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.392e-05/0.5928, allocations: 84.05 kB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 6.291e-06/0.5928, allocations: 7.922 kB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.661e-05/0.5929, allocations: 17.7 kB / 1.023 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.000147/0.593, allocations: 326.7 kB / 1.023 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.782e-05/0.593, allocations: 7.938 kB / 1.023 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.857e-05/0.5931, allocations: 21.7 kB / 1.023 GB, free: 12 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.01e-05/0.5931, allocations: 21.72 kB / 1.023 GB, free: 11.97 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.5931, allocations: 0 / 1.023 GB, free: 11.97 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.833e-05/0.5932, allocations: 53.53 kB / 1.023 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.421e-05/0.5932, allocations: 4 kB / 1.023 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.5932, allocations: 4 kB / 1.023 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.889e-05/0.5933, allocations: 0 / 1.023 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.504e-05/0.5933, allocations: 8.062 kB / 1.023 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.669e-06/0.5933, allocations: 0 / 1.023 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.243e-05/0.5934, allocations: 7.938 kB / 1.023 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.007e-06/0.5934, allocations: 0 / 1.023 GB, free: 11.89 MB / 0.7794 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 8.881e-05/0.5935, allocations: 109.8 kB / 1.024 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.019e-05/0.5935, allocations: 7.984 kB / 1.024 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001195/0.5936, allocations: 120.9 kB / 1.024 GB, free: 11.63 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.528e-05/0.5937, allocations: 184.3 kB / 1.024 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.319e-05/0.5938, allocations: 180.2 kB / 1.024 GB, free: 11.26 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.755e-05/0.5939, allocations: 180.2 kB / 1.024 GB, free: 11.08 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002795/0.5942, allocations: 413.1 kB / 1.025 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.061e-05/0.5942, allocations: 101 kB / 1.025 GB, free: 10.51 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.092e-05/0.5943, allocations: 109 kB / 1.025 GB, free: 10.4 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.744e-05/0.5944, allocations: 184.2 kB / 1.025 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.886e-05/0.5945, allocations: 180.3 kB / 1.025 GB, free: 10.03 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.835e-05/0.5945, allocations: 184.2 kB / 1.025 GB, free: 9.84 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.752e-05/0.5946, allocations: 180.3 kB / 1.025 GB, free: 9.656 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001719/0.5948, allocations: 311.7 kB / 1.026 GB, free: 9.328 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 8.703e-05/0.5949, allocations: 182.1 kB / 1.026 GB, free: 9.125 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.594e-05/0.595, allocations: 180.2 kB / 1.026 GB, free: 8.941 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001576/0.5952, allocations: 105 kB / 1.026 GB, free: 8.832 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.717e-05/0.5952, allocations: 176.3 kB / 1.026 GB, free: 8.652 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.79e-05/0.5953, allocations: 116.9 kB / 1.026 GB, free: 8.531 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.658e-05/0.5954, allocations: 87.28 kB / 1.027 GB, free: 8.445 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5954, allocations: 0 / 1.027 GB, free: 8.445 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002479/0.5956, allocations: 16 kB / 1.027 GB, free: 8.43 MB / 0.7794 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.0002367/0.5959, allocations: 198.4 kB / 1.027 GB, free: 8.227 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 8.723e-05/0.596, allocations: 12.06 kB / 1.027 GB, free: 8.215 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.596, allocations: 4.062 kB / 1.027 GB, free: 8.211 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 3.908e-06/0.596, allocations: 3.938 kB / 1.027 GB, free: 8.207 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004486/0.5964, allocations: 466.5 kB / 1.027 GB, free: 7.75 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003025/0.5967, allocations: 189.7 kB / 1.027 GB, free: 7.539 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003069/0.5971, allocations: 0.6768 MB / 1.028 GB, free: 6.836 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.298e-05/0.5971, allocations: 7.859 kB / 1.028 GB, free: 6.828 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.835e-05/0.5971, allocations: 7.438 kB / 1.028 GB, free: 6.82 MB / 0.7794 GB Notification: Performance of SimCode: time 2.51e-07/0.5971, allocations: 0 / 1.028 GB, free: 6.82 MB / 0.7794 GB Notification: Performance of Templates: time 0.003163/0.6003, allocations: 0.6386 MB / 1.029 GB, free: 6.188 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.makefile (rm -f Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.sim & ./Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Media_Examples_WaterTemperatureEnthalpyInversion.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches