Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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.TemperatureDependentDensityProperties,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p|X.1.|d|eta|h|u|s|g|f|hIse|beta|kappa|ddpT|ddTp|dddX.1.|cp|cv|lambda|pMed|TMed|MM",fileNamePrefix="Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties") translateModel(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p|X.1.|d|eta|h|u|s|g|f|hIse|beta|kappa|ddpT|ddTp|dddX.1.|cp|cv|lambda|pMed|TMed|MM",fileNamePrefix="Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006999/0.006999, allocations: 103.8 kB / 15.73 MB, free: 6.051 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.001608/0.001608, allocations: 200 kB / 16.68 MB, free: 5.969 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.438/1.438, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.665/2.665, allocations: 461.9 MB / 0.7348 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001372/0.001372, allocations: 63.91 kB / 1.054 GB, free: 7.633 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9427/0.9441, allocations: 157.4 MB / 1.208 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties): time 0.005401/0.9495, allocations: 4.046 MB / 1.212 GB, free: 9.555 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002658/0.9522, allocations: 2.43 MB / 1.214 GB, free: 7.117 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.89e-05/0.9523, allocations: 0 / 1.214 GB, free: 7.117 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0002655/0.9526, allocations: 51.66 kB / 1.214 GB, free: 7.066 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0002693/0.9529, allocations: 103.3 kB / 1.214 GB, free: 6.965 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.001227/0.9541, allocations: 0.5126 MB / 1.215 GB, free: 6.453 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0003673/0.9545, allocations: 263.8 kB / 1.215 GB, free: 6.191 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 4.722e-05/0.9545, allocations: 9.562 kB / 1.215 GB, free: 6.184 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001802/0.9547, allocations: 115.6 kB / 1.215 GB, free: 6.07 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001508/0.9549, allocations: 91.66 kB / 1.215 GB, free: 5.98 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.27e-05/0.9549, allocations: 12 kB / 1.215 GB, free: 5.969 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008266/0.9558, allocations: 455.2 kB / 1.216 GB, free: 5.523 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 7.676e-05/0.9558, allocations: 43.83 kB / 1.216 GB, free: 5.48 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 8.793e-05/0.9559, allocations: 87.64 kB / 1.216 GB, free: 5.395 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0005597/0.9565, allocations: 400.8 kB / 1.216 GB, free: 5.008 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.9565, allocations: 3.984 kB / 1.216 GB, free: 5.004 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.243e-06/0.9565, allocations: 3.938 kB / 1.216 GB, free: 5 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.192e-06/0.9565, allocations: 0 / 1.216 GB, free: 5 MB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.0008388/0.9574, allocations: 0.5109 MB / 1.217 GB, free: 4.438 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.638e-05/0.9574, allocations: 8.031 kB / 1.217 GB, free: 4.43 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001911/0.9593, allocations: 172.5 kB / 1.217 GB, free: 4.262 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003136/0.9597, allocations: 216.1 kB / 1.217 GB, free: 4.012 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.526e-05/0.9597, allocations: 12.7 kB / 1.217 GB, free: 4 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.316e-05/0.9597, allocations: 12.38 kB / 1.217 GB, free: 3.988 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006557/0.9604, allocations: 312.3 kB / 1.217 GB, free: 3.648 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.658e-06/0.9604, allocations: 0 / 1.217 GB, free: 3.648 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.531e-05/0.9605, allocations: 12 kB / 1.217 GB, free: 3.637 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.161e-05/0.9605, allocations: 4 kB / 1.217 GB, free: 3.633 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007453/0.9612, allocations: 267.6 kB / 1.218 GB, free: 3.371 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001846/0.9631, allocations: 1.389 MB / 1.219 GB, free: 1.867 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006656/0.9638, allocations: 194.4 kB / 1.219 GB, free: 1.668 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002272/0.964, allocations: 76.81 kB / 1.219 GB, free: 1.59 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.863e-05/0.9641, allocations: 15.92 kB / 1.219 GB, free: 1.574 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.384e-05/0.9641, allocations: 34.56 kB / 1.219 GB, free: 1.531 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=18): time 1.182e-06/0.9641, allocations: 0 / 1.219 GB, free: 1.531 MB / 0.9356 GB Notification: Performance of matching and sorting (n=18): time 0.0008138/0.9649, allocations: 239.4 kB / 1.22 GB, free: 1.293 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.795e-05/0.965, allocations: 59.41 kB / 1.22 GB, free: 1.223 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001403/0.9651, allocations: 168 kB / 1.22 GB, free: 1.051 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.772e-05/0.9652, allocations: 33.7 kB / 1.22 GB, free: 1.012 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 7.775e-05/0.9652, allocations: 120 kB / 1.22 GB, free: 0.8906 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 5.66e-05/0.9653, allocations: 63.09 kB / 1.22 GB, free: 0.8281 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.995e-05/0.9654, allocations: 49.94 kB / 1.22 GB, free: 0.7695 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001652/0.9656, allocations: 326.8 kB / 1.22 GB, free: 452 kB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002139/0.9658, allocations: 64.42 kB / 1.22 GB, free: 388 kB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002573/0.966, allocations: 134.3 kB / 1.221 GB, free: 220 kB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006018/0.9667, allocations: 225.1 kB / 1.221 GB, free: 15.96 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.9667, allocations: 4 kB / 1.221 GB, free: 15.96 MB / 0.9512 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0007059/0.9674, allocations: 254.7 kB / 1.221 GB, free: 15.7 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.634e-05/0.9674, allocations: 4 kB / 1.221 GB, free: 15.7 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.234e-06/0.9674, allocations: 4 kB / 1.221 GB, free: 15.7 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.63e-05/0.9674, allocations: 4 kB / 1.221 GB, free: 15.69 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003529/0.9678, allocations: 63.89 kB / 1.221 GB, free: 15.63 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.327e-06/0.9678, allocations: 4.312 kB / 1.221 GB, free: 15.62 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002304/0.9681, allocations: 39.67 kB / 1.221 GB, free: 15.59 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.179e-05/0.9681, allocations: 11.94 kB / 1.221 GB, free: 15.57 MB / 0.9512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (28): * Single equations (assignments): 28 * 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.0001199/0.9682, allocations: 129.8 kB / 1.221 GB, free: 15.44 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.123e-05/0.9683, allocations: 11.91 kB / 1.221 GB, free: 15.43 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007105/0.969, allocations: 232.2 kB / 1.221 GB, free: 15.19 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.68e-06/0.969, allocations: 4 kB / 1.221 GB, free: 15.19 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/0.969, allocations: 4 kB / 1.221 GB, free: 15.18 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.969, allocations: 0 / 1.221 GB, free: 15.18 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003426/0.9694, allocations: 249.3 kB / 1.222 GB, free: 14.89 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.9694, allocations: 0 / 1.222 GB, free: 14.89 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002993/0.9697, allocations: 43.91 kB / 1.222 GB, free: 14.85 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.9697, allocations: 7.938 kB / 1.222 GB, free: 14.84 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.014e-05/0.9697, allocations: 4 kB / 1.222 GB, free: 14.84 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.023e-06/0.9697, allocations: 0 / 1.222 GB, free: 14.84 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/0.9697, allocations: 7.984 kB / 1.222 GB, free: 14.83 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006916/0.9704, allocations: 297.6 kB / 1.222 GB, free: 14.52 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001083/0.9705, allocations: 104.8 kB / 1.222 GB, free: 14.4 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.23e-05/0.9706, allocations: 8 kB / 1.222 GB, free: 14.39 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002689/0.9709, allocations: 19.98 kB / 1.222 GB, free: 14.38 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.857e-05/0.9709, allocations: 7.984 kB / 1.222 GB, free: 14.37 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.752e-05/0.9709, allocations: 19.98 kB / 1.222 GB, free: 14.35 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0001221/0.9711, allocations: 117.6 kB / 1.222 GB, free: 14.23 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.61e-07/0.9711, allocations: 0 / 1.222 GB, free: 14.23 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.000369/0.9714, allocations: 64.12 kB / 1.222 GB, free: 14.17 MB / 0.9512 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 (20): * Single equations (assignments): 20 * 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.0002231/0.9717, allocations: 138.9 kB / 1.223 GB, free: 14.03 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0005594/0.9722, allocations: 177.5 kB / 1.223 GB, free: 13.86 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.9723, allocations: 0.625 kB / 1.223 GB, free: 13.86 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0002394/0.9725, allocations: 95.83 kB / 1.223 GB, free: 13.77 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004895/0.973, allocations: 51.89 kB / 1.223 GB, free: 13.71 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001003/0.974, allocations: 415.3 kB / 1.223 GB, free: 13.29 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002963/0.9743, allocations: 0.7134 MB / 1.224 GB, free: 12.55 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0002495/0.9746, allocations: 49.92 kB / 1.224 GB, free: 12.5 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.192e-05/0.9747, allocations: 23.42 kB / 1.224 GB, free: 12.47 MB / 0.9512 GB Notification: Performance of SimCode: time 2.6e-07/0.9747, allocations: 8 kB / 1.224 GB, free: 12.46 MB / 0.9512 GB Notification: Performance of Templates: time 0.007324/0.982, allocations: 3.476 MB / 1.227 GB, free: 9.062 MB / 0.9512 GB make -j1 -f Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.makefile (rm -f Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.pipe ; mkfifo Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.pipe >> ../files/Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.sim & ./Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityProperties.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches