Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Media.Specialized.Water.Examples.WaterProperties_pT.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.Specialized.Water.Examples.WaterProperties_pT,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.Specialized.Water.Examples.WaterProperties_pT") translateModel(Buildings.Media.Specialized.Water.Examples.WaterProperties_pT,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.Specialized.Water.Examples.WaterProperties_pT") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007672/0.007672, allocations: 99.95 kB / 15.73 MB, free: 6.062 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.00181/0.00181, allocations: 189.3 kB / 16.67 MB, free: 5.973 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.393/1.393, allocations: 222.9 MB / 240.4 MB, free: 4.148 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.765/2.765, allocations: 472.6 MB / 0.7453 GB, free: 4.602 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001188/0.001188, allocations: 67.89 kB / 1.07 GB, free: 9.117 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3297/0.3309, allocations: 159.9 MB / 1.226 GB, free: 9.105 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Water.Examples.WaterProperties_pT): time 0.01645/0.3474, allocations: 12.98 MB / 1.238 GB, free: 12.06 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.002854/0.3503, allocations: 2.663 MB / 1.241 GB, free: 9.387 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.13e-05/0.3504, allocations: 0 / 1.241 GB, free: 9.387 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0002963/0.3508, allocations: 47.67 kB / 1.241 GB, free: 9.34 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002892/0.3511, allocations: 99.34 kB / 1.241 GB, free: 9.242 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.00124/0.3523, allocations: 0.5078 MB / 1.242 GB, free: 8.738 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0002611/0.3526, allocations: 228 kB / 1.242 GB, free: 8.516 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 5.31e-05/0.3527, allocations: 9.562 kB / 1.242 GB, free: 8.504 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008497/0.3612, allocations: 3.579 MB / 1.245 GB, free: 4.906 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001838/0.3614, allocations: 91.66 kB / 1.245 GB, free: 4.816 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 2.716e-05/0.3614, allocations: 8 kB / 1.245 GB, free: 4.809 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002535/0.3639, allocations: 1.087 MB / 1.246 GB, free: 3.723 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 6.14e-05/0.364, allocations: 31.89 kB / 1.246 GB, free: 3.691 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 9.514e-05/0.3641, allocations: 83.66 kB / 1.247 GB, free: 3.609 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0006441/0.3648, allocations: 362.8 kB / 1.247 GB, free: 3.254 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.3648, allocations: 0 / 1.247 GB, free: 3.254 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.924e-06/0.3648, allocations: 0 / 1.247 GB, free: 3.254 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 5.831e-06/0.3648, allocations: 4 kB / 1.247 GB, free: 3.25 MB / 0.9981 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.0007428/0.3655, allocations: 0.5141 MB / 1.247 GB, free: 2.688 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 5.35e-05/0.3656, allocations: 8.031 kB / 1.247 GB, free: 2.68 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001671/0.3658, allocations: 24.78 kB / 1.247 GB, free: 2.656 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002956/0.3661, allocations: 220.1 kB / 1.248 GB, free: 2.402 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.324e-05/0.3661, allocations: 8.703 kB / 1.248 GB, free: 2.395 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.618e-05/0.3661, allocations: 16.38 kB / 1.248 GB, free: 2.379 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003677/0.3665, allocations: 248.2 kB / 1.248 GB, free: 2.117 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.298e-05/0.3665, allocations: 3.938 kB / 1.248 GB, free: 2.113 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.237e-05/0.3666, allocations: 8 kB / 1.248 GB, free: 2.105 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.527e-05/0.3666, allocations: 4 kB / 1.248 GB, free: 2.102 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004947/0.3671, allocations: 435.5 kB / 1.248 GB, free: 1.676 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001096/0.3682, allocations: 0.9644 MB / 1.249 GB, free: 0.6211 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002877/0.3685, allocations: 156 kB / 1.249 GB, free: 472 kB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001004/0.3686, allocations: 60.89 kB / 1.249 GB, free: 408 kB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.6753/1.044, allocations: 1.84 MB / 1.251 GB, free: 27.54 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.038e-05/1.044, allocations: 36.78 kB / 1.251 GB, free: 27.5 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=15): time 1.704e-06/1.044, allocations: 0 / 1.251 GB, free: 27.5 MB / 0.9981 GB Notification: Performance of matching and sorting (n=15): time 0.0003701/1.044, allocations: 143 kB / 1.251 GB, free: 27.47 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.322e-05/1.044, allocations: 55.14 kB / 1.252 GB, free: 27.41 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001434/1.045, allocations: 170 kB / 1.252 GB, free: 27.3 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.788e-05/1.045, allocations: 33.45 kB / 1.252 GB, free: 27.27 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 6.854e-05/1.045, allocations: 145.6 kB / 1.252 GB, free: 27.16 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 3.366e-05/1.045, allocations: 56.73 kB / 1.252 GB, free: 27.13 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.771e-05/1.045, allocations: 56.41 kB / 1.252 GB, free: 27.11 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 5.289e-05/1.045, allocations: 321.7 kB / 1.252 GB, free: 26.8 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.625e-05/1.045, allocations: 34.12 kB / 1.252 GB, free: 26.8 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001343/1.045, allocations: 143.4 kB / 1.252 GB, free: 26.67 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002416/1.045, allocations: 200.7 kB / 1.253 GB, free: 26.55 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.689e-06/1.045, allocations: 1.5 kB / 1.253 GB, free: 26.55 MB / 0.9981 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003844/1.046, allocations: 224.1 kB / 1.253 GB, free: 26.49 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.141e-05/1.046, allocations: 12.97 kB / 1.253 GB, free: 26.48 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.147e-06/1.046, allocations: 6.844 kB / 1.253 GB, free: 26.48 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.156e-05/1.046, allocations: 5.844 kB / 1.253 GB, free: 26.48 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001887/1.046, allocations: 50.48 kB / 1.253 GB, free: 26.48 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.275e-05/1.046, allocations: 6.266 kB / 1.253 GB, free: 26.48 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001113/1.046, allocations: 26.03 kB / 1.253 GB, free: 26.47 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.342e-05/1.046, allocations: 19.05 kB / 1.253 GB, free: 26.47 MB / 0.9981 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 9.328e-05/1.046, allocations: 133.4 kB / 1.253 GB, free: 26.35 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.276e-05/1.046, allocations: 20.81 kB / 1.253 GB, free: 26.34 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003277/1.047, allocations: 155.6 kB / 1.253 GB, free: 26.3 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.2e-05/1.047, allocations: 3.953 kB / 1.253 GB, free: 26.3 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.62e-06/1.047, allocations: 0.8125 kB / 1.253 GB, free: 26.3 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/1.047, allocations: 1.031 kB / 1.253 GB, free: 26.3 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000228/1.047, allocations: 226.9 kB / 1.253 GB, free: 26.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/1.047, allocations: 0.5156 kB / 1.253 GB, free: 26.1 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.782e-05/1.047, allocations: 25.97 kB / 1.253 GB, free: 26.1 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/1.047, allocations: 4.875 kB / 1.253 GB, free: 26.09 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.355e-05/1.047, allocations: 6.281 kB / 1.254 GB, free: 26.09 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.255e-06/1.047, allocations: 1.391 kB / 1.254 GB, free: 26.09 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/1.047, allocations: 0.875 kB / 1.254 GB, free: 26.09 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002465/1.047, allocations: 216.3 kB / 1.254 GB, free: 25.96 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 8.793e-05/1.047, allocations: 115.8 kB / 1.254 GB, free: 25.85 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.754e-05/1.047, allocations: 2.859 kB / 1.254 GB, free: 25.85 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000209/1.048, allocations: 19.25 kB / 1.254 GB, free: 25.85 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.993e-05/1.048, allocations: 12.03 kB / 1.254 GB, free: 25.85 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.582e-05/1.048, allocations: 9.234 kB / 1.254 GB, free: 25.85 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 9.199e-05/1.048, allocations: 125.5 kB / 1.254 GB, free: 25.77 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.3e-07/1.048, allocations: 0 / 1.254 GB, free: 25.77 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0004187/1.048, allocations: 82.12 kB / 1.254 GB, free: 25.76 MB / 0.9981 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.0003133/1.049, allocations: 186.5 kB / 1.254 GB, free: 25.66 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002655/1.049, allocations: 126 kB / 1.254 GB, free: 25.65 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 3.516e-06/1.049, allocations: 4.578 kB / 1.254 GB, free: 25.65 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 7.82e-05/1.049, allocations: 44.75 kB / 1.254 GB, free: 25.64 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004379/1.049, allocations: 56.09 kB / 1.254 GB, free: 25.64 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007214/1.05, allocations: 336.7 kB / 1.255 GB, free: 25.47 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001584/1.05, allocations: 0.7184 MB / 1.255 GB, free: 24.77 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001587/1.05, allocations: 51.38 kB / 1.256 GB, free: 24.76 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.456e-05/1.051, allocations: 25.7 kB / 1.256 GB, free: 24.75 MB / 0.9981 GB Notification: Performance of SimCode: time 2.31e-07/1.051, allocations: 0 / 1.256 GB, free: 24.75 MB / 0.9981 GB Notification: Performance of Templates: time 0.007874/1.058, allocations: 3.653 MB / 1.259 GB, free: 24.43 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Media.Specialized.Water.Examples.WaterProperties_pT.makefile (rm -f Buildings_latest_Buildings.Media.Specialized.Water.Examples.WaterProperties_pT.pipe ; mkfifo Buildings_latest_Buildings.Media.Specialized.Water.Examples.WaterProperties_pT.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Specialized.Water.Examples.WaterProperties_pT.pipe >> ../files/Buildings_latest_Buildings.Media.Specialized.Water.Examples.WaterProperties_pT.sim & ./Buildings_latest_Buildings.Media.Specialized.Water.Examples.WaterProperties_pT -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Media.Specialized.Water.Examples.WaterProperties_pT.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Specialized.Water.Examples.WaterProperties_pT_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Specialized_Water_Examples_WaterProperties_pT.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Specialized.Water.Examples.WaterProperties_pT.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches