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.001312/0.001312, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001926/0.001926, allocations: 197.2 kB / 16.26 MB, free: 6.625 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.427/1.427, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.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.583/2.583, allocations: 390.2 MB / 0.6643 GB, free: 0.5547 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001597/0.001597, allocations: 63.91 kB / 0.812 GB, free: 14.77 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8106/0.8122, allocations: 140.4 MB / 0.9491 GB, free: 9.082 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion): time 0.004291/0.8166, allocations: 3.345 MB / 0.9524 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 9.108e-05/0.8167, allocations: 55.84 kB / 0.9524 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.418e-05/0.8167, allocations: 0 / 0.9524 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001007/0.8168, allocations: 0 / 0.9524 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.404e-05/0.8169, allocations: 18.72 kB / 0.9524 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005054/0.8174, allocations: 171.2 kB / 0.9526 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.216e-05/0.8175, allocations: 38.33 kB / 0.9526 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.417e-05/0.8176, allocations: 5.25 kB / 0.9526 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.141e-05/0.8176, allocations: 13.81 kB / 0.9526 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.87e-05/0.8177, allocations: 14.09 kB / 0.9527 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.168e-05/0.8177, allocations: 1.281 kB / 0.9527 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003179/0.818, allocations: 172.6 kB / 0.9528 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.484e-05/0.8181, allocations: 10.16 kB / 0.9528 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.987e-05/0.8181, allocations: 8.391 kB / 0.9528 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002607/0.8184, allocations: 144.7 kB / 0.953 GB, free: 6 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.8184, allocations: 0 / 0.953 GB, free: 6 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.132e-06/0.8184, allocations: 0 / 0.953 GB, free: 6 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.17e-06/0.8184, allocations: 5 kB / 0.953 GB, free: 5.996 MB / 0.7169 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.0003773/0.8188, allocations: 343.3 kB / 0.9533 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.533e-05/0.8188, allocations: 9.688 kB / 0.9533 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.998e-05/0.8189, allocations: 2.562 kB / 0.9533 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.534e-05/0.819, allocations: 173.8 kB / 0.9535 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.806e-05/0.819, allocations: 31.67 kB / 0.9535 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.171e-05/0.8191, allocations: 384 / 0.9535 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001217/0.8192, allocations: 43.28 kB / 0.9536 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.697e-06/0.8192, allocations: 0 / 0.9536 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.404e-05/0.8192, allocations: 1.344 kB / 0.9536 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.268e-05/0.8192, allocations: 1.469 kB / 0.9536 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.897e-05/0.8193, allocations: 17.23 kB / 0.9536 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005537/0.8199, allocations: 0.5758 MB / 0.9541 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 3.621e-05/0.8199, allocations: 28.86 kB / 0.9542 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.427e-05/0.8199, allocations: 6.203 kB / 0.9542 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001548/0.8201, allocations: 346 kB / 0.9545 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.725e-05/0.8201, allocations: 36.06 kB / 0.9545 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=1): time 1.193e-06/0.8201, allocations: 0 / 0.9545 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1): time 0.0001464/0.8203, allocations: 40.3 kB / 0.9546 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.832e-05/0.8203, allocations: 59.47 kB / 0.9546 GB, free: 4.078 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.19e-05/0.8204, allocations: 111.5 kB / 0.9547 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.262e-05/0.8204, allocations: 26.89 kB / 0.9548 GB, free: 3.934 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.635e-05/0.8204, allocations: 89.41 kB / 0.9548 GB, free: 3.844 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 5.62e-06/0.8205, allocations: 0 / 0.9548 GB, free: 3.844 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.923e-05/0.8205, allocations: 18.16 kB / 0.9549 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.156e-05/0.8205, allocations: 318.8 kB / 0.9552 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.723e-05/0.8206, allocations: 3.25 kB / 0.9552 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.013e-05/0.8206, allocations: 16.81 kB / 0.9552 GB, free: 3.484 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.189e-05/0.8206, allocations: 24.27 kB / 0.9552 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.8206, allocations: 1.156 kB / 0.9552 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 6.627e-05/0.8207, allocations: 45.92 kB / 0.9553 GB, free: 3.422 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.409e-05/0.8207, allocations: 5.375 kB / 0.9553 GB, free: 3.422 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.8207, allocations: 5.391 kB / 0.9553 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.467e-05/0.8208, allocations: 4.062 kB / 0.9553 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.312e-05/0.8208, allocations: 5.25 kB / 0.9553 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.554e-06/0.8208, allocations: 1.125 kB / 0.9553 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.766e-05/0.8208, allocations: 1.312 kB / 0.9553 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.077e-05/0.8209, allocations: 1.531 kB / 0.9553 GB, free: 3.414 MB / 0.7169 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 5.274e-05/0.8209, allocations: 119.1 kB / 0.9554 GB, free: 3.289 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.63e-05/0.8209, allocations: 5.312 kB / 0.9554 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.96e-05/0.821, allocations: 119.9 kB / 0.9555 GB, free: 3.16 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.188e-05/0.8211, allocations: 181.3 kB / 0.9557 GB, free: 2.977 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.902e-05/0.8211, allocations: 181.7 kB / 0.9559 GB, free: 2.793 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.967e-05/0.8212, allocations: 181.7 kB / 0.956 GB, free: 2.609 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001354/0.8213, allocations: 407.4 kB / 0.9564 GB, free: 2.156 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.919e-05/0.8213, allocations: 110.1 kB / 0.9565 GB, free: 2.043 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.891e-05/0.8213, allocations: 110.5 kB / 0.9566 GB, free: 1.93 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.063e-05/0.8214, allocations: 180.3 kB / 0.9568 GB, free: 1.746 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.296e-05/0.8214, allocations: 181.6 kB / 0.957 GB, free: 1.562 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-05/0.8215, allocations: 181.9 kB / 0.9572 GB, free: 1.379 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.768e-05/0.8215, allocations: 176.3 kB / 0.9573 GB, free: 1.199 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.379e-05/0.8216, allocations: 316.7 kB / 0.9576 GB, free: 0.8711 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.755e-05/0.8216, allocations: 179.5 kB / 0.9578 GB, free: 0.6719 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.411e-05/0.8217, allocations: 185.2 kB / 0.958 GB, free: 496 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001309/0.8218, allocations: 103.6 kB / 0.9581 GB, free: 388 kB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.772e-05/0.8218, allocations: 186.2 kB / 0.9582 GB, free: 196 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.518e-05/0.8219, allocations: 105 kB / 0.9583 GB, free: 84 kB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.176e-05/0.8219, allocations: 88.36 kB / 0.9584 GB, free: 0 / 0.7169 GB Notification: Performance of sort global known variables: time 1.6e-07/0.8219, allocations: 0 / 0.9584 GB, free: 0 / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003104/0.8222, allocations: 41.06 kB / 0.9585 GB, free: 15.98 MB / 0.7325 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.0002996/0.8225, allocations: 234.8 kB / 0.9587 GB, free: 15.8 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 8.135e-05/0.8226, allocations: 17.11 kB / 0.9587 GB, free: 15.79 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.8226, allocations: 1.219 kB / 0.9587 GB, free: 15.79 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 1.262e-06/0.8226, allocations: 0 / 0.9587 GB, free: 15.79 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004535/0.8231, allocations: 463.1 kB / 0.9592 GB, free: 15.33 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002716/0.8234, allocations: 187.9 kB / 0.9593 GB, free: 15.14 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002762/0.8237, allocations: 0.6722 MB / 0.96 GB, free: 14.45 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 5.412e-05/0.8237, allocations: 14.09 kB / 0.96 GB, free: 14.44 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.434e-05/0.8238, allocations: 8.688 kB / 0.96 GB, free: 14.43 MB / 0.7325 GB Notification: Performance of SimCode: time 2.7e-07/0.8238, allocations: 3.938 kB / 0.96 GB, free: 14.43 MB / 0.7325 GB Notification: Performance of Templates: time 0.004147/0.8279, allocations: 1.195 MB / 0.9612 GB, free: 13.82 MB / 0.7325 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/jenkins/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