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.001407/0.001407, allocations: 100.1 kB / 15.88 MB, free: 12 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.001626/0.001626, allocations: 199.3 kB / 16.79 MB, free: 6.809 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.389/1.389, allocations: 222.9 MB / 240.5 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.969/2.969, allocations: 461.9 MB / 0.7348 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001249/0.001249, allocations: 66.77 kB / 0.899 GB, free: 37.07 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3046/0.3059, allocations: 157.4 MB / 1.053 GB, free: 8.336 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.02252/0.3285, allocations: 23.15 MB / 1.075 GB, free: 1.094 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.007313/0.3358, allocations: 5.115 MB / 1.08 GB, free: 11.97 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009535/0.3368, allocations: 23.81 kB / 1.08 GB, free: 11.95 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0008105/0.3376, allocations: 230.7 kB / 1.081 GB, free: 11.72 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.002067/0.3397, allocations: 0.731 MB / 1.081 GB, free: 10.98 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.001855/0.3416, allocations: 0.6871 MB / 1.082 GB, free: 10.3 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.002293/0.3439, allocations: 2.161 MB / 1.084 GB, free: 8.129 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006283/0.3445, allocations: 421.4 kB / 1.084 GB, free: 7.719 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009408/0.3455, allocations: 0.5328 MB / 1.085 GB, free: 7.184 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005644/0.3461, allocations: 457.9 kB / 1.085 GB, free: 6.734 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 6.841e-05/0.3461, allocations: 31.94 kB / 1.085 GB, free: 6.703 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001081/0.3472, allocations: 462.9 kB / 1.086 GB, free: 6.25 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.000149/0.3474, allocations: 119.5 kB / 1.086 GB, free: 6.133 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0003039/0.3477, allocations: 290.5 kB / 1.086 GB, free: 5.848 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0007914/0.3485, allocations: 0.6744 MB / 1.087 GB, free: 5.172 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.3485, allocations: 0 / 1.087 GB, free: 5.172 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.132e-06/0.3485, allocations: 0 / 1.087 GB, free: 5.172 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 8.486e-06/0.3485, allocations: 0 / 1.087 GB, free: 5.172 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.001446/0.35, allocations: 0.8843 MB / 1.088 GB, free: 4.238 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.087e-05/0.35, allocations: 11.97 kB / 1.088 GB, free: 4.227 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002165/0.3503, allocations: 68.19 kB / 1.088 GB, free: 4.16 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008934/0.3512, allocations: 0.561 MB / 1.088 GB, free: 3.559 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.832e-05/0.3512, allocations: 36.88 kB / 1.088 GB, free: 3.523 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.252e-05/0.3513, allocations: 40 kB / 1.089 GB, free: 3.484 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006562/0.3519, allocations: 448.7 kB / 1.089 GB, free: 3.023 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.538e-05/0.352, allocations: 0 / 1.089 GB, free: 3.023 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.944e-05/0.352, allocations: 16 kB / 1.089 GB, free: 3.008 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.125e-05/0.352, allocations: 8 kB / 1.089 GB, free: 3 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004987/0.3525, allocations: 303.8 kB / 1.089 GB, free: 2.703 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.002506/0.3551, allocations: 1.919 MB / 1.091 GB, free: 0.6562 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005013/0.3556, allocations: 262.5 kB / 1.091 GB, free: 404 kB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000171/0.3557, allocations: 120.8 kB / 1.092 GB, free: 280 kB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008274/0.3566, allocations: 0.8506 MB / 1.092 GB, free: 15.24 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.733e-05/0.3566, allocations: 38.5 kB / 1.092 GB, free: 15.19 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=26): time 1.403e-06/0.3566, allocations: 0 / 1.092 GB, free: 15.19 MB / 0.8575 GB Notification: Performance of matching and sorting (n=26): time 0.0006778/0.3573, allocations: 369.6 kB / 1.093 GB, free: 14.82 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.636e-05/0.3574, allocations: 59.28 kB / 1.093 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005157/0.3579, allocations: 474 kB / 1.093 GB, free: 14.28 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.309e-05/0.3579, allocations: 33.7 kB / 1.093 GB, free: 14.24 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.000197/0.3581, allocations: 260 kB / 1.094 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 7.918e-05/0.3582, allocations: 94.59 kB / 1.094 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001216/0.3583, allocations: 69.92 kB / 1.094 GB, free: 13.81 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001464/0.3585, allocations: 358.8 kB / 1.094 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001637/0.3587, allocations: 92.61 kB / 1.094 GB, free: 13.36 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002462/0.3589, allocations: 180 kB / 1.094 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000439/0.3594, allocations: 283.2 kB / 1.095 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.608e-06/0.3594, allocations: 3.938 kB / 1.095 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006174/0.36, allocations: 360.8 kB / 1.095 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.282e-05/0.36, allocations: 4 kB / 1.095 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.116e-05/0.3601, allocations: 4.219 kB / 1.095 GB, free: 12.49 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.158e-05/0.3601, allocations: 4 kB / 1.095 GB, free: 12.49 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002826/0.3604, allocations: 79.84 kB / 1.095 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.121e-05/0.3604, allocations: 3.938 kB / 1.095 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003432/0.3608, allocations: 43.58 kB / 1.095 GB, free: 12.36 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.455e-05/0.3608, allocations: 19.98 kB / 1.095 GB, free: 12.34 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.000232/0.3611, allocations: 185.6 kB / 1.095 GB, free: 12.15 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.626e-05/0.3612, allocations: 47.44 kB / 1.095 GB, free: 12.11 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000829/0.362, allocations: 469 kB / 1.096 GB, free: 11.64 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.933e-05/0.362, allocations: 11.92 kB / 1.096 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.362, allocations: 0 / 1.096 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006793/0.3627, allocations: 0.5701 MB / 1.096 GB, free: 10.99 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001989/0.3647, allocations: 1.15 MB / 1.097 GB, free: 9.746 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.976e-06/0.3647, allocations: 11.94 kB / 1.097 GB, free: 9.734 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002472/0.365, allocations: 51.97 kB / 1.097 GB, free: 9.684 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.288e-06/0.365, allocations: 0 / 1.097 GB, free: 9.684 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.68e-05/0.365, allocations: 15.98 kB / 1.097 GB, free: 9.668 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.949e-06/0.3651, allocations: 3.938 kB / 1.097 GB, free: 9.664 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.3651, allocations: 8.188 kB / 1.097 GB, free: 9.656 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009144/0.366, allocations: 0.6599 MB / 1.098 GB, free: 8.961 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002092/0.3662, allocations: 172.3 kB / 1.098 GB, free: 8.773 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.885e-05/0.3663, allocations: 12 kB / 1.098 GB, free: 8.762 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002889/0.3666, allocations: 23.86 kB / 1.098 GB, free: 8.738 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.396e-05/0.3666, allocations: 19.97 kB / 1.098 GB, free: 8.719 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.704e-05/0.3667, allocations: 23.92 kB / 1.098 GB, free: 8.695 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0003892/0.3671, allocations: 338.9 kB / 1.099 GB, free: 8.367 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3671, allocations: 0 / 1.099 GB, free: 8.367 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0006811/0.3678, allocations: 195.8 kB / 1.099 GB, free: 8.176 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.0006715/0.3684, allocations: 289.4 kB / 1.099 GB, free: 7.891 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0005446/0.369, allocations: 283.7 kB / 1.099 GB, free: 7.613 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.369, allocations: 0 / 1.099 GB, free: 7.613 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002395/0.3692, allocations: 174.9 kB / 1.1 GB, free: 7.445 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001538/0.3708, allocations: 313.8 kB / 1.1 GB, free: 7.145 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001873/0.3727, allocations: 1.274 MB / 1.101 GB, free: 5.816 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004827/0.3732, allocations: 0.8746 MB / 1.102 GB, free: 4.914 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001508/0.3733, allocations: 55.42 kB / 1.102 GB, free: 4.859 MB / 0.8575 GB Notification: Performance of SimCode: time 4.51e-07/0.3733, allocations: 0 / 1.102 GB, free: 4.859 MB / 0.8575 GB Notification: Performance of Templates: time 0.01387/0.3872, allocations: 9.756 MB / 1.112 GB, free: 11.2 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