Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.001145/0.001145, allocations: 105.1 kB / 16.41 MB, free: 6.41 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.001229/0.001229, allocations: 189.7 kB / 17.35 MB, free: 5.695 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.357/1.357, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.289/2.289, allocations: 390.2 MB / 0.6655 GB, free: 0.6445 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001489/0.001489, allocations: 55.91 kB / 0.9515 GB, free: 7.652 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7924/0.7939, allocations: 140.4 MB / 1.089 GB, free: 5.523 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion): time 0.004383/0.7983, allocations: 3.289 MB / 1.092 GB, free: 3.188 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 9.905e-05/0.7985, allocations: 51.06 kB / 1.092 GB, free: 3.156 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.724e-05/0.7985, allocations: 0 / 1.092 GB, free: 3.156 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001078/0.7986, allocations: 5.391 kB / 1.092 GB, free: 3.152 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.551e-05/0.7987, allocations: 17.17 kB / 1.092 GB, free: 3.141 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005265/0.7992, allocations: 177.4 kB / 1.092 GB, free: 3.055 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 9.457e-05/0.7993, allocations: 37.31 kB / 1.092 GB, free: 3.039 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 3.988e-05/0.7994, allocations: 2.109 kB / 1.092 GB, free: 3.039 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 4.264e-05/0.7994, allocations: 19.58 kB / 1.092 GB, free: 3.031 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.572e-05/0.7995, allocations: 16.19 kB / 1.092 GB, free: 3.023 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.407e-05/0.7995, allocations: 1.469 kB / 1.092 GB, free: 3.023 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003465/0.7999, allocations: 170.3 kB / 1.092 GB, free: 2.953 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.209e-05/0.7999, allocations: 9.125 kB / 1.092 GB, free: 2.949 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.641e-05/0.8, allocations: 10.16 kB / 1.092 GB, free: 2.945 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002953/0.8003, allocations: 140.6 kB / 1.092 GB, free: 2.906 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.8003, allocations: 0.8125 kB / 1.092 GB, free: 2.906 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.844e-06/0.8003, allocations: 0 / 1.092 GB, free: 2.906 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.011e-06/0.8003, allocations: 0.6875 kB / 1.092 GB, free: 2.906 MB / 0.8575 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.0003452/0.8007, allocations: 347 kB / 1.093 GB, free: 2.543 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.8007, allocations: 10.41 kB / 1.093 GB, free: 2.543 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.934e-05/0.8008, allocations: 6.5 kB / 1.093 GB, free: 2.539 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.698e-05/0.8008, allocations: 165.9 kB / 1.093 GB, free: 2.34 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.543e-05/0.8009, allocations: 28.59 kB / 1.093 GB, free: 2.309 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.3e-05/0.8009, allocations: 1.219 kB / 1.093 GB, free: 2.309 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001251/0.801, allocations: 55.8 kB / 1.093 GB, free: 2.262 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.735e-06/0.8011, allocations: 0 / 1.093 GB, free: 2.262 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.104e-05/0.8011, allocations: 0.75 kB / 1.093 GB, free: 2.262 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.994e-05/0.8011, allocations: 6.203 kB / 1.093 GB, free: 2.258 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.04e-05/0.8012, allocations: 12.27 kB / 1.093 GB, free: 2.258 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005261/0.8017, allocations: 0.5809 MB / 1.094 GB, free: 1.602 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 3.647e-05/0.8017, allocations: 21.08 kB / 1.094 GB, free: 1.574 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.38e-05/0.8018, allocations: 6.625 kB / 1.094 GB, free: 1.566 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001637/0.8019, allocations: 343.1 kB / 1.094 GB, free: 1.184 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.315e-05/0.8019, allocations: 35.69 kB / 1.094 GB, free: 1.141 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.802, allocations: 0 / 1.094 GB, free: 1.141 MB / 0.8575 GB Notification: Performance of matching and sorting (n=1): time 0.0001408/0.8021, allocations: 33.3 kB / 1.094 GB, free: 1.109 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.198e-05/0.8021, allocations: 57.03 kB / 1.094 GB, free: 1.043 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.537e-05/0.8022, allocations: 110.1 kB / 1.094 GB, free: 0.9336 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.041e-05/0.8022, allocations: 26.55 kB / 1.094 GB, free: 0.9023 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.147e-05/0.8023, allocations: 85.64 kB / 1.094 GB, free: 0.8164 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 6.803e-06/0.8023, allocations: 5.484 kB / 1.094 GB, free: 0.8125 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.858e-05/0.8023, allocations: 23.31 kB / 1.094 GB, free: 0.7891 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.245e-05/0.8023, allocations: 316.5 kB / 1.095 GB, free: 484 kB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.487e-05/0.8024, allocations: 2.938 kB / 1.095 GB, free: 484 kB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.19e-05/0.8024, allocations: 19.39 kB / 1.095 GB, free: 464 kB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.124e-05/0.8024, allocations: 21.86 kB / 1.095 GB, free: 444 kB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.8024, allocations: 4 kB / 1.095 GB, free: 440 kB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.142e-05/0.8025, allocations: 49.98 kB / 1.095 GB, free: 400 kB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/0.8025, allocations: 6.578 kB / 1.095 GB, free: 400 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.8025, allocations: 0 / 1.095 GB, free: 400 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.192e-05/0.8026, allocations: 1.094 kB / 1.095 GB, free: 400 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.302e-05/0.8026, allocations: 6.484 kB / 1.095 GB, free: 400 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.775e-05/0.8026, allocations: 1.031 kB / 1.095 GB, free: 400 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.109e-05/0.8027, allocations: 8.938 kB / 1.095 GB, free: 392 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.01e-05/0.8027, allocations: 2.828 kB / 1.095 GB, free: 392 kB / 0.8575 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 4.601e-05/0.8027, allocations: 116.4 kB / 1.095 GB, free: 268 kB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.656e-05/0.8027, allocations: 1.125 kB / 1.095 GB, free: 268 kB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.444e-05/0.8028, allocations: 118.6 kB / 1.095 GB, free: 144 kB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.314e-05/0.8029, allocations: 182 kB / 1.095 GB, free: 15.96 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-05/0.803, allocations: 186 kB / 1.095 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.084e-05/0.803, allocations: 182.2 kB / 1.096 GB, free: 15.59 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002134/0.8033, allocations: 412.3 kB / 1.096 GB, free: 15.13 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.381e-05/0.8033, allocations: 106.7 kB / 1.096 GB, free: 15.02 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.704e-05/0.8033, allocations: 102.9 kB / 1.096 GB, free: 14.92 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.231e-05/0.8034, allocations: 181.2 kB / 1.096 GB, free: 14.73 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.782e-05/0.8035, allocations: 178 kB / 1.096 GB, free: 14.55 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.842e-05/0.8035, allocations: 190.6 kB / 1.097 GB, free: 14.36 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.765e-05/0.8036, allocations: 182 kB / 1.097 GB, free: 14.18 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001286/0.8037, allocations: 306.1 kB / 1.097 GB, free: 13.86 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 7.309e-05/0.8038, allocations: 184.2 kB / 1.097 GB, free: 13.66 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.862e-05/0.8039, allocations: 190.6 kB / 1.097 GB, free: 13.47 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001557/0.804, allocations: 105.7 kB / 1.098 GB, free: 13.36 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.151e-05/0.8041, allocations: 181 kB / 1.098 GB, free: 13.18 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.972e-05/0.8042, allocations: 106.7 kB / 1.098 GB, free: 13.07 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 4.467e-05/0.8042, allocations: 86.3 kB / 1.098 GB, free: 12.99 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8042, allocations: 1.188 kB / 1.098 GB, free: 12.99 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003107/0.8045, allocations: 32 kB / 1.098 GB, free: 12.98 MB / 0.8731 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.0003152/0.8049, allocations: 241.1 kB / 1.098 GB, free: 12.8 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 7.882e-05/0.8049, allocations: 10.86 kB / 1.098 GB, free: 12.79 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 4.568e-06/0.805, allocations: 0.625 kB / 1.098 GB, free: 12.79 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 2.414e-06/0.805, allocations: 4.625 kB / 1.098 GB, free: 12.79 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004455/0.8054, allocations: 464.4 kB / 1.099 GB, free: 12.34 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002817/0.8057, allocations: 205.3 kB / 1.099 GB, free: 12.12 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002128/0.8059, allocations: 0.6783 MB / 1.099 GB, free: 11.43 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.396e-05/0.806, allocations: 10.45 kB / 1.099 GB, free: 11.42 MB / 0.8731 GB Notification: Performance of SimCode: time 2.2e-07/0.806, allocations: 0 / 1.099 GB, free: 11.42 MB / 0.8731 GB Notification: Performance of Templates: time 0.003387/0.8094, allocations: 1.196 MB / 1.101 GB, free: 11.25 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.makefile (rm -f Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe >> ../files/Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.sim & ./Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityTemperatureEnthalpyInversion.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches