Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Media.Examples.WaterProperties.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.Examples.WaterProperties,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.Examples.WaterProperties") translateModel(Buildings.Media.Examples.WaterProperties,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.Examples.WaterProperties") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006207/0.006207, allocations: 99.34 kB / 15.73 MB, free: 6.059 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.001269/0.001269, allocations: 195 kB / 16.67 MB, free: 5.977 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.385/1.385, 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 12.0.0-master/package.mo): time 2.706/2.706, allocations: 472.6 MB / 0.7453 GB, free: 496 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001205/0.001205, allocations: 63.91 kB / 1.069 GB, free: 9.535 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8852/0.8864, allocations: 159.9 MB / 1.226 GB, free: 13.48 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterProperties): time 0.006089/0.8925, allocations: 4.737 MB / 1.23 GB, free: 8.707 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.002782/0.8953, allocations: 2.695 MB / 1.233 GB, free: 6.004 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001274/0.8955, allocations: 4 kB / 1.233 GB, free: 6 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0002818/0.8958, allocations: 51.61 kB / 1.233 GB, free: 5.949 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0002896/0.8961, allocations: 95.36 kB / 1.233 GB, free: 5.855 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.001287/0.8974, allocations: 0.4968 MB / 1.234 GB, free: 5.363 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0003451/0.8977, allocations: 224 kB / 1.234 GB, free: 5.145 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 5.975e-05/0.8978, allocations: 25.53 kB / 1.234 GB, free: 5.121 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002193/0.898, allocations: 119.5 kB / 1.234 GB, free: 5.004 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001479/0.8982, allocations: 83.67 kB / 1.234 GB, free: 4.922 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 2.939e-05/0.8982, allocations: 8 kB / 1.234 GB, free: 4.914 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007988/0.899, allocations: 371.3 kB / 1.234 GB, free: 4.551 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 8.101e-05/0.8991, allocations: 31.89 kB / 1.234 GB, free: 4.52 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0001059/0.8992, allocations: 83.59 kB / 1.234 GB, free: 4.438 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0007155/0.9, allocations: 363.5 kB / 1.235 GB, free: 4.086 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.9, allocations: 4 kB / 1.235 GB, free: 4.082 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.283e-06/0.9, allocations: 0 / 1.235 GB, free: 4.082 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 7.404e-06/0.9, allocations: 0 / 1.235 GB, free: 4.082 MB / 0.9512 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.0007264/0.9007, allocations: 0.5025 MB / 1.235 GB, free: 3.527 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.585e-05/0.9008, allocations: 12.03 kB / 1.235 GB, free: 3.516 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001706/0.9009, allocations: 20.84 kB / 1.235 GB, free: 3.496 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002645/0.9012, allocations: 216.1 kB / 1.235 GB, free: 3.246 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.534e-05/0.9012, allocations: 12.7 kB / 1.235 GB, free: 3.234 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.107e-05/0.9013, allocations: 24.38 kB / 1.236 GB, free: 3.211 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000375/0.9016, allocations: 248.2 kB / 1.236 GB, free: 2.949 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.9017, allocations: 0 / 1.236 GB, free: 2.949 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.289e-05/0.9017, allocations: 12 kB / 1.236 GB, free: 2.938 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.639e-05/0.9017, allocations: 7.984 kB / 1.236 GB, free: 2.93 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004747/0.9022, allocations: 431.5 kB / 1.236 GB, free: 2.508 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001053/0.9033, allocations: 0.9565 MB / 1.237 GB, free: 1.461 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000268/0.9036, allocations: 162.4 kB / 1.237 GB, free: 1.297 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001008/0.9037, allocations: 60.88 kB / 1.237 GB, free: 1.234 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001372/0.905, allocations: 1.817 MB / 1.239 GB, free: 15.06 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.416e-05/0.9051, allocations: 34.56 kB / 1.239 GB, free: 15.02 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=15): time 2.585e-06/0.9051, allocations: 4 kB / 1.239 GB, free: 15.01 MB / 0.9669 GB Notification: Performance of matching and sorting (n=15): time 0.0003228/0.9054, allocations: 153.4 kB / 1.239 GB, free: 14.86 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.024e-05/0.9055, allocations: 59.28 kB / 1.239 GB, free: 14.79 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001491/0.9056, allocations: 171.3 kB / 1.24 GB, free: 14.61 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.187e-05/0.9057, allocations: 25.7 kB / 1.24 GB, free: 14.57 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 9.999e-05/0.9058, allocations: 152 kB / 1.24 GB, free: 14.42 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.776e-05/0.9058, allocations: 55.53 kB / 1.24 GB, free: 14.37 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.028e-05/0.9059, allocations: 53.66 kB / 1.24 GB, free: 14.31 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.000107/0.906, allocations: 326.8 kB / 1.24 GB, free: 13.98 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.565e-05/0.9061, allocations: 35.97 kB / 1.24 GB, free: 13.95 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001314/0.9062, allocations: 144 kB / 1.24 GB, free: 13.76 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000228/0.9065, allocations: 197.5 kB / 1.24 GB, free: 13.52 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-06/0.9065, allocations: 4 kB / 1.24 GB, free: 13.51 MB / 0.9669 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003101/0.9068, allocations: 209.2 kB / 1.241 GB, free: 13.3 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/0.9068, allocations: 8.469 kB / 1.241 GB, free: 13.29 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.9068, allocations: 8 kB / 1.241 GB, free: 13.29 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.628e-05/0.9069, allocations: 4 kB / 1.241 GB, free: 13.28 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001683/0.907, allocations: 55.86 kB / 1.241 GB, free: 13.23 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.036e-05/0.9071, allocations: 11.98 kB / 1.241 GB, free: 13.21 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000114/0.9072, allocations: 31.73 kB / 1.241 GB, free: 13.18 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.479e-05/0.9072, allocations: 12 kB / 1.241 GB, free: 13.17 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (30): * Single equations (assignments): 29 * Array equations: 1 * 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.000119/0.9073, allocations: 130.3 kB / 1.241 GB, free: 13.04 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.11e-05/0.9074, allocations: 11.95 kB / 1.241 GB, free: 13.02 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003271/0.9077, allocations: 165.2 kB / 1.241 GB, free: 12.86 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.187e-05/0.9077, allocations: 7.938 kB / 1.241 GB, free: 12.85 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.732e-06/0.9078, allocations: 0 / 1.241 GB, free: 12.85 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.9078, allocations: 3.984 kB / 1.241 GB, free: 12.85 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002674/0.908, allocations: 217.5 kB / 1.241 GB, free: 12.59 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.908, allocations: 0 / 1.241 GB, free: 12.59 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.969e-05/0.9081, allocations: 20 kB / 1.241 GB, free: 12.57 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/0.9082, allocations: 0 / 1.241 GB, free: 12.57 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.635e-05/0.9082, allocations: 11.98 kB / 1.241 GB, free: 12.55 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.364e-06/0.9082, allocations: 7.922 kB / 1.241 GB, free: 12.55 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.9082, allocations: 4 kB / 1.241 GB, free: 12.54 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002707/0.9085, allocations: 223.3 kB / 1.242 GB, free: 12.31 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 9.808e-05/0.9086, allocations: 109 kB / 1.242 GB, free: 12.18 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.839e-05/0.9086, allocations: 3.984 kB / 1.242 GB, free: 12.18 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000201/0.9088, allocations: 19.88 kB / 1.242 GB, free: 12.16 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.673e-05/0.9089, allocations: 7.984 kB / 1.242 GB, free: 12.15 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.619e-05/0.9089, allocations: 15.98 kB / 1.242 GB, free: 12.14 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 9.476e-05/0.909, allocations: 120 kB / 1.242 GB, free: 12.02 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.2e-07/0.909, allocations: 0 / 1.242 GB, free: 12.02 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.000424/0.9094, allocations: 83.84 kB / 1.242 GB, free: 11.94 MB / 0.9669 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 (15): * Single equations (assignments): 14 * Array equations: 1 * 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.0003737/0.9098, allocations: 171 kB / 1.242 GB, free: 11.76 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002629/0.9101, allocations: 125.7 kB / 1.242 GB, free: 11.64 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.9101, allocations: 0 / 1.242 GB, free: 11.64 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 7.437e-05/0.9102, allocations: 43.92 kB / 1.242 GB, free: 11.59 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004622/0.9106, allocations: 52.78 kB / 1.242 GB, free: 11.54 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007553/0.9114, allocations: 346.4 kB / 1.243 GB, free: 11.18 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003198/0.9117, allocations: 0.7129 MB / 1.243 GB, free: 10.44 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.0001655/0.9119, allocations: 49.78 kB / 1.243 GB, free: 10.39 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.371e-05/0.912, allocations: 27.44 kB / 1.243 GB, free: 10.36 MB / 0.9669 GB Notification: Performance of SimCode: time 3.4e-07/0.912, allocations: 0 / 1.243 GB, free: 10.36 MB / 0.9669 GB Notification: Performance of Templates: time 0.007365/0.9193, allocations: 3.431 MB / 1.247 GB, free: 6.969 MB / 0.9669 GB make -j1 -f Buildings_latest_Buildings.Media.Examples.WaterProperties.makefile (rm -f Buildings_latest_Buildings.Media.Examples.WaterProperties.pipe ; mkfifo Buildings_latest_Buildings.Media.Examples.WaterProperties.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Examples.WaterProperties.pipe >> ../files/Buildings_latest_Buildings.Media.Examples.WaterProperties.sim & ./Buildings_latest_Buildings.Media.Examples.WaterProperties -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Media.Examples.WaterProperties.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Examples.WaterProperties_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Examples_WaterProperties.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Examples.WaterProperties.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches