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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.0008512/0.0008514, allocations: 99.34 kB / 16.02 MB, free: 76 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.001088/0.001089, allocations: 186.2 kB / 16.92 MB, free: 6.75 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.479/1.479, allocations: 223.3 MB / 241 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.87/2.87, allocations: 462.6 MB / 0.737 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0006163/0.0006163, allocations: 9.938 kB / 0.9034 GB, free: 36.46 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3488/0.3494, allocations: 159.6 MB / 1.059 GB, free: 4.98 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.02778/0.3772, allocations: 22.51 MB / 1.081 GB, free: 14.39 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.009544/0.3868, allocations: 5.066 MB / 1.086 GB, free: 9.309 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001254/0.3881, allocations: 23.81 kB / 1.086 GB, free: 9.285 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.001064/0.3892, allocations: 222.7 kB / 1.086 GB, free: 9.066 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.002713/0.3919, allocations: 0.7334 MB / 1.087 GB, free: 8.332 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.002279/0.3942, allocations: 0.6849 MB / 1.088 GB, free: 7.652 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.002981/0.3972, allocations: 2.171 MB / 1.09 GB, free: 5.473 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009985/0.3982, allocations: 396.9 kB / 1.09 GB, free: 5.09 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001362/0.3996, allocations: 0.525 MB / 1.091 GB, free: 4.562 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009156/0.4006, allocations: 446 kB / 1.091 GB, free: 4.125 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0001082/0.4007, allocations: 20 kB / 1.091 GB, free: 4.105 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001356/0.402, allocations: 454.9 kB / 1.092 GB, free: 3.66 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.000205/0.4023, allocations: 115.5 kB / 1.092 GB, free: 3.547 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.000538/0.4028, allocations: 312.2 kB / 1.092 GB, free: 3.234 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.001219/0.404, allocations: 0.6625 MB / 1.093 GB, free: 2.57 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 7.464e-06/0.4041, allocations: 0 / 1.093 GB, free: 2.57 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.926e-06/0.4041, allocations: 0 / 1.093 GB, free: 2.57 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 2.307e-05/0.4041, allocations: 0 / 1.093 GB, free: 2.57 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.001916/0.406, allocations: 0.7792 MB / 1.094 GB, free: 1.742 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.919e-05/0.4061, allocations: 15.97 kB / 1.094 GB, free: 1.727 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003077/0.4064, allocations: 68.19 kB / 1.094 GB, free: 1.66 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001434/0.4078, allocations: 0.5649 MB / 1.094 GB, free: 1.055 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.05e-05/0.4079, allocations: 32.94 kB / 1.094 GB, free: 1.023 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.941e-05/0.408, allocations: 43.94 kB / 1.094 GB, free: 0.9805 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000803/0.4088, allocations: 436.7 kB / 1.095 GB, free: 0.5312 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.74e-05/0.4088, allocations: 4 kB / 1.095 GB, free: 0.5273 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.352e-05/0.4089, allocations: 16 kB / 1.095 GB, free: 0.5117 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.25e-05/0.4089, allocations: 8 kB / 1.095 GB, free: 0.5039 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005644/0.4095, allocations: 303.8 kB / 1.095 GB, free: 212 kB / 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.003251/0.4128, allocations: 1.931 MB / 1.097 GB, free: 14.14 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005353/0.4133, allocations: 258.8 kB / 1.097 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001944/0.4135, allocations: 128.7 kB / 1.097 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001072/0.4146, allocations: 0.8624 MB / 1.098 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.476e-05/0.4146, allocations: 34.56 kB / 1.098 GB, free: 12.66 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=26): time 2.134e-06/0.4147, allocations: 0 / 1.098 GB, free: 12.66 MB / 0.8575 GB Notification: Performance of matching and sorting (n=26): time 0.0007567/0.4154, allocations: 366.4 kB / 1.098 GB, free: 12.3 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.209e-05/0.4155, allocations: 63.33 kB / 1.099 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006669/0.4161, allocations: 470 kB / 1.099 GB, free: 11.75 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.034e-05/0.4162, allocations: 33.7 kB / 1.099 GB, free: 11.71 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002238/0.4164, allocations: 260 kB / 1.099 GB, free: 11.46 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001096/0.4165, allocations: 98.58 kB / 1.099 GB, free: 11.36 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.72e-05/0.4166, allocations: 33.7 kB / 1.099 GB, free: 11.32 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001661/0.4168, allocations: 358.8 kB / 1.1 GB, free: 10.96 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001952/0.417, allocations: 100.5 kB / 1.1 GB, free: 10.86 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000229/0.4172, allocations: 168 kB / 1.1 GB, free: 10.68 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004281/0.4177, allocations: 287.2 kB / 1.1 GB, free: 10.37 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.4177, allocations: 4 kB / 1.1 GB, free: 10.37 MB / 0.8575 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006185/0.4183, allocations: 356.9 kB / 1.101 GB, free: 10.01 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.341e-05/0.4183, allocations: 9.406 kB / 1.101 GB, free: 10 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.784e-06/0.4183, allocations: 0 / 1.101 GB, free: 10 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.808e-05/0.4184, allocations: 4 kB / 1.101 GB, free: 10 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002837/0.4187, allocations: 71.84 kB / 1.101 GB, free: 9.93 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.574e-05/0.4187, allocations: 8.156 kB / 1.101 GB, free: 9.922 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003421/0.4191, allocations: 47.58 kB / 1.101 GB, free: 9.875 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.581e-05/0.4191, allocations: 19.98 kB / 1.101 GB, free: 9.855 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.000242/0.4194, allocations: 178.4 kB / 1.101 GB, free: 9.672 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001017/0.4195, allocations: 51.38 kB / 1.101 GB, free: 9.621 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000847/0.4203, allocations: 473 kB / 1.101 GB, free: 9.148 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.671e-05/0.4204, allocations: 11.98 kB / 1.101 GB, free: 9.137 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.734e-06/0.4204, allocations: 7.984 kB / 1.101 GB, free: 9.129 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005876/0.421, allocations: 0.574 MB / 1.102 GB, free: 8.488 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001971/0.423, allocations: 1.157 MB / 1.103 GB, free: 7.238 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.423, allocations: 0 / 1.103 GB, free: 7.238 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002448/0.4232, allocations: 51.97 kB / 1.103 GB, free: 7.188 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.047e-06/0.4232, allocations: 4 kB / 1.103 GB, free: 7.184 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.73e-05/0.4233, allocations: 8 kB / 1.103 GB, free: 7.176 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.917e-06/0.4233, allocations: 16.11 kB / 1.103 GB, free: 7.16 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.4233, allocations: 0 / 1.103 GB, free: 7.16 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009224/0.4242, allocations: 0.6716 MB / 1.104 GB, free: 6.453 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002471/0.4245, allocations: 172.4 kB / 1.104 GB, free: 6.266 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.233e-05/0.4246, allocations: 8 kB / 1.104 GB, free: 6.258 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003044/0.4249, allocations: 27.83 kB / 1.104 GB, free: 6.23 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.449e-05/0.4249, allocations: 23.97 kB / 1.104 GB, free: 6.207 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.49e-05/0.425, allocations: 23.92 kB / 1.104 GB, free: 6.184 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0004423/0.4254, allocations: 338.9 kB / 1.104 GB, free: 5.855 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4254, allocations: 0 / 1.104 GB, free: 5.855 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0007153/0.4262, allocations: 195.8 kB / 1.105 GB, free: 5.664 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.0007389/0.4269, allocations: 297 kB / 1.105 GB, free: 5.375 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0005471/0.4275, allocations: 287.6 kB / 1.105 GB, free: 5.094 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.4275, allocations: 0 / 1.105 GB, free: 5.094 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002634/0.4277, allocations: 164.5 kB / 1.105 GB, free: 4.934 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00177/0.4295, allocations: 318.5 kB / 1.106 GB, free: 4.629 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002101/0.4316, allocations: 1.34 MB / 1.107 GB, free: 3.234 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004833/0.4322, allocations: 0.8669 MB / 1.108 GB, free: 2.336 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001443/0.4323, allocations: 55.42 kB / 1.108 GB, free: 2.285 MB / 0.8575 GB Notification: Performance of SimCode: time 7.31e-07/0.4323, allocations: 0 / 1.108 GB, free: 2.285 MB / 0.8575 GB Notification: Performance of Templates: time 0.01825/0.4506, allocations: 9.691 MB / 1.117 GB, free: 8.68 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/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