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.001398/0.001398, allocations: 105.1 kB / 16.41 MB, free: 6.445 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.001401/0.001401, allocations: 187 kB / 17.34 MB, free: 5.703 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.342/1.342, allocations: 222.9 MB / 241 MB, free: 15.08 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.409/2.409, allocations: 437 MB / 0.7112 GB, free: 4.383 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001206/0.001206, allocations: 63.91 kB / 1.019 GB, free: 9.375 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8397/0.8409, allocations: 151.6 MB / 1.167 GB, free: 3.828 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterProperties): time 0.005496/0.8465, allocations: 4.72 MB / 1.172 GB, free: 15.08 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.002595/0.8491, allocations: 2.706 MB / 1.175 GB, free: 12.37 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.745e-05/0.8492, allocations: 4 kB / 1.175 GB, free: 12.36 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.0002587/0.8495, allocations: 47.67 kB / 1.175 GB, free: 12.32 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0002736/0.8498, allocations: 99.41 kB / 1.175 GB, free: 12.22 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.001102/0.8509, allocations: 0.5103 MB / 1.175 GB, free: 11.71 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0002487/0.8511, allocations: 235.9 kB / 1.175 GB, free: 11.48 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 4.635e-05/0.8512, allocations: 9.562 kB / 1.175 GB, free: 11.46 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001838/0.8514, allocations: 123.5 kB / 1.176 GB, free: 11.34 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001237/0.8515, allocations: 87.66 kB / 1.176 GB, free: 11.26 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 2.226e-05/0.8515, allocations: 8 kB / 1.176 GB, free: 11.25 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005854/0.8521, allocations: 367.3 kB / 1.176 GB, free: 10.89 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 6.466e-05/0.8522, allocations: 35.89 kB / 1.176 GB, free: 10.86 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 8.26e-05/0.8523, allocations: 87.58 kB / 1.176 GB, free: 10.77 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0005197/0.8528, allocations: 363.5 kB / 1.177 GB, free: 10.42 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.8528, allocations: 0 / 1.177 GB, free: 10.42 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.383e-06/0.8528, allocations: 0 / 1.177 GB, free: 10.42 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.036e-05/0.8529, allocations: 0 / 1.177 GB, free: 10.42 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.0007454/0.8536, allocations: 0.5064 MB / 1.177 GB, free: 9.859 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.792e-05/0.8537, allocations: 12.03 kB / 1.177 GB, free: 9.848 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001626/0.8538, allocations: 20.84 kB / 1.177 GB, free: 9.828 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000284/0.8541, allocations: 208.1 kB / 1.177 GB, free: 9.586 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.696e-05/0.8542, allocations: 16.7 kB / 1.177 GB, free: 9.57 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.452e-05/0.8542, allocations: 16.38 kB / 1.177 GB, free: 9.555 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003623/0.8546, allocations: 248.2 kB / 1.177 GB, free: 9.293 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.068e-05/0.8546, allocations: 0 / 1.177 GB, free: 9.293 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.476e-05/0.8546, allocations: 12 kB / 1.178 GB, free: 9.281 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.457e-05/0.8546, allocations: 4 kB / 1.178 GB, free: 9.277 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004801/0.8551, allocations: 431.5 kB / 1.178 GB, free: 8.855 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001174/0.8563, allocations: 0.9566 MB / 1.179 GB, free: 7.809 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002675/0.8566, allocations: 162.9 kB / 1.179 GB, free: 7.641 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.734e-05/0.8567, allocations: 60.89 kB / 1.179 GB, free: 7.578 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001436/0.8581, allocations: 1.825 MB / 1.181 GB, free: 5.395 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.465e-05/0.8582, allocations: 46.56 kB / 1.181 GB, free: 5.34 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=15): time 1.442e-06/0.8582, allocations: 0 / 1.181 GB, free: 5.34 MB / 0.9044 GB Notification: Performance of matching and sorting (n=15): time 0.0003478/0.8585, allocations: 145.5 kB / 1.181 GB, free: 5.191 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.776e-05/0.8586, allocations: 55.34 kB / 1.181 GB, free: 5.125 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001472/0.8587, allocations: 171.3 kB / 1.181 GB, free: 4.945 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.374e-05/0.8588, allocations: 25.7 kB / 1.181 GB, free: 4.914 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 9.231e-05/0.8589, allocations: 148 kB / 1.181 GB, free: 4.766 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 4.152e-05/0.8589, allocations: 59.47 kB / 1.181 GB, free: 4.707 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.603e-05/0.859, allocations: 49.69 kB / 1.182 GB, free: 4.652 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001786/0.8592, allocations: 326.8 kB / 1.182 GB, free: 4.324 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001128/0.8593, allocations: 35.98 kB / 1.182 GB, free: 4.289 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001369/0.8594, allocations: 145.7 kB / 1.182 GB, free: 4.098 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003408/0.8598, allocations: 200.7 kB / 1.182 GB, free: 3.855 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.8598, allocations: 0 / 1.182 GB, free: 3.855 MB / 0.9044 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003186/0.8601, allocations: 221.6 kB / 1.182 GB, free: 3.633 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.763e-05/0.8601, allocations: 8 kB / 1.182 GB, free: 3.625 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.8602, allocations: 8 kB / 1.182 GB, free: 3.617 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.22e-05/0.8602, allocations: 7.984 kB / 1.182 GB, free: 3.609 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001703/0.8604, allocations: 55.86 kB / 1.182 GB, free: 3.555 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.318e-05/0.8604, allocations: 7.938 kB / 1.182 GB, free: 3.547 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001084/0.8605, allocations: 31.78 kB / 1.183 GB, free: 3.516 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.005e-05/0.8605, allocations: 11.98 kB / 1.183 GB, free: 3.504 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.0001111/0.8606, allocations: 133.8 kB / 1.183 GB, free: 3.363 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.856e-05/0.8607, allocations: 15.91 kB / 1.183 GB, free: 3.348 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002978/0.861, allocations: 151 kB / 1.183 GB, free: 3.195 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.22e-05/0.861, allocations: 7.938 kB / 1.183 GB, free: 3.188 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.861, allocations: 0 / 1.183 GB, free: 3.188 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.592e-06/0.861, allocations: 3.984 kB / 1.183 GB, free: 3.184 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002487/0.8613, allocations: 217.5 kB / 1.183 GB, free: 2.922 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.8613, allocations: 0 / 1.183 GB, free: 2.922 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.524e-05/0.8614, allocations: 23.98 kB / 1.183 GB, free: 2.898 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.8614, allocations: 0 / 1.183 GB, free: 2.898 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.569e-05/0.8614, allocations: 8 kB / 1.183 GB, free: 2.891 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.946e-06/0.8614, allocations: 7.875 kB / 1.183 GB, free: 2.883 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.8614, allocations: 4 kB / 1.183 GB, free: 2.879 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003062/0.8617, allocations: 224.7 kB / 1.183 GB, free: 2.645 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 8.552e-05/0.8618, allocations: 105 kB / 1.183 GB, free: 2.523 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.409e-05/0.8619, allocations: 4 kB / 1.183 GB, free: 2.52 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001895/0.8621, allocations: 19.92 kB / 1.183 GB, free: 2.5 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.378e-05/0.8621, allocations: 7.984 kB / 1.183 GB, free: 2.492 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.552e-05/0.8621, allocations: 15.98 kB / 1.183 GB, free: 2.477 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 7.952e-05/0.8623, allocations: 120.9 kB / 1.184 GB, free: 2.359 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.323e-06/0.8623, allocations: 4 kB / 1.184 GB, free: 2.355 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003665/0.8626, allocations: 79.81 kB / 1.184 GB, free: 2.277 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.0003086/0.8629, allocations: 171 kB / 1.184 GB, free: 2.098 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0002242/0.8632, allocations: 129.5 kB / 1.184 GB, free: 1.973 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.8632, allocations: 0 / 1.184 GB, free: 1.973 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 6.656e-05/0.8633, allocations: 47.91 kB / 1.184 GB, free: 1.926 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004281/0.8637, allocations: 60.77 kB / 1.184 GB, free: 1.867 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007637/0.8645, allocations: 364.2 kB / 1.184 GB, free: 1.48 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003415/0.8648, allocations: 0.709 MB / 1.185 GB, free: 0.7461 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.849e-05/0.8649, allocations: 35.42 kB / 1.185 GB, free: 0.707 MB / 0.9044 GB Notification: Performance of SimCode: time 3.11e-07/0.8649, allocations: 0 / 1.185 GB, free: 0.707 MB / 0.9044 GB Notification: Performance of Templates: time 0.005366/0.8703, allocations: 3.182 MB / 1.188 GB, free: 13.55 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Media.Examples.WaterProperties.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches