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.001578/0.001578, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002059/0.002059, allocations: 195.9 kB / 16.25 MB, free: 6.629 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.406/1.406, allocations: 222.9 MB / 239.9 MB, free: 4.547 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.736/2.736, allocations: 461.9 MB / 0.7343 GB, free: 15 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001324/0.001324, allocations: 67.83 kB / 0.8986 GB, free: 37.2 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3402/0.3415, allocations: 157.4 MB / 1.052 GB, free: 8.781 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.02253/0.3641, allocations: 23.11 MB / 1.075 GB, free: 1.578 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.007736/0.3719, allocations: 5.046 MB / 1.08 GB, free: 12.52 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001006/0.3729, allocations: 27.81 kB / 1.08 GB, free: 12.49 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.000843/0.3738, allocations: 234.6 kB / 1.08 GB, free: 12.26 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.002067/0.3759, allocations: 0.7388 MB / 1.081 GB, free: 11.52 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.00194/0.3779, allocations: 0.6927 MB / 1.081 GB, free: 10.83 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.001952/0.3798, allocations: 1.621 MB / 1.083 GB, free: 9.203 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006196/0.3805, allocations: 481.8 kB / 1.083 GB, free: 8.734 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001368/0.3818, allocations: 0.6182 MB / 1.084 GB, free: 8.117 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005989/0.3824, allocations: 473.9 kB / 1.085 GB, free: 7.652 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 7.253e-05/0.3825, allocations: 44 kB / 1.085 GB, free: 7.609 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001176/0.3837, allocations: 0.4951 MB / 1.085 GB, free: 7.113 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001701/0.3839, allocations: 131.6 kB / 1.085 GB, free: 6.984 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0003176/0.3842, allocations: 314.5 kB / 1.085 GB, free: 6.676 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.001276/0.3855, allocations: 0.9192 MB / 1.086 GB, free: 5.754 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.055e-06/0.3855, allocations: 0 / 1.086 GB, free: 5.754 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.863e-06/0.3855, allocations: 0 / 1.086 GB, free: 5.754 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 9.468e-06/0.3855, allocations: 0 / 1.086 GB, free: 5.754 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.001321/0.3869, allocations: 0.8882 MB / 1.087 GB, free: 4.816 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.451e-05/0.3869, allocations: 12.62 kB / 1.087 GB, free: 4.805 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002499/0.3872, allocations: 64.19 kB / 1.087 GB, free: 4.742 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000955/0.3881, allocations: 0.5649 MB / 1.088 GB, free: 4.141 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.787e-05/0.3882, allocations: 32.94 kB / 1.088 GB, free: 4.109 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.107e-05/0.3883, allocations: 36 kB / 1.088 GB, free: 4.074 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007012/0.389, allocations: 444.6 kB / 1.088 GB, free: 3.613 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.748e-05/0.389, allocations: 0 / 1.088 GB, free: 3.613 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.213e-05/0.389, allocations: 16 kB / 1.088 GB, free: 3.598 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.698e-05/0.3891, allocations: 16 kB / 1.088 GB, free: 3.582 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005077/0.3896, allocations: 303.8 kB / 1.089 GB, free: 3.289 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.002538/0.3921, allocations: 1.911 MB / 1.091 GB, free: 1.246 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004681/0.3926, allocations: 254.2 kB / 1.091 GB, free: 0.9922 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001723/0.3928, allocations: 124.8 kB / 1.091 GB, free: 0.8672 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007861/0.3936, allocations: 0.8506 MB / 1.092 GB, free: 15.83 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.972e-05/0.3936, allocations: 42.5 kB / 1.092 GB, free: 15.78 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=26): time 1.413e-06/0.3936, allocations: 0 / 1.092 GB, free: 15.78 MB / 0.8575 GB Notification: Performance of matching and sorting (n=26): time 0.0006332/0.3943, allocations: 366 kB / 1.092 GB, free: 15.42 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.913e-05/0.3943, allocations: 59.34 kB / 1.092 GB, free: 15.35 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004862/0.3948, allocations: 474 kB / 1.093 GB, free: 14.87 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.439e-05/0.3949, allocations: 33.64 kB / 1.093 GB, free: 14.83 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001784/0.3951, allocations: 256 kB / 1.093 GB, free: 14.58 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 7.655e-05/0.3951, allocations: 98.59 kB / 1.093 GB, free: 14.48 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001022/0.3952, allocations: 69.92 kB / 1.093 GB, free: 14.41 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001312/0.3954, allocations: 358.8 kB / 1.093 GB, free: 14.05 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001565/0.3955, allocations: 96.61 kB / 1.093 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002109/0.3958, allocations: 176 kB / 1.094 GB, free: 13.76 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003854/0.3962, allocations: 287.1 kB / 1.094 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.518e-06/0.3962, allocations: 4 kB / 1.094 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005624/0.3967, allocations: 360.8 kB / 1.094 GB, free: 13.09 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.675e-05/0.3968, allocations: 4 kB / 1.094 GB, free: 13.09 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.75e-06/0.3968, allocations: 4.219 kB / 1.094 GB, free: 13.08 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.476e-05/0.3968, allocations: 8 kB / 1.094 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002596/0.3971, allocations: 75.84 kB / 1.094 GB, free: 13 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.386e-05/0.3971, allocations: 11.92 kB / 1.094 GB, free: 12.99 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002849/0.3974, allocations: 35.59 kB / 1.094 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.735e-05/0.3974, allocations: 19.98 kB / 1.094 GB, free: 12.93 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.0001947/0.3976, allocations: 181.7 kB / 1.095 GB, free: 12.75 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.586e-05/0.3977, allocations: 51.44 kB / 1.095 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007872/0.3985, allocations: 473 kB / 1.095 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.209e-05/0.3985, allocations: 7.922 kB / 1.095 GB, free: 12.22 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.3985, allocations: 4 kB / 1.095 GB, free: 12.21 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000592/0.3991, allocations: 0.5662 MB / 1.096 GB, free: 11.58 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001822/0.401, allocations: 1.149 MB / 1.097 GB, free: 10.34 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/0.401, allocations: 0 / 1.097 GB, free: 10.34 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002285/0.4012, allocations: 59.84 kB / 1.097 GB, free: 10.28 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.444e-06/0.4012, allocations: 4 kB / 1.097 GB, free: 10.28 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.653e-05/0.4013, allocations: 11.98 kB / 1.097 GB, free: 10.27 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.765e-06/0.4013, allocations: 8.125 kB / 1.097 GB, free: 10.26 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.4013, allocations: 4 kB / 1.097 GB, free: 10.25 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009085/0.4022, allocations: 0.6568 MB / 1.098 GB, free: 9.562 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002085/0.4024, allocations: 172.4 kB / 1.098 GB, free: 9.375 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.458e-05/0.4025, allocations: 8 kB / 1.098 GB, free: 9.367 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003004/0.4028, allocations: 27.86 kB / 1.098 GB, free: 9.34 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.162e-05/0.4029, allocations: 19.97 kB / 1.098 GB, free: 9.32 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.999e-05/0.4029, allocations: 23.92 kB / 1.098 GB, free: 9.297 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0004283/0.4033, allocations: 342.9 kB / 1.098 GB, free: 8.965 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2e-07/0.4034, allocations: 0 / 1.098 GB, free: 8.965 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0007121/0.4041, allocations: 191.8 kB / 1.098 GB, free: 8.777 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.0006394/0.4047, allocations: 287.1 kB / 1.099 GB, free: 8.496 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0005904/0.4053, allocations: 315.9 kB / 1.099 GB, free: 8.188 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.4053, allocations: 0 / 1.099 GB, free: 8.188 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.000234/0.4056, allocations: 159.8 kB / 1.099 GB, free: 8.031 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001462/0.407, allocations: 341.1 kB / 1.099 GB, free: 7.707 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00176/0.4088, allocations: 1.263 MB / 1.101 GB, free: 6.398 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004568/0.4093, allocations: 0.8666 MB / 1.101 GB, free: 5.5 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0003942/0.4097, allocations: 120.6 kB / 1.102 GB, free: 5.379 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001051/0.4098, allocations: 51.42 kB / 1.102 GB, free: 5.332 MB / 0.8575 GB Notification: Performance of SimCode: time 4.01e-07/0.4098, allocations: 4 kB / 1.102 GB, free: 5.328 MB / 0.8575 GB Notification: Performance of Templates: time 0.02038/0.4302, allocations: 11.96 MB / 1.113 GB, free: 9.527 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