Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_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_10_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.001968/0.001968, allocations: 105.3 kB / 16.27 MB, free: 6.008 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.002539/0.002539, allocations: 187.4 kB / 17.2 MB, free: 5.617 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.379/1.379, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.543/2.543, allocations: 437 MB / 0.711 GB, free: 4.457 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001307/0.001307, allocations: 68.28 kB / 0.8699 GB, free: 2.176 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3047/0.3061, allocations: 151.6 MB / 1.018 GB, free: 10.62 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.02662/0.3327, allocations: 23.25 MB / 1.041 GB, free: 3.281 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.007893/0.3407, allocations: 5.078 MB / 1.046 GB, free: 14.19 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001042/0.3418, allocations: 27.81 kB / 1.046 GB, free: 14.16 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.001038/0.3428, allocations: 278.1 kB / 1.046 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.002338/0.3452, allocations: 0.7928 MB / 1.047 GB, free: 13.09 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001979/0.3472, allocations: 0.7543 MB / 1.047 GB, free: 12.34 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.002135/0.3494, allocations: 1.613 MB / 1.049 GB, free: 10.72 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008333/0.3502, allocations: 481.8 kB / 1.049 GB, free: 10.24 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001674/0.3519, allocations: 0.6152 MB / 1.05 GB, free: 9.629 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008577/0.3528, allocations: 454 kB / 1.05 GB, free: 9.184 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0001353/0.3529, allocations: 44 kB / 1.051 GB, free: 9.141 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001237/0.3542, allocations: 487.1 kB / 1.051 GB, free: 8.664 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0002046/0.3544, allocations: 143.5 kB / 1.051 GB, free: 8.523 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0004456/0.3549, allocations: 310.5 kB / 1.051 GB, free: 8.219 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.001507/0.3564, allocations: 0.9114 MB / 1.052 GB, free: 7.305 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.3564, allocations: 4 kB / 1.052 GB, free: 7.301 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.343e-06/0.3564, allocations: 0 / 1.052 GB, free: 7.301 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 2.551e-05/0.3564, allocations: 4 kB / 1.052 GB, free: 7.297 MB / 0.8262 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.001543/0.358, allocations: 0.8843 MB / 1.053 GB, free: 6.363 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.731e-05/0.358, allocations: 8.922 kB / 1.053 GB, free: 6.355 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002705/0.3583, allocations: 68.19 kB / 1.053 GB, free: 6.289 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009662/0.3593, allocations: 0.5493 MB / 1.054 GB, free: 5.699 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.25e-05/0.3593, allocations: 32.94 kB / 1.054 GB, free: 5.668 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.302e-05/0.3594, allocations: 36 kB / 1.054 GB, free: 5.633 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007129/0.3601, allocations: 436.7 kB / 1.054 GB, free: 5.184 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.513e-05/0.3602, allocations: 4 kB / 1.054 GB, free: 5.18 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.016e-05/0.3602, allocations: 16 kB / 1.054 GB, free: 5.164 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.122e-05/0.3602, allocations: 12 kB / 1.054 GB, free: 5.152 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005279/0.3608, allocations: 303.8 kB / 1.055 GB, free: 4.859 MB / 0.8262 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.002664/0.3634, allocations: 1.927 MB / 1.056 GB, free: 2.797 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005247/0.364, allocations: 254.8 kB / 1.057 GB, free: 2.539 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001843/0.3642, allocations: 124.8 kB / 1.057 GB, free: 2.414 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008712/0.365, allocations: 0.8506 MB / 1.058 GB, free: 1.379 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.356e-05/0.3651, allocations: 38.5 kB / 1.058 GB, free: 1.332 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=26): time 2.445e-06/0.3651, allocations: 0 / 1.058 GB, free: 1.332 MB / 0.8262 GB Notification: Performance of matching and sorting (n=26): time 0.0007416/0.3658, allocations: 371.1 kB / 1.058 GB, free: 0.9648 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.451e-05/0.3659, allocations: 55.34 kB / 1.058 GB, free: 0.8984 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005698/0.3665, allocations: 478 kB / 1.059 GB, free: 432 kB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.385e-05/0.3665, allocations: 37.64 kB / 1.059 GB, free: 388 kB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001915/0.3667, allocations: 256 kB / 1.059 GB, free: 128 kB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 9.245e-05/0.3668, allocations: 98.58 kB / 1.059 GB, free: 28 kB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001288/0.367, allocations: 73.92 kB / 1.059 GB, free: 15.95 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001499/0.3671, allocations: 358.8 kB / 1.059 GB, free: 15.59 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001686/0.3673, allocations: 100.5 kB / 1.059 GB, free: 15.49 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002514/0.3675, allocations: 172 kB / 1.06 GB, free: 15.3 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004002/0.368, allocations: 280.3 kB / 1.06 GB, free: 15 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.368, allocations: 0 / 1.06 GB, free: 15 MB / 0.8419 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005968/0.3686, allocations: 364.8 kB / 1.06 GB, free: 14.64 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.865e-05/0.3686, allocations: 8 kB / 1.06 GB, free: 14.63 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.3686, allocations: 0 / 1.06 GB, free: 14.63 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.928e-05/0.3686, allocations: 4 kB / 1.06 GB, free: 14.63 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002757/0.3689, allocations: 76.06 kB / 1.06 GB, free: 14.55 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.309e-05/0.3689, allocations: 7.938 kB / 1.06 GB, free: 14.55 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002923/0.3692, allocations: 43.58 kB / 1.06 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.475e-05/0.3693, allocations: 12 kB / 1.06 GB, free: 14.49 MB / 0.8419 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.0002138/0.3695, allocations: 189.7 kB / 1.061 GB, free: 14.3 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001102/0.3696, allocations: 47.44 kB / 1.061 GB, free: 14.25 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007942/0.3704, allocations: 470.7 kB / 1.061 GB, free: 13.78 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.41e-05/0.3704, allocations: 7.938 kB / 1.061 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.3705, allocations: 4 kB / 1.061 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005501/0.371, allocations: 0.5684 MB / 1.062 GB, free: 13.13 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001758/0.3728, allocations: 1.152 MB / 1.063 GB, free: 11.89 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.3728, allocations: 0 / 1.063 GB, free: 11.89 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002158/0.373, allocations: 55.84 kB / 1.063 GB, free: 11.83 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.436e-06/0.373, allocations: 4 kB / 1.063 GB, free: 11.83 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.439e-05/0.3731, allocations: 11.98 kB / 1.063 GB, free: 11.82 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.243e-06/0.3731, allocations: 4 kB / 1.063 GB, free: 11.81 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.3731, allocations: 3.938 kB / 1.063 GB, free: 11.81 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008647/0.374, allocations: 0.661 MB / 1.063 GB, free: 11.11 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002189/0.3742, allocations: 172.4 kB / 1.064 GB, free: 10.93 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.409e-05/0.3743, allocations: 8 kB / 1.064 GB, free: 10.92 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002814/0.3746, allocations: 15.92 kB / 1.064 GB, free: 10.9 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.667e-05/0.3746, allocations: 31.91 kB / 1.064 GB, free: 10.87 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.417e-05/0.3747, allocations: 19.94 kB / 1.064 GB, free: 10.85 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0004158/0.3751, allocations: 346.8 kB / 1.064 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.7e-07/0.3751, allocations: 0 / 1.064 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0006675/0.3758, allocations: 195.8 kB / 1.064 GB, free: 10.32 MB / 0.8419 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.0006843/0.3765, allocations: 297 kB / 1.065 GB, free: 10.03 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0005755/0.3771, allocations: 311.9 kB / 1.065 GB, free: 9.727 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.3771, allocations: 448 / 1.065 GB, free: 9.727 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002381/0.3773, allocations: 160.5 kB / 1.065 GB, free: 9.57 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001623/0.3789, allocations: 344.1 kB / 1.065 GB, free: 9.25 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001762/0.3807, allocations: 1.097 MB / 1.066 GB, free: 8.102 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004113/0.3811, allocations: 0.8627 MB / 1.067 GB, free: 7.211 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001444/0.3813, allocations: 59.42 kB / 1.067 GB, free: 7.152 MB / 0.8419 GB Notification: Performance of SimCode: time 4.31e-07/0.3813, allocations: 0 / 1.067 GB, free: 7.152 MB / 0.8419 GB Notification: Performance of Templates: time 0.4885/0.8698, allocations: 9.87 MB / 1.077 GB, free: 61.77 MB / 0.8419 GB make -j1 -f Buildings_10_Buildings.Fluid.Sensors.Examples.HeatMeter.makefile (rm -f Buildings_10_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe ; mkfifo Buildings_10_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe >> ../files/Buildings_10_Buildings.Fluid.Sensors.Examples.HeatMeter.sim & ./Buildings_10_Buildings.Fluid.Sensors.Examples.HeatMeter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Sensors.Examples.HeatMeter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Sensors_Examples_HeatMeter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Sensors.Examples.HeatMeter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches