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.006801/0.006801, allocations: 104.5 kB / 15.71 MB, free: 6.031 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.001474/0.001474, allocations: 196.4 kB / 16.65 MB, free: 5.969 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.359/1.359, allocations: 222.9 MB / 240.3 MB, free: 15.16 MB / 206.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.235/2.235, allocations: 390.3 MB / 0.6648 GB, free: 0.5508 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001349/0.001349, allocations: 63.91 kB / 0.9509 GB, free: 7.539 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9294/0.9308, allocations: 140.4 MB / 1.088 GB, free: 5.453 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterProperties): time 0.006994/0.9378, allocations: 4.714 MB / 1.093 GB, free: 2.043 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.003031/0.9409, allocations: 2.708 MB / 1.095 GB, free: 116 kB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001232/0.941, allocations: 0.75 kB / 1.095 GB, free: 116 kB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0003144/0.9414, allocations: 46.34 kB / 1.095 GB, free: 92 kB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0003405/0.9418, allocations: 96.48 kB / 1.095 GB, free: 28 kB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001743/0.9435, allocations: 0.5013 MB / 1.096 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.0003947/0.9439, allocations: 237.5 kB / 1.096 GB, free: 15.66 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 6.534e-05/0.944, allocations: 13.75 kB / 1.096 GB, free: 15.66 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002567/0.9443, allocations: 118.2 kB / 1.096 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001819/0.9445, allocations: 87.7 kB / 1.096 GB, free: 15.57 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 3.614e-05/0.9445, allocations: 8.156 kB / 1.096 GB, free: 15.57 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008828/0.9454, allocations: 369.9 kB / 1.097 GB, free: 15.42 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 8.581e-05/0.9455, allocations: 38.73 kB / 1.097 GB, free: 15.4 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0001172/0.9456, allocations: 82.48 kB / 1.097 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.0006886/0.9463, allocations: 354.3 kB / 1.097 GB, free: 15.25 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 6.171e-06/0.9463, allocations: 0.9688 kB / 1.097 GB, free: 15.25 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.883e-06/0.9463, allocations: 4 kB / 1.097 GB, free: 15.25 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 7.514e-06/0.9464, allocations: 0.7031 kB / 1.097 GB, free: 15.25 MB / 0.8731 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.0008554/0.9472, allocations: 0.5032 MB / 1.098 GB, free: 14.79 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.687e-05/0.9473, allocations: 10.47 kB / 1.098 GB, free: 14.79 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001936/0.9475, allocations: 22.59 kB / 1.098 GB, free: 14.78 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003484/0.9478, allocations: 213.6 kB / 1.098 GB, free: 14.56 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.009e-05/0.9479, allocations: 11.05 kB / 1.098 GB, free: 14.56 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.498e-05/0.9479, allocations: 15.16 kB / 1.098 GB, free: 14.55 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004993/0.9484, allocations: 253.6 kB / 1.098 GB, free: 14.41 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.269e-05/0.9484, allocations: 0.625 kB / 1.098 GB, free: 14.41 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.813e-05/0.9485, allocations: 7.656 kB / 1.098 GB, free: 14.41 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.136e-05/0.9485, allocations: 5.844 kB / 1.098 GB, free: 14.41 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000644/0.9492, allocations: 433.1 kB / 1.099 GB, free: 14.32 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001189/0.9504, allocations: 0.9429 MB / 1.099 GB, free: 13.49 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003231/0.9507, allocations: 169.6 kB / 1.1 GB, free: 13.42 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001129/0.9508, allocations: 64.89 kB / 1.1 GB, free: 13.39 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001533/0.9524, allocations: 1.829 MB / 1.101 GB, free: 11.36 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.844e-05/0.9524, allocations: 33.17 kB / 1.102 GB, free: 11.32 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=15): time 1.463e-06/0.9524, allocations: 0 / 1.102 GB, free: 11.32 MB / 0.8731 GB Notification: Performance of matching and sorting (n=15): time 0.000354/0.9528, allocations: 148.3 kB / 1.102 GB, free: 11.25 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.026e-05/0.9528, allocations: 58.06 kB / 1.102 GB, free: 11.18 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001589/0.953, allocations: 175.2 kB / 1.102 GB, free: 11.05 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 3.092e-05/0.953, allocations: 35.27 kB / 1.102 GB, free: 11.01 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 9.854e-05/0.9531, allocations: 149.8 kB / 1.102 GB, free: 10.87 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 4.59e-05/0.9532, allocations: 46.3 kB / 1.102 GB, free: 10.84 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.066e-05/0.9533, allocations: 50.02 kB / 1.102 GB, free: 10.8 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001218/0.9534, allocations: 326.5 kB / 1.102 GB, free: 10.48 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.178e-05/0.9535, allocations: 43.2 kB / 1.103 GB, free: 10.47 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001526/0.9536, allocations: 145.4 kB / 1.103 GB, free: 10.32 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003018/0.954, allocations: 203.4 kB / 1.103 GB, free: 10.14 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.954, allocations: 4.844 kB / 1.103 GB, free: 10.13 MB / 0.8731 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003566/0.9543, allocations: 212.9 kB / 1.103 GB, free: 10.04 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/0.9544, allocations: 6.625 kB / 1.103 GB, free: 10.04 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.829e-06/0.9544, allocations: 5.344 kB / 1.103 GB, free: 10.04 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.763e-05/0.9544, allocations: 8.469 kB / 1.103 GB, free: 10.03 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002021/0.9546, allocations: 54.81 kB / 1.103 GB, free: 10.02 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.766e-05/0.9547, allocations: 14.19 kB / 1.103 GB, free: 10.02 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001134/0.9548, allocations: 24.66 kB / 1.103 GB, free: 10 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.283e-05/0.9548, allocations: 15.77 kB / 1.103 GB, free: 9.996 MB / 0.8731 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.0001114/0.9549, allocations: 131.3 kB / 1.103 GB, free: 9.867 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.657e-05/0.955, allocations: 17.3 kB / 1.103 GB, free: 9.859 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003254/0.9553, allocations: 153.7 kB / 1.103 GB, free: 9.777 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.401e-05/0.9553, allocations: 10.73 kB / 1.103 GB, free: 9.77 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.9553, allocations: 3.938 kB / 1.103 GB, free: 9.766 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.9554, allocations: 1.859 kB / 1.103 GB, free: 9.766 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002543/0.9556, allocations: 212.3 kB / 1.104 GB, free: 9.555 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.9556, allocations: 0.7031 kB / 1.104 GB, free: 9.555 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001004/0.9557, allocations: 25.47 kB / 1.104 GB, free: 9.551 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.9557, allocations: 0.9688 kB / 1.104 GB, free: 9.551 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.315e-05/0.9558, allocations: 7.344 kB / 1.104 GB, free: 9.547 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.898e-06/0.9558, allocations: 4.641 kB / 1.104 GB, free: 9.543 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.9558, allocations: 1.031 kB / 1.104 GB, free: 9.543 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002606/0.956, allocations: 224.2 kB / 1.104 GB, free: 9.375 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 9.823e-05/0.9561, allocations: 111.3 kB / 1.104 GB, free: 9.266 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.477e-05/0.9562, allocations: 1.891 kB / 1.104 GB, free: 9.266 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002127/0.9564, allocations: 19.14 kB / 1.104 GB, free: 9.258 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.503e-05/0.9564, allocations: 8.672 kB / 1.104 GB, free: 9.258 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.422e-05/0.9565, allocations: 12.52 kB / 1.104 GB, free: 9.254 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 9.244e-05/0.9566, allocations: 120.5 kB / 1.104 GB, free: 9.168 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.7e-07/0.9566, allocations: 7.938 kB / 1.104 GB, free: 9.16 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0004258/0.957, allocations: 72.16 kB / 1.104 GB, free: 9.148 MB / 0.8731 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.0003942/0.9574, allocations: 180.1 kB / 1.104 GB, free: 9.027 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0002657/0.9577, allocations: 116.4 kB / 1.105 GB, free: 8.996 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.564e-06/0.9577, allocations: 0.75 kB / 1.105 GB, free: 8.996 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 7.744e-05/0.9578, allocations: 45.27 kB / 1.105 GB, free: 8.984 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004647/0.9582, allocations: 61.83 kB / 1.105 GB, free: 8.961 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007789/0.959, allocations: 335.1 kB / 1.105 GB, free: 8.762 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002924/0.9593, allocations: 0.7187 MB / 1.106 GB, free: 8.059 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001667/0.9595, allocations: 45.39 kB / 1.106 GB, free: 8.039 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.682e-05/0.9596, allocations: 22.77 kB / 1.106 GB, free: 8.031 MB / 0.8731 GB Notification: Performance of SimCode: time 2.31e-07/0.9596, allocations: 0 / 1.106 GB, free: 8.031 MB / 0.8731 GB Notification: Performance of Templates: time 0.007788/0.9674, allocations: 3.427 MB / 1.109 GB, free: 7.68 MB / 0.8731 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.WaterProperties.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches