Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.0008626/0.0008629, allocations: 91.77 kB / 15.36 MB, free: 0.7383 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.006214/0.006214, allocations: 170.8 kB / 16.26 MB, free: 6.613 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.616/1.616, allocations: 223.3 MB / 240.3 MB, free: 5.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 3.163/3.163, allocations: 470.6 MB / 0.7442 GB, free: 8.859 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004082/0.0004082, allocations: 10.44 kB / 0.9123 GB, free: 34.09 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4022/0.4026, allocations: 161.4 MB / 1.07 GB, free: 11.41 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion): time 0.004613/0.4073, allocations: 2.993 MB / 1.073 GB, free: 8.398 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0001036/0.4074, allocations: 47.88 kB / 1.073 GB, free: 8.352 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.583e-05/0.4074, allocations: 0 / 1.073 GB, free: 8.352 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001122/0.4076, allocations: 3.938 kB / 1.073 GB, free: 8.348 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.928e-05/0.4076, allocations: 11.97 kB / 1.073 GB, free: 8.336 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005643/0.4082, allocations: 173.4 kB / 1.073 GB, free: 8.168 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001068/0.4083, allocations: 59.81 kB / 1.073 GB, free: 8.109 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 3.661e-05/0.4084, allocations: 4 kB / 1.073 GB, free: 8.105 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 4.187e-05/0.4084, allocations: 11.98 kB / 1.073 GB, free: 8.094 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.659e-05/0.4085, allocations: 15.92 kB / 1.073 GB, free: 8.078 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.075e-05/0.4085, allocations: 0 / 1.073 GB, free: 8.078 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003646/0.4089, allocations: 171.5 kB / 1.073 GB, free: 7.91 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 5.149e-05/0.409, allocations: 15.97 kB / 1.073 GB, free: 7.895 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.849e-05/0.409, allocations: 33.7 kB / 1.073 GB, free: 7.855 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002728/0.4093, allocations: 135.9 kB / 1.073 GB, free: 7.723 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.4093, allocations: 0 / 1.073 GB, free: 7.723 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.953e-06/0.4093, allocations: 4 kB / 1.073 GB, free: 7.719 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 3.707e-06/0.4093, allocations: 0 / 1.073 GB, free: 7.719 MB / 0.8262 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.4098, allocations: 336.6 kB / 1.074 GB, free: 7.344 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.232e-05/0.4098, allocations: 8.031 kB / 1.074 GB, free: 7.336 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.811e-05/0.4099, allocations: 0.9375 kB / 1.074 GB, free: 7.336 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001491/0.41, allocations: 168.4 kB / 1.074 GB, free: 7.133 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.732e-05/0.4101, allocations: 30.27 kB / 1.074 GB, free: 7.098 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.437e-06/0.4101, allocations: 4.312 kB / 1.074 GB, free: 7.094 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001432/0.4103, allocations: 53.61 kB / 1.074 GB, free: 7.035 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.698e-06/0.4103, allocations: 0 / 1.074 GB, free: 7.035 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.413e-05/0.4103, allocations: 3.938 kB / 1.074 GB, free: 7.031 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.038e-05/0.4103, allocations: 0 / 1.074 GB, free: 7.031 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.173e-05/0.4104, allocations: 15.98 kB / 1.074 GB, free: 7.016 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007579/0.4111, allocations: 0.591 MB / 1.075 GB, free: 6.301 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 3.879e-05/0.4112, allocations: 14.58 kB / 1.075 GB, free: 6.277 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.878e-05/0.4112, allocations: 8.922 kB / 1.075 GB, free: 6.266 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003661/0.4116, allocations: 344.4 kB / 1.075 GB, free: 5.855 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.562e-05/0.4116, allocations: 34.5 kB / 1.075 GB, free: 5.812 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=1): time 1.102e-06/0.4116, allocations: 0 / 1.075 GB, free: 5.812 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1): time 0.000155/0.4118, allocations: 37.7 kB / 1.075 GB, free: 5.77 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.736e-05/0.4119, allocations: 51.41 kB / 1.075 GB, free: 5.707 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001373/0.412, allocations: 101.8 kB / 1.075 GB, free: 5.598 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.056e-05/0.412, allocations: 29.7 kB / 1.075 GB, free: 5.562 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.788e-05/0.4121, allocations: 91.98 kB / 1.075 GB, free: 5.469 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.17e-06/0.4121, allocations: 0 / 1.075 GB, free: 5.469 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.41e-05/0.4122, allocations: 9.719 kB / 1.075 GB, free: 5.453 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0003026/0.4125, allocations: 322.8 kB / 1.076 GB, free: 5.129 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.252e-05/0.4125, allocations: 128 / 1.076 GB, free: 5.129 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.844e-05/0.4125, allocations: 25.66 kB / 1.076 GB, free: 5.098 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.43e-05/0.4126, allocations: 21.72 kB / 1.076 GB, free: 5.07 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.4126, allocations: 0 / 1.076 GB, free: 5.07 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.536e-05/0.4127, allocations: 49.53 kB / 1.076 GB, free: 5.016 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.919e-05/0.4127, allocations: 5.25 kB / 1.076 GB, free: 5.012 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-06/0.4127, allocations: 4 kB / 1.076 GB, free: 5.008 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.187e-05/0.4127, allocations: 4.062 kB / 1.076 GB, free: 5.004 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.944e-05/0.4128, allocations: 7.984 kB / 1.076 GB, free: 4.996 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.275e-06/0.4128, allocations: 0 / 1.076 GB, free: 4.996 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.523e-05/0.4128, allocations: 15.88 kB / 1.076 GB, free: 4.98 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.017e-06/0.4128, allocations: 0 / 1.076 GB, free: 4.98 MB / 0.8262 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 0.0001572/0.413, allocations: 109.8 kB / 1.076 GB, free: 4.863 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.418e-05/0.413, allocations: 4 kB / 1.076 GB, free: 4.859 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001393/0.4132, allocations: 128.9 kB / 1.076 GB, free: 4.727 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001025/0.4133, allocations: 180.3 kB / 1.076 GB, free: 4.543 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001005/0.4134, allocations: 180.2 kB / 1.076 GB, free: 4.359 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001004/0.4135, allocations: 176.3 kB / 1.077 GB, free: 4.18 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003019/0.4138, allocations: 409.2 kB / 1.077 GB, free: 3.723 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.312e-05/0.4139, allocations: 104.9 kB / 1.077 GB, free: 3.613 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.495e-05/0.4139, allocations: 113 kB / 1.077 GB, free: 3.496 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.914e-05/0.414, allocations: 180.2 kB / 1.077 GB, free: 3.312 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.707e-05/0.4141, allocations: 176.3 kB / 1.077 GB, free: 3.133 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.657e-05/0.4142, allocations: 176.3 kB / 1.078 GB, free: 2.953 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.007e-05/0.4143, allocations: 184.4 kB / 1.078 GB, free: 2.766 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002097/0.4145, allocations: 319.7 kB / 1.078 GB, free: 2.43 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001215/0.4147, allocations: 186 kB / 1.078 GB, free: 2.223 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.867e-05/0.4148, allocations: 184.2 kB / 1.078 GB, free: 2.035 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001853/0.415, allocations: 109.2 kB / 1.079 GB, free: 1.922 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001056/0.4151, allocations: 188.3 kB / 1.079 GB, free: 1.73 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.777e-05/0.4151, allocations: 104.9 kB / 1.079 GB, free: 1.621 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.275e-05/0.4152, allocations: 87.27 kB / 1.079 GB, free: 1.535 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4152, allocations: 0 / 1.079 GB, free: 1.535 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003362/0.4156, allocations: 32 kB / 1.079 GB, free: 1.504 MB / 0.8262 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.0003352/0.4159, allocations: 247.9 kB / 1.079 GB, free: 1.25 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 8.767e-05/0.416, allocations: 4 kB / 1.079 GB, free: 1.246 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.416, allocations: 0 / 1.079 GB, free: 1.246 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 3.837e-06/0.416, allocations: 4 kB / 1.079 GB, free: 1.242 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005454/0.4166, allocations: 0.5302 MB / 1.08 GB, free: 0.707 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003186/0.4169, allocations: 187.8 kB / 1.08 GB, free: 0.4922 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003653/0.4173, allocations: 0.677 MB / 1.081 GB, free: 15.79 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 4.624e-05/0.4173, allocations: 10.11 kB / 1.081 GB, free: 15.78 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.909e-05/0.4174, allocations: 7.438 kB / 1.081 GB, free: 15.77 MB / 0.8419 GB Notification: Performance of SimCode: time 3.41e-07/0.4174, allocations: 0 / 1.081 GB, free: 15.77 MB / 0.8419 GB Notification: Performance of Templates: time 0.004647/0.422, allocations: 1.186 MB / 1.082 GB, free: 14.64 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.makefile (rm -f Buildings_11_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_11_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_11_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe >> ../files/Buildings_11_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.sim & ./Buildings_11_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityTemperatureEnthalpyInversion.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches