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.001472/0.001472, allocations: 111.3 kB / 15.23 MB, free: 0.6367 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.001794/0.001794, allocations: 193.6 kB / 16.14 MB, free: 6.734 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.445/1.445, allocations: 222.9 MB / 239.8 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.921/2.921, allocations: 461.8 MB / 0.7342 GB, free: 15.05 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001348/0.001348, allocations: 69.27 kB / 0.8984 GB, free: 37.28 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3723/0.3737, allocations: 157.4 MB / 1.052 GB, free: 8.883 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.02624/0.4, allocations: 23.15 MB / 1.075 GB, free: 1.648 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00827/0.4083, allocations: 5.125 MB / 1.08 GB, free: 12.51 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001099/0.4094, allocations: 23.88 kB / 1.08 GB, free: 12.49 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0009592/0.4104, allocations: 218.7 kB / 1.08 GB, free: 12.27 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.002384/0.4128, allocations: 0.7465 MB / 1.081 GB, free: 11.52 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.001927/0.4148, allocations: 0.6838 MB / 1.081 GB, free: 10.85 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.002712/0.4175, allocations: 2.167 MB / 1.083 GB, free: 8.672 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007321/0.4182, allocations: 413.4 kB / 1.084 GB, free: 8.27 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001024/0.4193, allocations: 0.5329 MB / 1.084 GB, free: 7.734 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005867/0.4199, allocations: 465.9 kB / 1.085 GB, free: 7.277 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 6.635e-05/0.42, allocations: 28 kB / 1.085 GB, free: 7.25 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001108/0.4211, allocations: 458.9 kB / 1.085 GB, free: 6.801 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001422/0.4212, allocations: 115.6 kB / 1.085 GB, free: 6.688 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0003105/0.4215, allocations: 298.5 kB / 1.086 GB, free: 6.395 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.00124/0.4228, allocations: 0.8997 MB / 1.087 GB, free: 5.492 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.4228, allocations: 0 / 1.087 GB, free: 5.492 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.573e-06/0.4228, allocations: 3.938 kB / 1.087 GB, free: 5.488 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 8.556e-06/0.4228, allocations: 0 / 1.087 GB, free: 5.488 MB / 0.8419 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.001491/0.4243, allocations: 0.8843 MB / 1.087 GB, free: 4.555 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.4244, allocations: 8.031 kB / 1.087 GB, free: 4.547 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002407/0.4246, allocations: 72.19 kB / 1.087 GB, free: 4.477 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009564/0.4256, allocations: 0.5649 MB / 1.088 GB, free: 3.875 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.021e-05/0.4256, allocations: 32.94 kB / 1.088 GB, free: 3.844 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.612e-05/0.4257, allocations: 36 kB / 1.088 GB, free: 3.809 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007194/0.4264, allocations: 440.7 kB / 1.089 GB, free: 3.355 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.751e-05/0.4265, allocations: 0 / 1.089 GB, free: 3.355 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.207e-05/0.4265, allocations: 19.98 kB / 1.089 GB, free: 3.336 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.324e-05/0.4265, allocations: 11.98 kB / 1.089 GB, free: 3.324 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005465/0.4271, allocations: 303.8 kB / 1.089 GB, free: 3.027 MB / 0.8419 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.002709/0.4298, allocations: 1.916 MB / 1.091 GB, free: 0.9844 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005125/0.4303, allocations: 253.3 kB / 1.091 GB, free: 0.7305 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001998/0.4306, allocations: 124.8 kB / 1.091 GB, free: 0.6055 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000893/0.4315, allocations: 0.8545 MB / 1.092 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.246e-05/0.4315, allocations: 38.5 kB / 1.092 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=26): time 1.844e-06/0.4315, allocations: 0 / 1.092 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of matching and sorting (n=26): time 0.0007319/0.4323, allocations: 362 kB / 1.092 GB, free: 15.16 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.597e-05/0.4323, allocations: 59.34 kB / 1.092 GB, free: 15.09 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000565/0.4329, allocations: 470 kB / 1.093 GB, free: 14.62 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.242e-05/0.4329, allocations: 33.7 kB / 1.093 GB, free: 14.58 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001964/0.4331, allocations: 264.1 kB / 1.093 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 9.29e-05/0.4332, allocations: 94.59 kB / 1.093 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001176/0.4333, allocations: 77.86 kB / 1.093 GB, free: 14.14 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001636/0.4335, allocations: 358.8 kB / 1.094 GB, free: 13.78 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001676/0.4337, allocations: 96.59 kB / 1.094 GB, free: 13.69 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002451/0.4339, allocations: 176 kB / 1.094 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004157/0.4344, allocations: 279.2 kB / 1.094 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.4344, allocations: 0 / 1.094 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006262/0.435, allocations: 368.8 kB / 1.094 GB, free: 12.83 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.654e-05/0.435, allocations: 4 kB / 1.094 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/0.435, allocations: 4 kB / 1.094 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.425e-05/0.4351, allocations: 4 kB / 1.094 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002864/0.4354, allocations: 80.05 kB / 1.095 GB, free: 12.74 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.083e-05/0.4354, allocations: 7.938 kB / 1.095 GB, free: 12.73 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003104/0.4357, allocations: 47.52 kB / 1.095 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.6e-05/0.4357, allocations: 12 kB / 1.095 GB, free: 12.67 MB / 0.8575 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.0002048/0.4359, allocations: 181.7 kB / 1.095 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.503e-05/0.436, allocations: 47.44 kB / 1.095 GB, free: 12.44 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008096/0.4369, allocations: 473 kB / 1.095 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.117e-05/0.4369, allocations: 11.94 kB / 1.095 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.183e-06/0.4369, allocations: 4 kB / 1.095 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000583/0.4375, allocations: 0.5662 MB / 1.096 GB, free: 11.32 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001862/0.4394, allocations: 1.149 MB / 1.097 GB, free: 10.07 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.558e-06/0.4394, allocations: 0 / 1.097 GB, free: 10.07 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002348/0.4396, allocations: 51.92 kB / 1.097 GB, free: 10.02 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.165e-06/0.4396, allocations: 7.984 kB / 1.097 GB, free: 10.02 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.408e-05/0.4397, allocations: 8 kB / 1.097 GB, free: 10.01 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.771e-06/0.4397, allocations: 7.938 kB / 1.097 GB, free: 10 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.4397, allocations: 0 / 1.097 GB, free: 10 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008767/0.4406, allocations: 0.6648 MB / 1.098 GB, free: 9.301 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002107/0.4408, allocations: 168.4 kB / 1.098 GB, free: 9.117 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.55e-05/0.4409, allocations: 8 kB / 1.098 GB, free: 9.109 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003077/0.4412, allocations: 27.86 kB / 1.098 GB, free: 9.082 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.094e-05/0.4413, allocations: 23.97 kB / 1.098 GB, free: 9.059 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.66e-05/0.4413, allocations: 19.92 kB / 1.098 GB, free: 9.039 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.000422/0.4417, allocations: 342.9 kB / 1.098 GB, free: 8.707 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.71e-07/0.4417, allocations: 0 / 1.098 GB, free: 8.707 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0006749/0.4424, allocations: 195.8 kB / 1.098 GB, free: 8.516 MB / 0.8575 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.0006762/0.4431, allocations: 286.5 kB / 1.099 GB, free: 8.234 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0005338/0.4436, allocations: 296 kB / 1.099 GB, free: 7.945 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.4437, allocations: 0 / 1.099 GB, free: 7.945 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002472/0.4439, allocations: 167.7 kB / 1.099 GB, free: 7.781 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001605/0.4455, allocations: 321.6 kB / 1.099 GB, free: 7.469 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001906/0.4474, allocations: 1.245 MB / 1.101 GB, free: 6.176 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004641/0.4479, allocations: 0.8669 MB / 1.102 GB, free: 5.277 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0004182/0.4483, allocations: 120.6 kB / 1.102 GB, free: 5.156 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001154/0.4485, allocations: 55.36 kB / 1.102 GB, free: 5.105 MB / 0.8575 GB Notification: Performance of SimCode: time 1.021e-06/0.4485, allocations: 0 / 1.102 GB, free: 5.105 MB / 0.8575 GB Notification: Performance of Templates: time 0.02205/0.4705, allocations: 11.57 MB / 1.113 GB, free: 9.695 MB / 0.8731 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