Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.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_10_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_10_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.009044/0.009044, allocations: 98.16 kB / 15.73 MB, free: 6.008 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.002048/0.002049, allocations: 196.2 kB / 16.67 MB, free: 5.926 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.462/1.462, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.472/2.472, allocations: 437 MB / 0.7105 GB, free: 4.391 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001974/0.001974, allocations: 67.84 kB / 1.019 GB, free: 9.379 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8696/0.8716, allocations: 151.6 MB / 1.167 GB, free: 4.012 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterProperties): time 0.00683/0.8785, allocations: 4.714 MB / 1.171 GB, free: 15.27 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.003114/0.8816, allocations: 2.706 MB / 1.174 GB, free: 12.55 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001497/0.8818, allocations: 0 / 1.174 GB, free: 12.55 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.0003264/0.8821, allocations: 55.61 kB / 1.174 GB, free: 12.5 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0003377/0.8825, allocations: 99.36 kB / 1.174 GB, free: 12.4 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.001527/0.884, allocations: 0.5092 MB / 1.175 GB, free: 11.89 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0003668/0.8844, allocations: 227.9 kB / 1.175 GB, free: 11.67 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 5.635e-05/0.8845, allocations: 13.56 kB / 1.175 GB, free: 11.65 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002648/0.8848, allocations: 123.5 kB / 1.175 GB, free: 11.53 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001696/0.8849, allocations: 83.67 kB / 1.175 GB, free: 11.45 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 3.349e-05/0.885, allocations: 8 kB / 1.175 GB, free: 11.44 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009529/0.8859, allocations: 375.3 kB / 1.175 GB, free: 11.07 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 9.247e-05/0.886, allocations: 35.89 kB / 1.175 GB, free: 11.04 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0001035/0.8862, allocations: 79.66 kB / 1.175 GB, free: 10.96 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.00102/0.8872, allocations: 367.8 kB / 1.176 GB, free: 10.6 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.8872, allocations: 4 kB / 1.176 GB, free: 10.6 MB / 0.9044 GB Notification: Performance of FrontEnd: time 2.124e-06/0.8872, allocations: 0 / 1.176 GB, free: 10.6 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.205e-05/0.8872, allocations: 0 / 1.176 GB, free: 10.6 MB / 0.9044 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.001001/0.8882, allocations: 0.5025 MB / 1.176 GB, free: 10.04 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.618e-05/0.8883, allocations: 8.031 kB / 1.176 GB, free: 10.04 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000225/0.8885, allocations: 24.84 kB / 1.176 GB, free: 10.01 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003921/0.8889, allocations: 212.1 kB / 1.177 GB, free: 9.766 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.992e-05/0.8889, allocations: 12.7 kB / 1.177 GB, free: 9.754 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.488e-05/0.889, allocations: 20.38 kB / 1.177 GB, free: 9.734 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004298/0.8894, allocations: 248.2 kB / 1.177 GB, free: 9.473 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.8894, allocations: 0 / 1.177 GB, free: 9.473 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.795e-05/0.8895, allocations: 12 kB / 1.177 GB, free: 9.461 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.88e-05/0.8895, allocations: 4 kB / 1.177 GB, free: 9.457 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005171/0.89, allocations: 423.5 kB / 1.177 GB, free: 9.043 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001239/0.8913, allocations: 0.9527 MB / 1.178 GB, free: 8 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002681/0.8916, allocations: 169.1 kB / 1.178 GB, free: 7.828 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.684e-05/0.8917, allocations: 64.88 kB / 1.178 GB, free: 7.762 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001387/0.8931, allocations: 1.829 MB / 1.18 GB, free: 5.574 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.757e-05/0.8931, allocations: 38.56 kB / 1.18 GB, free: 5.527 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=15): time 1.332e-06/0.8931, allocations: 4 kB / 1.18 GB, free: 5.523 MB / 0.9044 GB Notification: Performance of matching and sorting (n=15): time 0.0003759/0.8935, allocations: 147.7 kB / 1.18 GB, free: 5.375 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.748e-05/0.8936, allocations: 59.34 kB / 1.18 GB, free: 5.305 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002358/0.8938, allocations: 163.3 kB / 1.181 GB, free: 5.133 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 4.356e-05/0.8939, allocations: 33.7 kB / 1.181 GB, free: 5.094 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001125/0.894, allocations: 144 kB / 1.181 GB, free: 4.949 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 4.287e-05/0.894, allocations: 55.53 kB / 1.181 GB, free: 4.895 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.177e-05/0.8941, allocations: 45.7 kB / 1.181 GB, free: 4.844 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001466/0.8943, allocations: 330.8 kB / 1.181 GB, free: 4.512 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.279e-05/0.8944, allocations: 39.91 kB / 1.181 GB, free: 4.473 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001422/0.8945, allocations: 145.7 kB / 1.181 GB, free: 4.281 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002407/0.8948, allocations: 197.5 kB / 1.181 GB, free: 4.039 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.8948, allocations: 0 / 1.181 GB, free: 4.039 MB / 0.9044 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003441/0.8951, allocations: 223.6 kB / 1.182 GB, free: 3.816 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.631e-05/0.8951, allocations: 8.469 kB / 1.182 GB, free: 3.809 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.276e-06/0.8952, allocations: 4 kB / 1.182 GB, free: 3.805 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.721e-05/0.8952, allocations: 8 kB / 1.182 GB, free: 3.797 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001679/0.8953, allocations: 63.78 kB / 1.182 GB, free: 3.734 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.02e-05/0.8954, allocations: 4 kB / 1.182 GB, free: 3.73 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001068/0.8955, allocations: 27.78 kB / 1.182 GB, free: 3.703 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.716e-05/0.8955, allocations: 12 kB / 1.182 GB, free: 3.691 MB / 0.9044 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.0001102/0.8956, allocations: 129.8 kB / 1.182 GB, free: 3.555 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.049e-05/0.8957, allocations: 19.91 kB / 1.182 GB, free: 3.535 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003/0.896, allocations: 158.9 kB / 1.182 GB, free: 3.375 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.181e-05/0.896, allocations: 7.938 kB / 1.182 GB, free: 3.367 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-06/0.896, allocations: 0 / 1.182 GB, free: 3.367 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.896, allocations: 0 / 1.182 GB, free: 3.367 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002323/0.8963, allocations: 217.5 kB / 1.182 GB, free: 3.105 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.8963, allocations: 0 / 1.182 GB, free: 3.105 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.436e-05/0.8964, allocations: 27.98 kB / 1.182 GB, free: 3.078 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.035e-06/0.8964, allocations: 0 / 1.182 GB, free: 3.078 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.286e-05/0.8964, allocations: 4 kB / 1.182 GB, free: 3.074 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.19e-06/0.8964, allocations: 11.88 kB / 1.182 GB, free: 3.062 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.8964, allocations: 0 / 1.182 GB, free: 3.062 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002569/0.8967, allocations: 219.4 kB / 1.183 GB, free: 2.832 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001015/0.8968, allocations: 112.9 kB / 1.183 GB, free: 2.703 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.482e-05/0.8968, allocations: 4 kB / 1.183 GB, free: 2.699 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002084/0.897, allocations: 19.92 kB / 1.183 GB, free: 2.68 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.494e-05/0.8971, allocations: 7.984 kB / 1.183 GB, free: 2.672 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.202e-05/0.8971, allocations: 12 kB / 1.183 GB, free: 2.66 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 9.193e-05/0.8972, allocations: 120.9 kB / 1.183 GB, free: 2.543 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.41e-07/0.8972, allocations: 4 kB / 1.183 GB, free: 2.539 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0004185/0.8976, allocations: 79.86 kB / 1.183 GB, free: 2.461 MB / 0.9044 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.000384/0.898, allocations: 175 kB / 1.183 GB, free: 2.277 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0002674/0.8983, allocations: 125 kB / 1.183 GB, free: 2.156 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.8983, allocations: 4 kB / 1.183 GB, free: 2.152 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 7.237e-05/0.8984, allocations: 46.03 kB / 1.183 GB, free: 2.109 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004509/0.8988, allocations: 63.17 kB / 1.183 GB, free: 2.051 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007974/0.8996, allocations: 330.5 kB / 1.184 GB, free: 1.703 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003669/0.9, allocations: 0.7168 MB / 1.184 GB, free: 0.9609 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.0001689/0.9002, allocations: 41.77 kB / 1.184 GB, free: 0.918 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.696e-05/0.9003, allocations: 27.44 kB / 1.184 GB, free: 0.8906 MB / 0.9044 GB Notification: Performance of SimCode: time 2.1e-07/0.9003, allocations: 0 / 1.184 GB, free: 0.8906 MB / 0.9044 GB Notification: Performance of Templates: time 0.007171/0.9074, allocations: 3.431 MB / 1.188 GB, free: 13.5 MB / 0.92 GB make -j1 -f Buildings_10_Buildings.Media.Examples.WaterProperties.makefile (rm -f Buildings_10_Buildings.Media.Examples.WaterProperties.pipe ; mkfifo Buildings_10_Buildings.Media.Examples.WaterProperties.pipe ; head -c 1048576 < Buildings_10_Buildings.Media.Examples.WaterProperties.pipe >> ../files/Buildings_10_Buildings.Media.Examples.WaterProperties.sim & ./Buildings_10_Buildings.Media.Examples.WaterProperties -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Media.Examples.WaterProperties.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Media.Examples.WaterProperties_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Media_Examples_WaterProperties.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Media.Examples.WaterProperties.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches