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/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/Buildings 10.0.0-master/package.mo): time 2.288/2.288, allocations: 390.5 MB / 398 MB, free: 11 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001377/0.001377, allocations: 183.9 kB / 491.2 MB, free: 1.59 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.895/1.895, allocations: 221.5 MB / 0.7868 GB, free: 13.28 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001041/0.001042, allocations: 99.45 kB / 0.9269 GB, free: 13.77 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.197e-05/2.183e-05, allocations: 0 / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4104/0.4104, allocations: 143 MB / 1.212 GB, free: 39.52 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.414/1.824, allocations: 392.5 MB / 1.596 GB, free: 6.219 MB / 1.01 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002816/1.824, allocations: 78.84 kB / 1.596 GB, free: 6.176 MB / 1.01 GB Notification: Performance of FrontEnd - DAE generated: time 0.05016/1.875, allocations: 20.05 MB / 1.615 GB, free: 6.066 MB / 1.026 GB Notification: Performance of FrontEnd: time 1.402e-06/1.875, allocations: 7.938 kB / 1.615 GB, free: 6.059 MB / 1.026 GB Notification: Performance of Transformations before backend: time 8.836e-06/1.875, allocations: 0 / 1.615 GB, free: 6.059 MB / 1.026 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.0008052/1.875, allocations: 474.8 kB / 1.616 GB, free: 5.562 MB / 1.026 GB Notification: Performance of prepare preOptimizeDAE: time 4.53e-05/1.876, allocations: 12.03 kB / 1.616 GB, free: 5.551 MB / 1.026 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000219/1.876, allocations: 27.75 kB / 1.616 GB, free: 5.523 MB / 1.026 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002813/1.876, allocations: 206.5 kB / 1.616 GB, free: 5.289 MB / 1.026 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.596e-05/1.876, allocations: 8 kB / 1.616 GB, free: 5.281 MB / 1.026 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.77e-05/1.876, allocations: 15.88 kB / 1.616 GB, free: 5.266 MB / 1.026 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005231/1.877, allocations: 407.2 kB / 1.616 GB, free: 4.938 MB / 1.026 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003143/1.877, allocations: 226 kB / 1.617 GB, free: 4.746 MB / 1.026 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.388e-05/1.877, allocations: 3.938 kB / 1.617 GB, free: 4.742 MB / 1.026 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.565e-05/1.877, allocations: 0 / 1.617 GB, free: 4.742 MB / 1.026 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.665e-05/1.877, allocations: 8 kB / 1.617 GB, free: 4.734 MB / 1.026 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001219/1.878, allocations: 0.95 MB / 1.617 GB, free: 3.801 MB / 1.026 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002781/1.879, allocations: 138.6 kB / 1.618 GB, free: 3.684 MB / 1.026 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.499e-05/1.879, allocations: 56.41 kB / 1.618 GB, free: 3.637 MB / 1.026 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001686/1.88, allocations: 1.918 MB / 1.62 GB, free: 1.402 MB / 1.026 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.399e-05/1.88, allocations: 38.52 kB / 1.62 GB, free: 1.355 MB / 1.026 GB Notification: Performance of pre-optimization done (n=15): time 1.583e-06/1.88, allocations: 0 / 1.62 GB, free: 1.355 MB / 1.026 GB Notification: Performance of matching and sorting (n=15): time 0.0005563/1.881, allocations: 132.3 kB / 1.62 GB, free: 1.234 MB / 1.026 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.154e-05/1.881, allocations: 51.41 kB / 1.62 GB, free: 1.172 MB / 1.026 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001344/1.881, allocations: 136.4 kB / 1.62 GB, free: 1.043 MB / 1.026 GB Notification: Performance of collectPreVariables (initialization): time 2.882e-05/1.881, allocations: 29.7 kB / 1.62 GB, free: 1.008 MB / 1.026 GB Notification: Performance of collectInitialEqns (initialization): time 9.474e-05/1.881, allocations: 153.9 kB / 1.62 GB, free: 0.8633 MB / 1.026 GB Notification: Performance of collectInitialBindings (initialization): time 3.566e-05/1.881, allocations: 46.61 kB / 1.62 GB, free: 0.8242 MB / 1.026 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.104e-06/1.881, allocations: 0 / 1.62 GB, free: 0.8242 MB / 1.026 GB Notification: Performance of setup shared object (initialization): time 0.0001327/1.882, allocations: 322.3 kB / 1.62 GB, free: 0.5039 MB / 1.026 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.116e-05/1.882, allocations: 34.98 kB / 1.62 GB, free: 488 kB / 1.026 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001155/1.882, allocations: 128.7 kB / 1.621 GB, free: 324 kB / 1.026 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003427/1.882, allocations: 81.78 kB / 1.621 GB, free: 256 kB / 1.026 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/1.882, allocations: 0 / 1.621 GB, free: 256 kB / 1.026 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005128/1.883, allocations: 207 kB / 1.621 GB, free: 64 kB / 1.026 GB Notification: Performance of prepare postOptimizeDAE: time 1.95e-05/1.883, allocations: 4 kB / 1.621 GB, free: 60 kB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/1.883, allocations: 4 kB / 1.621 GB, free: 56 kB / 1.026 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.227e-05/1.883, allocations: 11.95 kB / 1.621 GB, free: 44 kB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002116/1.883, allocations: 55.95 kB / 1.621 GB, free: 15.98 MB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.123e-05/1.883, allocations: 7.938 kB / 1.621 GB, free: 15.98 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001267/1.883, allocations: 23.72 kB / 1.621 GB, free: 15.96 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.092e-05/1.883, allocations: 15.84 kB / 1.621 GB, free: 15.95 MB / 1.042 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.613e-05/1.883, allocations: 112.9 kB / 1.621 GB, free: 15.83 MB / 1.042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.797e-05/1.883, allocations: 15.81 kB / 1.621 GB, free: 15.81 MB / 1.042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005111/1.884, allocations: 168.4 kB / 1.621 GB, free: 15.66 MB / 1.042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.197e-05/1.884, allocations: 3.953 kB / 1.621 GB, free: 15.66 MB / 1.042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.119e-06/1.884, allocations: 0 / 1.621 GB, free: 15.66 MB / 1.042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/1.884, allocations: 3.984 kB / 1.621 GB, free: 15.66 MB / 1.042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002628/1.884, allocations: 189.8 kB / 1.621 GB, free: 15.45 MB / 1.042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/1.884, allocations: 0 / 1.621 GB, free: 15.45 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000115/1.884, allocations: 31.92 kB / 1.621 GB, free: 15.42 MB / 1.042 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.112e-06/1.884, allocations: 4 kB / 1.621 GB, free: 15.41 MB / 1.042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.228e-05/1.884, allocations: 0 / 1.621 GB, free: 15.41 MB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.057e-06/1.884, allocations: 3.984 kB / 1.621 GB, free: 15.41 MB / 1.042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/1.884, allocations: 0 / 1.621 GB, free: 15.41 MB / 1.042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004644/1.885, allocations: 240.8 kB / 1.622 GB, free: 15.18 MB / 1.042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001214/1.885, allocations: 115.8 kB / 1.622 GB, free: 15.05 MB / 1.042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.274e-05/1.885, allocations: 0 / 1.622 GB, free: 15.05 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002108/1.885, allocations: 19.98 kB / 1.622 GB, free: 15.04 MB / 1.042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.421e-05/1.885, allocations: 11.48 kB / 1.622 GB, free: 15.03 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.222e-05/1.885, allocations: 11.94 kB / 1.622 GB, free: 15.02 MB / 1.042 GB Notification: Performance of sorting global known variables: time 7.273e-05/1.885, allocations: 103.4 kB / 1.622 GB, free: 14.93 MB / 1.042 GB Notification: Performance of sort global known variables: time 1.8e-07/1.885, allocations: 7.938 kB / 1.622 GB, free: 14.92 MB / 1.042 GB Notification: Performance of remove unused functions: time 0.000453/1.886, allocations: 82.84 kB / 1.622 GB, free: 14.84 MB / 1.042 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003624/1.886, allocations: 190.9 kB / 1.622 GB, free: 14.65 MB / 1.042 GB Notification: Performance of simCode: created initialization part: time 0.0002298/1.886, allocations: 105 kB / 1.622 GB, free: 14.56 MB / 1.042 GB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/1.886, allocations: 0 / 1.622 GB, free: 14.56 MB / 1.042 GB Notification: Performance of simCode: created simulation system equations: time 5.307e-05/1.886, allocations: 35.86 kB / 1.622 GB, free: 14.53 MB / 1.042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003342/1.887, allocations: 32.97 kB / 1.622 GB, free: 14.51 MB / 1.042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005215/1.887, allocations: 169.1 kB / 1.623 GB, free: 14.34 MB / 1.042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002889/1.888, allocations: 0.7128 MB / 1.623 GB, free: 13.59 MB / 1.042 GB Notification: Performance of simCode: alias equations: time 0.0001854/1.888, allocations: 49.64 kB / 1.623 GB, free: 13.54 MB / 1.042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.932e-05/1.888, allocations: 23.44 kB / 1.623 GB, free: 13.52 MB / 1.042 GB Notification: Performance of SimCode: time 2.41e-07/1.888, allocations: 0 / 1.623 GB, free: 13.52 MB / 1.042 GB Notification: Performance of Templates: time 0.006384/1.894, allocations: 2.932 MB / 1.626 GB, free: 10.62 MB / 1.042 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","../files/Buildings_latest_Buildings.Media.Examples.WaterProperties.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches