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 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.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.001484/0.001484, allocations: 105.1 kB / 16.41 MB, free: 6.41 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.001673/0.001674, allocations: 189.7 kB / 17.35 MB, free: 5.695 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.386/1.386, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.646/2.646, allocations: 461.9 MB / 0.7355 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001713/0.001713, allocations: 71.88 kB / 1.055 GB, free: 7.629 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7678/0.7696, allocations: 157.4 MB / 1.208 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterProperties): time 0.006085/0.7757, allocations: 4.725 MB / 1.213 GB, free: 8.871 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002837/0.7785, allocations: 2.706 MB / 1.216 GB, free: 6.156 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001211/0.7787, allocations: 0 / 1.216 GB, free: 6.156 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0002698/0.779, allocations: 47.67 kB / 1.216 GB, free: 6.109 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0002978/0.7793, allocations: 91.42 kB / 1.216 GB, free: 6.02 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.001235/0.7806, allocations: 0.5042 MB / 1.216 GB, free: 5.52 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0003012/0.7809, allocations: 227.9 kB / 1.217 GB, free: 5.297 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 4.839e-05/0.7809, allocations: 13.55 kB / 1.217 GB, free: 5.285 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002297/0.7812, allocations: 119.5 kB / 1.217 GB, free: 5.168 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001621/0.7813, allocations: 87.66 kB / 1.217 GB, free: 5.082 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 3.526e-05/0.7814, allocations: 12 kB / 1.217 GB, free: 5.07 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007635/0.7821, allocations: 367.3 kB / 1.217 GB, free: 4.711 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 7.317e-05/0.7822, allocations: 35.89 kB / 1.217 GB, free: 4.676 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 9.598e-05/0.7823, allocations: 83.59 kB / 1.217 GB, free: 4.594 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0008761/0.7832, allocations: 360.8 kB / 1.218 GB, free: 4.246 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.863e-06/0.7832, allocations: 0 / 1.218 GB, free: 4.246 MB / 0.9356 GB Notification: Performance of FrontEnd: time 4.107e-06/0.7832, allocations: 4 kB / 1.218 GB, free: 4.242 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.495e-05/0.7833, allocations: 0 / 1.218 GB, free: 4.242 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.001313/0.7846, allocations: 0.4953 MB / 1.218 GB, free: 3.695 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 6.353e-05/0.7847, allocations: 16.03 kB / 1.218 GB, free: 3.68 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002467/0.7849, allocations: 24.73 kB / 1.218 GB, free: 3.656 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004002/0.7853, allocations: 212.1 kB / 1.218 GB, free: 3.41 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.76e-05/0.7854, allocations: 12.7 kB / 1.218 GB, free: 3.398 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.276e-05/0.7854, allocations: 16.38 kB / 1.218 GB, free: 3.383 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004814/0.7859, allocations: 248.2 kB / 1.219 GB, free: 3.121 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.078e-05/0.7859, allocations: 4 kB / 1.219 GB, free: 3.117 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.358e-05/0.786, allocations: 12 kB / 1.219 GB, free: 3.105 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.184e-05/0.786, allocations: 4 kB / 1.219 GB, free: 3.102 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005633/0.7866, allocations: 423.5 kB / 1.219 GB, free: 2.688 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00145/0.788, allocations: 0.9526 MB / 1.22 GB, free: 1.645 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003358/0.7884, allocations: 163 kB / 1.22 GB, free: 1.473 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001361/0.7885, allocations: 64.88 kB / 1.22 GB, free: 1.406 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001732/0.7903, allocations: 1.825 MB / 1.222 GB, free: 15.22 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.99e-05/0.7903, allocations: 38.56 kB / 1.222 GB, free: 15.18 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=15): time 2.184e-06/0.7903, allocations: 0 / 1.222 GB, free: 15.18 MB / 0.9512 GB Notification: Performance of matching and sorting (n=15): time 0.0003709/0.7907, allocations: 149.3 kB / 1.222 GB, free: 15.02 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.176e-05/0.7907, allocations: 55.34 kB / 1.222 GB, free: 14.96 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001762/0.7909, allocations: 172 kB / 1.222 GB, free: 14.78 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.993e-05/0.791, allocations: 25.7 kB / 1.222 GB, free: 14.75 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 9.674e-05/0.7911, allocations: 147.7 kB / 1.222 GB, free: 14.6 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 4.867e-05/0.7911, allocations: 55.25 kB / 1.223 GB, free: 14.54 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.448e-05/0.7912, allocations: 49.7 kB / 1.223 GB, free: 14.49 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001154/0.7913, allocations: 322.8 kB / 1.223 GB, free: 14.16 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.32e-05/0.7914, allocations: 39.98 kB / 1.223 GB, free: 14.12 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000153/0.7916, allocations: 142.9 kB / 1.223 GB, free: 13.94 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002517/0.7918, allocations: 202.7 kB / 1.223 GB, free: 13.69 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.7919, allocations: 0 / 1.223 GB, free: 13.69 MB / 0.9512 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003559/0.7922, allocations: 219.3 kB / 1.223 GB, free: 13.47 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.046e-05/0.7922, allocations: 8 kB / 1.223 GB, free: 13.46 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.738e-06/0.7923, allocations: 4 kB / 1.223 GB, free: 13.46 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.012e-05/0.7923, allocations: 4 kB / 1.223 GB, free: 13.46 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001868/0.7925, allocations: 59.84 kB / 1.224 GB, free: 13.4 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.556e-05/0.7925, allocations: 11.94 kB / 1.224 GB, free: 13.39 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001228/0.7926, allocations: 23.75 kB / 1.224 GB, free: 13.36 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.046e-05/0.7927, allocations: 12.34 kB / 1.224 GB, free: 13.35 MB / 0.9512 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.0001202/0.7928, allocations: 137.7 kB / 1.224 GB, free: 13.21 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.752e-05/0.7929, allocations: 19.81 kB / 1.224 GB, free: 13.19 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003331/0.7932, allocations: 155 kB / 1.224 GB, free: 13.04 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.394e-05/0.7932, allocations: 11.88 kB / 1.224 GB, free: 13.02 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.7932, allocations: 0 / 1.224 GB, free: 13.02 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.7932, allocations: 0 / 1.224 GB, free: 13.02 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002617/0.7935, allocations: 217.5 kB / 1.224 GB, free: 12.76 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.7935, allocations: 0 / 1.224 GB, free: 12.76 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.072e-05/0.7936, allocations: 23.98 kB / 1.224 GB, free: 12.74 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/0.7936, allocations: 4 kB / 1.224 GB, free: 12.73 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.732e-05/0.7936, allocations: 8 kB / 1.224 GB, free: 12.73 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.268e-06/0.7937, allocations: 3.938 kB / 1.224 GB, free: 12.72 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.7937, allocations: 0 / 1.224 GB, free: 12.72 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002868/0.794, allocations: 215.2 kB / 1.224 GB, free: 12.5 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 9.411e-05/0.7941, allocations: 112.9 kB / 1.224 GB, free: 12.37 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.789e-05/0.7941, allocations: 4 kB / 1.224 GB, free: 12.36 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002081/0.7943, allocations: 23.92 kB / 1.224 GB, free: 12.34 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.708e-05/0.7943, allocations: 7.984 kB / 1.224 GB, free: 12.33 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.166e-05/0.7944, allocations: 12 kB / 1.225 GB, free: 12.32 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 9.939e-05/0.7945, allocations: 120.2 kB / 1.225 GB, free: 12.2 MB / 0.9512 GB Notification: Performance of sort global known variables: time 2.1e-07/0.7945, allocations: 3.938 kB / 1.225 GB, free: 12.2 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0004064/0.7949, allocations: 79.98 kB / 1.225 GB, free: 12.12 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 (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.0003416/0.7952, allocations: 175.1 kB / 1.225 GB, free: 11.94 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0002485/0.7955, allocations: 126.7 kB / 1.225 GB, free: 11.82 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/0.7955, allocations: 0.9375 kB / 1.225 GB, free: 11.82 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 6.969e-05/0.7956, allocations: 43.92 kB / 1.225 GB, free: 11.77 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004611/0.7961, allocations: 53.67 kB / 1.225 GB, free: 11.72 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007353/0.7968, allocations: 372.5 kB / 1.225 GB, free: 11.32 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002683/0.7971, allocations: 0.7089 MB / 1.226 GB, free: 10.59 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.351e-05/0.7972, allocations: 31.44 kB / 1.226 GB, free: 10.56 MB / 0.9512 GB Notification: Performance of SimCode: time 2.21e-07/0.7972, allocations: 0 / 1.226 GB, free: 10.56 MB / 0.9512 GB Notification: Performance of Templates: time 0.00568/0.8028, allocations: 3.174 MB / 1.229 GB, free: 7.398 MB / 0.9512 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Examples.WaterProperties.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches