Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter.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.Fluid.Sensors.Examples.HeatMeter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senHeaFlo.Q_flow|heaFloRat.Q_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter") translateModel(Buildings.Fluid.Sensors.Examples.HeatMeter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senHeaFlo.Q_flow|heaFloRat.Q_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008239/0.008239, allocations: 101.7 kB / 15.73 MB, free: 5.59 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.001924/0.001924, allocations: 191.7 kB / 16.67 MB, free: 5.523 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.416/1.416, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.552/2.552, allocations: 461.9 MB / 0.7348 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001223, allocations: 63.91 kB / 1.054 GB, free: 7.688 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.899/0.9002, allocations: 157.4 MB / 1.208 GB, free: 13.61 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.02773/0.928, allocations: 23.24 MB / 1.23 GB, free: 6.289 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.009659/0.9377, allocations: 5.092 MB / 1.235 GB, free: 1.184 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001582/0.9393, allocations: 23.88 kB / 1.235 GB, free: 1.16 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.001532/0.9409, allocations: 286 kB / 1.236 GB, free: 0.8789 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.003164/0.9441, allocations: 0.8241 MB / 1.236 GB, free: 52 kB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.002396/0.9466, allocations: 0.7664 MB / 1.237 GB, free: 15.29 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.002614/0.9492, allocations: 1.625 MB / 1.239 GB, free: 13.66 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008566/0.9501, allocations: 485.2 kB / 1.239 GB, free: 13.19 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001795/0.9519, allocations: 0.6325 MB / 1.24 GB, free: 12.56 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009204/0.9528, allocations: 446.1 kB / 1.24 GB, free: 12.12 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0001474/0.953, allocations: 47.94 kB / 1.24 GB, free: 12.07 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001389/0.9544, allocations: 487.1 kB / 1.241 GB, free: 11.6 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0002439/0.9546, allocations: 147.4 kB / 1.241 GB, free: 11.45 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0005251/0.9552, allocations: 306.5 kB / 1.241 GB, free: 11.15 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.001862/0.957, allocations: 0.925 MB / 1.242 GB, free: 10.23 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.957, allocations: 0 / 1.242 GB, free: 10.23 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.683e-06/0.9571, allocations: 0 / 1.242 GB, free: 10.23 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.658e-05/0.9571, allocations: 0 / 1.242 GB, free: 10.23 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 94 * Number of variables: 94 Notification: Performance of Generate backend data structure: time 0.001411/0.9585, allocations: 0.8881 MB / 1.243 GB, free: 9.285 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.391e-05/0.9585, allocations: 12.03 kB / 1.243 GB, free: 9.273 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002104/0.9588, allocations: 64.19 kB / 1.243 GB, free: 9.211 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001071/0.9598, allocations: 0.5803 MB / 1.244 GB, free: 8.59 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.072e-05/0.9599, allocations: 33 kB / 1.244 GB, free: 8.559 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.779e-05/0.96, allocations: 40 kB / 1.244 GB, free: 8.52 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007053/0.9607, allocations: 436.7 kB / 1.244 GB, free: 8.074 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.798e-05/0.9607, allocations: 0 / 1.244 GB, free: 8.074 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.199e-05/0.9607, allocations: 16 kB / 1.244 GB, free: 8.059 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.313e-05/0.9608, allocations: 12 kB / 1.244 GB, free: 8.047 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005189/0.9613, allocations: 303.8 kB / 1.244 GB, free: 7.75 MB / 0.9669 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002745/0.9641, allocations: 1.915 MB / 1.246 GB, free: 5.707 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005203/0.9646, allocations: 262.7 kB / 1.247 GB, free: 5.441 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002326/0.9648, allocations: 124.7 kB / 1.247 GB, free: 5.316 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009513/0.9658, allocations: 0.8506 MB / 1.248 GB, free: 4.281 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.647e-05/0.9658, allocations: 34.56 kB / 1.248 GB, free: 4.238 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=26): time 1.302e-06/0.9658, allocations: 0 / 1.248 GB, free: 4.238 MB / 0.9669 GB Notification: Performance of matching and sorting (n=26): time 0.0006809/0.9665, allocations: 385.8 kB / 1.248 GB, free: 3.859 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.242e-05/0.9666, allocations: 55.41 kB / 1.248 GB, free: 3.793 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005259/0.9671, allocations: 474 kB / 1.248 GB, free: 3.316 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 4.424e-05/0.9672, allocations: 37.7 kB / 1.249 GB, free: 3.273 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002154/0.9674, allocations: 252.1 kB / 1.249 GB, free: 3.023 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 7.52e-05/0.9675, allocations: 94.64 kB / 1.249 GB, free: 2.93 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001145/0.9676, allocations: 77.92 kB / 1.249 GB, free: 2.848 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001509/0.9677, allocations: 354.8 kB / 1.249 GB, free: 2.492 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001629/0.9679, allocations: 100.6 kB / 1.249 GB, free: 2.395 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002285/0.9681, allocations: 168 kB / 1.25 GB, free: 2.207 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004413/0.9686, allocations: 287.2 kB / 1.25 GB, free: 1.902 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.9686, allocations: 0 / 1.25 GB, free: 1.902 MB / 0.9669 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005628/0.9692, allocations: 372.9 kB / 1.25 GB, free: 1.531 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.838e-05/0.9692, allocations: 4 kB / 1.25 GB, free: 1.527 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.9693, allocations: 0 / 1.25 GB, free: 1.527 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.63e-05/0.9693, allocations: 7.938 kB / 1.25 GB, free: 1.52 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002658/0.9695, allocations: 71.89 kB / 1.25 GB, free: 1.449 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.686e-06/0.9696, allocations: 4 kB / 1.25 GB, free: 1.445 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002603/0.9698, allocations: 39.53 kB / 1.25 GB, free: 1.406 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.169e-05/0.9699, allocations: 16 kB / 1.25 GB, free: 1.391 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (39): * Single equations (assignments): 39 * Array equations: 0 * 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.0002162/0.9701, allocations: 185.8 kB / 1.25 GB, free: 1.199 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.112e-05/0.9702, allocations: 47.44 kB / 1.25 GB, free: 1.152 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007781/0.971, allocations: 466.6 kB / 1.251 GB, free: 0.6914 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.341e-05/0.971, allocations: 15.94 kB / 1.251 GB, free: 0.6758 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.239e-06/0.971, allocations: 0 / 1.251 GB, free: 0.6758 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006466/0.9717, allocations: 0.5723 MB / 1.252 GB, free: 36 kB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001769/0.9734, allocations: 1.157 MB / 1.253 GB, free: 14.79 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.9735, allocations: 4 kB / 1.253 GB, free: 14.78 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002206/0.9737, allocations: 47.92 kB / 1.253 GB, free: 14.73 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.9737, allocations: 3.938 kB / 1.253 GB, free: 14.73 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.555e-05/0.9737, allocations: 15.98 kB / 1.253 GB, free: 14.71 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.845e-06/0.9737, allocations: 0 / 1.253 GB, free: 14.71 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.942e-06/0.9737, allocations: 11.94 kB / 1.253 GB, free: 14.7 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008676/0.9746, allocations: 0.6679 MB / 1.253 GB, free: 14 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001876/0.9748, allocations: 172.4 kB / 1.254 GB, free: 13.81 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.119e-05/0.9749, allocations: 8 kB / 1.254 GB, free: 13.8 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002733/0.9752, allocations: 19.98 kB / 1.254 GB, free: 13.79 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.572e-05/0.9752, allocations: 35.78 kB / 1.254 GB, free: 13.75 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.961e-05/0.9753, allocations: 11.98 kB / 1.254 GB, free: 13.74 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.00042/0.9757, allocations: 346.9 kB / 1.254 GB, free: 13.4 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.71e-07/0.9757, allocations: 0 / 1.254 GB, free: 13.4 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.000626/0.9764, allocations: 191.8 kB / 1.254 GB, free: 13.21 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (vol.dynBal.U,senT.T,senHeaFlo.T) * 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 (32): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.0006224/0.977, allocations: 303.2 kB / 1.254 GB, free: 12.92 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0005647/0.9776, allocations: 284 kB / 1.255 GB, free: 12.64 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.9776, allocations: 4.125 kB / 1.255 GB, free: 12.64 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002954/0.9779, allocations: 167.7 kB / 1.255 GB, free: 12.47 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00152/0.9794, allocations: 339.7 kB / 1.255 GB, free: 12.15 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001629/0.981, allocations: 1.052 MB / 1.256 GB, free: 11.05 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004218/0.9815, allocations: 0.8666 MB / 1.257 GB, free: 10.15 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0003381/0.9818, allocations: 132.6 kB / 1.257 GB, free: 10.02 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001089/0.9819, allocations: 55.42 kB / 1.257 GB, free: 9.965 MB / 0.9825 GB Notification: Performance of SimCode: time 2.7e-07/0.9819, allocations: 0 / 1.257 GB, free: 9.965 MB / 0.9825 GB Notification: Performance of Templates: time 0.02069/1.003, allocations: 12.21 MB / 1.269 GB, free: 13.92 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter.makefile (rm -f Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter.sim & ./Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Sensors_Examples_HeatMeter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches