Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_9_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_9_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.001286/0.001285, allocations: 92.16 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001548/0.001548, allocations: 172.9 kB / 16.92 MB, free: 6.652 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.42/1.42, allocations: 223.3 MB / 241 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.435/2.435, allocations: 390.9 MB / 0.667 GB, free: 2.355 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003351/0.0003352, allocations: 12 kB / 0.8166 GB, free: 13.29 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6193/0.6197, allocations: 142.4 MB / 0.9557 GB, free: 7.863 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterProperties): time 0.004158/0.6239, allocations: 4.375 MB / 0.96 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00225/0.6262, allocations: 2.672 MB / 0.9626 GB, free: 2.141 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001036/0.6263, allocations: 1.375 kB / 0.9626 GB, free: 2.141 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002481/0.6265, allocations: 38.62 kB / 0.9626 GB, free: 2.109 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002603/0.6268, allocations: 90.59 kB / 0.9627 GB, free: 2.035 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.001155/0.628, allocations: 462.3 kB / 0.9631 GB, free: 1.711 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002946/0.6283, allocations: 309.4 kB / 0.9634 GB, free: 1.551 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 5.184e-05/0.6283, allocations: 8.844 kB / 0.9634 GB, free: 1.547 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001921/0.6285, allocations: 112.8 kB / 0.9636 GB, free: 1.492 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000145/0.6287, allocations: 94.84 kB / 0.9636 GB, free: 1.438 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.272e-05/0.6287, allocations: 11 kB / 0.9637 GB, free: 1.434 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007393/0.6295, allocations: 368 kB / 0.964 GB, free: 1.23 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.088e-05/0.6296, allocations: 39.55 kB / 0.964 GB, free: 1.203 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.354e-05/0.6297, allocations: 105 kB / 0.9641 GB, free: 1.129 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000377/0.63, allocations: 242.4 kB / 0.9644 GB, free: 1.004 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.63, allocations: 0 / 0.9644 GB, free: 1.004 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.753e-06/0.6301, allocations: 0 / 0.9644 GB, free: 1.004 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.119e-06/0.6301, allocations: 1.156 kB / 0.9644 GB, free: 1.004 MB / 0.7169 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.0005961/0.6307, allocations: 476.1 kB / 0.9648 GB, free: 0.543 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.986e-05/0.6307, allocations: 9.531 kB / 0.9648 GB, free: 0.543 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001507/0.6309, allocations: 24.88 kB / 0.9649 GB, free: 0.5312 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001651/0.631, allocations: 221.3 kB / 0.9651 GB, free: 296 kB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.629e-05/0.6311, allocations: 10.98 kB / 0.9651 GB, free: 292 kB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.421e-05/0.6311, allocations: 15.62 kB / 0.9651 GB, free: 288 kB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003375/0.6314, allocations: 253.2 kB / 0.9653 GB, free: 104 kB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.067e-06/0.6315, allocations: 0 / 0.9653 GB, free: 104 kB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.358e-05/0.6315, allocations: 8.438 kB / 0.9653 GB, free: 100 kB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.467e-05/0.6315, allocations: 4.75 kB / 0.9654 GB, free: 100 kB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004754/0.632, allocations: 428.4 kB / 0.9658 GB, free: 15.91 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001091/0.6331, allocations: 0.9495 MB / 0.9667 GB, free: 14.98 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002409/0.6334, allocations: 160.4 kB / 0.9668 GB, free: 14.9 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001145/0.6335, allocations: 62.22 kB / 0.9669 GB, free: 14.87 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001331/0.6348, allocations: 1.828 MB / 0.9687 GB, free: 12.77 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.788e-05/0.6349, allocations: 37.2 kB / 0.9687 GB, free: 12.73 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=15): time 2.895e-06/0.6349, allocations: 0 / 0.9687 GB, free: 12.73 MB / 0.7325 GB Notification: Performance of matching and sorting (n=15): time 0.000321/0.6352, allocations: 147 kB / 0.9689 GB, free: 12.65 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.385e-05/0.6352, allocations: 57.47 kB / 0.9689 GB, free: 12.58 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001412/0.6354, allocations: 172 kB / 0.9691 GB, free: 12.44 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.484e-05/0.6354, allocations: 30.98 kB / 0.9691 GB, free: 12.41 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 8.567e-05/0.6355, allocations: 140 kB / 0.9692 GB, free: 12.27 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.842e-05/0.6356, allocations: 53.86 kB / 0.9693 GB, free: 12.23 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.622e-05/0.6356, allocations: 24.72 kB / 0.9693 GB, free: 12.2 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001051/0.6357, allocations: 329.8 kB / 0.9696 GB, free: 11.88 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.78e-05/0.6358, allocations: 33.7 kB / 0.9697 GB, free: 11.86 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001269/0.6359, allocations: 141 kB / 0.9698 GB, free: 11.71 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002273/0.6362, allocations: 205.4 kB / 0.97 GB, free: 11.52 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.6362, allocations: 4.906 kB / 0.97 GB, free: 11.51 MB / 0.7325 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003363/0.6365, allocations: 217.5 kB / 0.9702 GB, free: 11.39 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/0.6365, allocations: 7.781 kB / 0.9702 GB, free: 11.39 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.107e-05/0.6366, allocations: 3.5 kB / 0.9702 GB, free: 11.39 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.951e-05/0.6366, allocations: 5.812 kB / 0.9702 GB, free: 11.39 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001818/0.6368, allocations: 60.72 kB / 0.9703 GB, free: 11.38 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.102e-05/0.6368, allocations: 5.5 kB / 0.9703 GB, free: 11.38 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001255/0.6369, allocations: 29.16 kB / 0.9703 GB, free: 11.36 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.739e-05/0.6369, allocations: 18.28 kB / 0.9703 GB, free: 11.35 MB / 0.7325 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.0001088/0.6371, allocations: 136.9 kB / 0.9705 GB, free: 11.21 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.504e-05/0.6371, allocations: 12.44 kB / 0.9705 GB, free: 11.21 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003001/0.6374, allocations: 156.5 kB / 0.9706 GB, free: 11.11 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.482e-05/0.6374, allocations: 10.05 kB / 0.9706 GB, free: 11.1 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.895e-06/0.6375, allocations: 0.7812 kB / 0.9706 GB, free: 11.1 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.6375, allocations: 4 kB / 0.9706 GB, free: 11.09 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002533/0.6377, allocations: 214.2 kB / 0.9708 GB, free: 10.86 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.6378, allocations: 0 / 0.9708 GB, free: 10.86 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.792e-05/0.6379, allocations: 23.2 kB / 0.9709 GB, free: 10.86 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.235e-06/0.6379, allocations: 1.031 kB / 0.9709 GB, free: 10.86 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.269e-05/0.6379, allocations: 6.188 kB / 0.9709 GB, free: 10.86 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.068e-06/0.6379, allocations: 4.906 kB / 0.9709 GB, free: 10.85 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.6379, allocations: 0 / 0.9709 GB, free: 10.85 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002318/0.6381, allocations: 224.8 kB / 0.9711 GB, free: 10.67 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 8.482e-05/0.6382, allocations: 118.4 kB / 0.9712 GB, free: 10.55 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.345e-05/0.6383, allocations: 0.75 kB / 0.9712 GB, free: 10.55 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000218/0.6385, allocations: 24.61 kB / 0.9712 GB, free: 10.54 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.264e-05/0.6385, allocations: 9.266 kB / 0.9712 GB, free: 10.53 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.279e-05/0.6385, allocations: 10 kB / 0.9712 GB, free: 10.53 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 9.14e-05/0.6386, allocations: 129.1 kB / 0.9714 GB, free: 10.43 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.9e-07/0.6386, allocations: 0 / 0.9714 GB, free: 10.43 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004283/0.6391, allocations: 73.94 kB / 0.9714 GB, free: 10.41 MB / 0.7325 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.0003034/0.6394, allocations: 187.1 kB / 0.9716 GB, free: 10.27 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002382/0.6396, allocations: 118.5 kB / 0.9717 GB, free: 10.23 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.6396, allocations: 1 kB / 0.9717 GB, free: 10.23 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 7.008e-05/0.6397, allocations: 48.28 kB / 0.9718 GB, free: 10.21 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004684/0.6402, allocations: 49.98 kB / 0.9718 GB, free: 10.19 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007257/0.6409, allocations: 467.8 kB / 0.9723 GB, free: 9.836 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002603/0.6412, allocations: 0.7157 MB / 0.973 GB, free: 9.121 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.379e-05/0.6413, allocations: 32.53 kB / 0.973 GB, free: 9.105 MB / 0.7325 GB Notification: Performance of SimCode: time 2.4e-07/0.6413, allocations: 0 / 0.973 GB, free: 9.105 MB / 0.7325 GB Notification: Performance of Templates: time 0.00555/0.6468, allocations: 3.145 MB / 0.9761 GB, free: 7.488 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Media.Examples.WaterProperties.makefile (rm -f Buildings_9_Buildings.Media.Examples.WaterProperties.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.WaterProperties.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.WaterProperties.pipe >> ../files/Buildings_9_Buildings.Media.Examples.WaterProperties.sim & ./Buildings_9_Buildings.Media.Examples.WaterProperties -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Media.Examples.WaterProperties.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Examples.WaterProperties_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Examples_WaterProperties.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.WaterProperties.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches