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.451/2.451, allocations: 390.3 MB / 402.8 MB, free: 6.684 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.001403/0.001403, allocations: 184.8 kB / 496.1 MB, free: 12.84 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.79/1.79, allocations: 221.3 MB / 0.7915 GB, free: 5.41 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.001035/0.001035, allocations: 91.95 kB / 0.9317 GB, free: 5.723 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.532e-05/3.557e-05, allocations: 4 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3369/0.3369, allocations: 143 MB / 1.219 GB, free: 13.55 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.356/1.693, allocations: 393.2 MB / 1.603 GB, free: 9.25 MB / 1.057 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003277/1.693, allocations: 70.06 kB / 1.603 GB, free: 9.215 MB / 1.057 GB Notification: Performance of FrontEnd - DAE generated: time 0.05796/1.751, allocations: 20.18 MB / 1.622 GB, free: 5.039 MB / 1.073 GB Notification: Performance of FrontEnd: time 2.485e-06/1.751, allocations: 4 kB / 1.622 GB, free: 5.035 MB / 1.073 GB Notification: Performance of Transformations before backend: time 1.166e-05/1.751, allocations: 0 / 1.622 GB, free: 5.035 MB / 1.073 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.0009492/1.752, allocations: 471.1 kB / 1.623 GB, free: 4.527 MB / 1.073 GB Notification: Performance of prepare preOptimizeDAE: time 5.31e-05/1.752, allocations: 16.03 kB / 1.623 GB, free: 4.512 MB / 1.073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002236/1.752, allocations: 27.77 kB / 1.623 GB, free: 4.484 MB / 1.073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003289/1.753, allocations: 214.8 kB / 1.623 GB, free: 4.234 MB / 1.073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.299e-05/1.753, allocations: 12.33 kB / 1.623 GB, free: 4.223 MB / 1.073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.61e-05/1.753, allocations: 12 kB / 1.623 GB, free: 4.211 MB / 1.073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004599/1.753, allocations: 236.1 kB / 1.623 GB, free: 3.961 MB / 1.073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.568e-05/1.753, allocations: 7.938 kB / 1.623 GB, free: 3.953 MB / 1.073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.141e-05/1.753, allocations: 8 kB / 1.623 GB, free: 3.945 MB / 1.073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.188e-05/1.753, allocations: 8 kB / 1.623 GB, free: 3.938 MB / 1.073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005447/1.754, allocations: 427.3 kB / 1.624 GB, free: 3.52 MB / 1.073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001349/1.755, allocations: 0.9878 MB / 1.625 GB, free: 2.441 MB / 1.073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003536/1.756, allocations: 156.8 kB / 1.625 GB, free: 2.281 MB / 1.073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001075/1.756, allocations: 60.83 kB / 1.625 GB, free: 2.219 MB / 1.073 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001787/1.758, allocations: 1.919 MB / 1.627 GB, free: 15.94 MB / 1.089 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.17e-05/1.758, allocations: 38.56 kB / 1.627 GB, free: 15.89 MB / 1.089 GB Notification: Performance of pre-optimization done (n=15): time 2.044e-06/1.758, allocations: 0 / 1.627 GB, free: 15.89 MB / 1.089 GB Notification: Performance of matching and sorting (n=15): time 0.0003189/1.758, allocations: 121.4 kB / 1.627 GB, free: 15.77 MB / 1.089 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.07e-05/1.758, allocations: 51.41 kB / 1.627 GB, free: 15.71 MB / 1.089 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001614/1.758, allocations: 158.3 kB / 1.627 GB, free: 15.54 MB / 1.089 GB Notification: Performance of collectPreVariables (initialization): time 2.834e-05/1.758, allocations: 33.64 kB / 1.627 GB, free: 15.5 MB / 1.089 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001083/1.758, allocations: 147.8 kB / 1.627 GB, free: 15.36 MB / 1.089 GB Notification: Performance of collectInitialBindings (initialization): time 4.154e-05/1.758, allocations: 43.36 kB / 1.627 GB, free: 15.31 MB / 1.089 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.346e-06/1.758, allocations: 4 kB / 1.627 GB, free: 15.31 MB / 1.089 GB Notification: Performance of setup shared object (initialization): time 0.0001742/1.759, allocations: 326.8 kB / 1.628 GB, free: 14.98 MB / 1.089 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.406e-05/1.759, allocations: 36 kB / 1.628 GB, free: 14.95 MB / 1.089 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001472/1.759, allocations: 130.2 kB / 1.628 GB, free: 14.77 MB / 1.089 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001098/1.759, allocations: 69.33 kB / 1.628 GB, free: 14.7 MB / 1.089 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/1.759, allocations: 0 / 1.628 GB, free: 14.7 MB / 1.089 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003688/1.759, allocations: 210.2 kB / 1.628 GB, free: 14.49 MB / 1.089 GB Notification: Performance of prepare postOptimizeDAE: time 2.162e-05/1.759, allocations: 11.95 kB / 1.628 GB, free: 14.48 MB / 1.089 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.038e-05/1.759, allocations: 4 kB / 1.628 GB, free: 14.48 MB / 1.089 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.174e-05/1.759, allocations: 4 kB / 1.628 GB, free: 14.47 MB / 1.089 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001857/1.76, allocations: 55.91 kB / 1.628 GB, free: 14.42 MB / 1.089 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.455e-05/1.76, allocations: 11.98 kB / 1.628 GB, free: 14.41 MB / 1.089 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000142/1.76, allocations: 27.69 kB / 1.628 GB, free: 14.38 MB / 1.089 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.35e-05/1.76, allocations: 16 kB / 1.628 GB, free: 14.36 MB / 1.089 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 0.000112/1.76, allocations: 124.9 kB / 1.628 GB, free: 14.23 MB / 1.089 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.091e-05/1.76, allocations: 15.81 kB / 1.628 GB, free: 14.22 MB / 1.089 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003424/1.76, allocations: 165.1 kB / 1.629 GB, free: 14.05 MB / 1.089 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.26e-05/1.76, allocations: 4 kB / 1.629 GB, free: 14.05 MB / 1.089 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.534e-06/1.76, allocations: 4 kB / 1.629 GB, free: 14.05 MB / 1.089 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/1.76, allocations: 3.984 kB / 1.629 GB, free: 14.04 MB / 1.089 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002791/1.761, allocations: 209.5 kB / 1.629 GB, free: 13.79 MB / 1.089 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/1.761, allocations: 0 / 1.629 GB, free: 13.79 MB / 1.089 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001173/1.761, allocations: 31.97 kB / 1.629 GB, free: 13.76 MB / 1.089 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.619e-06/1.761, allocations: 4 kB / 1.629 GB, free: 13.75 MB / 1.089 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.39e-05/1.761, allocations: 4 kB / 1.629 GB, free: 13.75 MB / 1.089 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.517e-06/1.761, allocations: 3.953 kB / 1.629 GB, free: 13.75 MB / 1.089 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/1.761, allocations: 0 / 1.629 GB, free: 13.75 MB / 1.089 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002697/1.761, allocations: 227 kB / 1.629 GB, free: 13.51 MB / 1.089 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001153/1.761, allocations: 113 kB / 1.629 GB, free: 13.38 MB / 1.089 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.311e-05/1.761, allocations: 0 / 1.629 GB, free: 13.38 MB / 1.089 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002134/1.762, allocations: 23.98 kB / 1.629 GB, free: 13.36 MB / 1.089 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.957e-05/1.762, allocations: 15.94 kB / 1.629 GB, free: 13.34 MB / 1.089 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.287e-05/1.762, allocations: 7.984 kB / 1.629 GB, free: 13.33 MB / 1.089 GB Notification: Performance of sorting global known variables: time 9.257e-05/1.762, allocations: 123.9 kB / 1.629 GB, free: 13.21 MB / 1.089 GB Notification: Performance of sort global known variables: time 4.61e-07/1.762, allocations: 0 / 1.629 GB, free: 13.21 MB / 1.089 GB Notification: Performance of remove unused functions: time 0.0004629/1.762, allocations: 91.83 kB / 1.629 GB, free: 13.12 MB / 1.089 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.0003833/1.763, allocations: 192.6 kB / 1.63 GB, free: 12.93 MB / 1.089 GB Notification: Performance of simCode: created initialization part: time 0.000249/1.763, allocations: 117.8 kB / 1.63 GB, free: 12.81 MB / 1.089 GB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/1.763, allocations: 0 / 1.63 GB, free: 12.81 MB / 1.089 GB Notification: Performance of simCode: created simulation system equations: time 6.995e-05/1.763, allocations: 47.92 kB / 1.63 GB, free: 12.77 MB / 1.089 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003821/1.763, allocations: 45.56 kB / 1.63 GB, free: 12.72 MB / 1.089 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005406/1.764, allocations: 175.2 kB / 1.63 GB, free: 12.54 MB / 1.089 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003295/1.764, allocations: 0.717 MB / 1.631 GB, free: 11.79 MB / 1.089 GB Notification: Performance of simCode: alias equations: time 0.0001981/1.764, allocations: 49.92 kB / 1.631 GB, free: 11.74 MB / 1.089 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.722e-05/1.765, allocations: 31.42 kB / 1.631 GB, free: 11.71 MB / 1.089 GB Notification: Performance of SimCode: time 6.01e-07/1.765, allocations: 0 / 1.631 GB, free: 11.71 MB / 1.089 GB Notification: Performance of Templates: time 0.007954/1.772, allocations: 3.494 MB / 1.634 GB, free: 8.25 MB / 1.089 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