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.001463/0.001464, allocations: 108.7 kB / 16.41 MB, free: 6.027 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.001619/0.001619, allocations: 186.2 kB / 17.34 MB, free: 5.633 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.399/1.399, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.662/2.662, allocations: 461.9 MB / 0.7354 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001485/0.001485, allocations: 63.91 kB / 1.055 GB, free: 7.645 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8386/0.8401, allocations: 157.4 MB / 1.208 GB, free: 13.59 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.02736/0.8675, allocations: 23.23 MB / 1.231 GB, free: 6.273 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.008165/0.8757, allocations: 5.099 MB / 1.236 GB, free: 1.164 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000983/0.8767, allocations: 23.88 kB / 1.236 GB, free: 1.141 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.001056/0.8778, allocations: 282 kB / 1.236 GB, free: 0.8633 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.002582/0.8804, allocations: 0.7811 MB / 1.237 GB, free: 80 kB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.002215/0.8827, allocations: 0.7702 MB / 1.238 GB, free: 15.31 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.002363/0.8851, allocations: 1.609 MB / 1.239 GB, free: 13.7 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008803/0.886, allocations: 481.3 kB / 1.24 GB, free: 13.23 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001818/0.8878, allocations: 0.6322 MB / 1.241 GB, free: 12.6 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008606/0.8887, allocations: 446 kB / 1.241 GB, free: 12.16 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0001451/0.8888, allocations: 44 kB / 1.241 GB, free: 12.12 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00128/0.8901, allocations: 499.1 kB / 1.241 GB, free: 11.63 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0002204/0.8903, allocations: 139.5 kB / 1.242 GB, free: 11.5 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0004638/0.8908, allocations: 302.5 kB / 1.242 GB, free: 11.2 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.001817/0.8926, allocations: 0.9289 MB / 1.243 GB, free: 10.27 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.8927, allocations: 0 / 1.243 GB, free: 10.27 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.543e-06/0.8927, allocations: 0 / 1.243 GB, free: 10.27 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 2.661e-05/0.8927, allocations: 0 / 1.243 GB, free: 10.27 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.001739/0.8945, allocations: 0.8842 MB / 1.244 GB, free: 9.332 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.049e-05/0.8945, allocations: 12.03 kB / 1.244 GB, free: 9.32 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002838/0.8948, allocations: 68.17 kB / 1.244 GB, free: 9.254 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00114/0.8959, allocations: 0.5767 MB / 1.244 GB, free: 8.637 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.507e-05/0.896, allocations: 36.94 kB / 1.244 GB, free: 8.602 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.974e-05/0.8961, allocations: 36 kB / 1.244 GB, free: 8.566 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007449/0.8968, allocations: 436.7 kB / 1.245 GB, free: 8.121 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.797e-05/0.8969, allocations: 3.984 kB / 1.245 GB, free: 8.117 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.381e-05/0.8969, allocations: 16 kB / 1.245 GB, free: 8.102 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.391e-05/0.8969, allocations: 8 kB / 1.245 GB, free: 8.094 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005255/0.8975, allocations: 315.8 kB / 1.245 GB, free: 7.785 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.002929/0.9004, allocations: 1.907 MB / 1.247 GB, free: 5.75 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005322/0.9009, allocations: 262.7 kB / 1.247 GB, free: 5.484 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001901/0.9012, allocations: 120.8 kB / 1.247 GB, free: 5.363 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008866/0.902, allocations: 0.8545 MB / 1.248 GB, free: 4.324 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.004e-05/0.9021, allocations: 34.56 kB / 1.248 GB, free: 4.281 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=26): time 2.425e-06/0.9021, allocations: 7.938 kB / 1.248 GB, free: 4.273 MB / 0.9669 GB Notification: Performance of matching and sorting (n=26): time 0.0007492/0.9029, allocations: 369.3 kB / 1.249 GB, free: 3.91 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.033e-05/0.9029, allocations: 59.34 kB / 1.249 GB, free: 3.84 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000666/0.9036, allocations: 474 kB / 1.249 GB, free: 3.363 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 5.106e-05/0.9036, allocations: 29.7 kB / 1.249 GB, free: 3.328 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002626/0.9039, allocations: 256.1 kB / 1.249 GB, free: 3.074 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001163/0.904, allocations: 98.64 kB / 1.249 GB, free: 2.977 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001397/0.9042, allocations: 73.92 kB / 1.25 GB, free: 2.898 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001723/0.9044, allocations: 358.8 kB / 1.25 GB, free: 2.539 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001682/0.9045, allocations: 100.6 kB / 1.25 GB, free: 2.441 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002348/0.9048, allocations: 175.9 kB / 1.25 GB, free: 2.246 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004076/0.9052, allocations: 279.2 kB / 1.25 GB, free: 1.949 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.9052, allocations: 0 / 1.25 GB, free: 1.949 MB / 0.9669 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006432/0.9059, allocations: 364.8 kB / 1.251 GB, free: 1.586 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.127e-05/0.9059, allocations: 8 kB / 1.251 GB, free: 1.578 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.784e-06/0.9059, allocations: 0 / 1.251 GB, free: 1.578 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.223e-05/0.9059, allocations: 4 kB / 1.251 GB, free: 1.574 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002887/0.9062, allocations: 83.83 kB / 1.251 GB, free: 1.492 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.015e-05/0.9062, allocations: 4 kB / 1.251 GB, free: 1.488 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003153/0.9066, allocations: 39.53 kB / 1.251 GB, free: 1.449 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.095e-05/0.9066, allocations: 23.92 kB / 1.251 GB, free: 1.426 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.0002427/0.9069, allocations: 178 kB / 1.251 GB, free: 1.242 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001184/0.907, allocations: 47.44 kB / 1.251 GB, free: 1.195 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008883/0.9079, allocations: 470.6 kB / 1.252 GB, free: 0.7305 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.19e-05/0.9079, allocations: 11.92 kB / 1.252 GB, free: 0.7188 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.9079, allocations: 0 / 1.252 GB, free: 0.7188 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005921/0.9085, allocations: 0.5684 MB / 1.252 GB, free: 84 kB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001995/0.9105, allocations: 1.157 MB / 1.253 GB, free: 14.83 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.072e-06/0.9106, allocations: 4.047 kB / 1.253 GB, free: 14.83 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002357/0.9108, allocations: 59.89 kB / 1.253 GB, free: 14.77 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.172e-06/0.9108, allocations: 0 / 1.253 GB, free: 14.77 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.182e-05/0.9109, allocations: 12 kB / 1.253 GB, free: 14.76 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.899e-06/0.9109, allocations: 3.938 kB / 1.253 GB, free: 14.75 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.37e-06/0.9109, allocations: 7.938 kB / 1.253 GB, free: 14.75 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000934/0.9118, allocations: 0.664 MB / 1.254 GB, free: 14.05 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002596/0.9121, allocations: 180.3 kB / 1.254 GB, free: 13.85 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.836e-05/0.9122, allocations: 15.98 kB / 1.254 GB, free: 13.84 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002918/0.9125, allocations: 8 kB / 1.254 GB, free: 13.83 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.122e-05/0.9125, allocations: 23.91 kB / 1.254 GB, free: 13.8 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.762e-05/0.9126, allocations: 19.92 kB / 1.254 GB, free: 13.79 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0004664/0.9131, allocations: 350.9 kB / 1.255 GB, free: 13.45 MB / 0.9825 GB Notification: Performance of sort global known variables: time 4.01e-07/0.9131, allocations: 0 / 1.255 GB, free: 13.45 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0007199/0.9138, allocations: 191.8 kB / 1.255 GB, free: 13.26 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.0007769/0.9146, allocations: 308.2 kB / 1.255 GB, free: 12.96 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0005615/0.9152, allocations: 296 kB / 1.255 GB, free: 12.67 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 9.247e-06/0.9152, allocations: 0 / 1.255 GB, free: 12.67 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002468/0.9154, allocations: 159.8 kB / 1.255 GB, free: 12.51 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001668/0.9171, allocations: 328.8 kB / 1.256 GB, free: 12.2 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001927/0.919, allocations: 1.085 MB / 1.257 GB, free: 11.05 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005229/0.9196, allocations: 0.8627 MB / 1.258 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000172/0.9198, allocations: 55.42 kB / 1.258 GB, free: 10.11 MB / 0.9825 GB Notification: Performance of SimCode: time 6.11e-07/0.9198, allocations: 3.938 kB / 1.258 GB, free: 10.11 MB / 0.9825 GB Notification: Performance of Templates: time 0.01634/0.9361, allocations: 9.914 MB / 1.267 GB, free: 292 kB / 0.9825 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches