Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.001975/0.001975, allocations: 107 kB / 15.99 MB, free: 6.359 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.00249/0.00249, allocations: 191.2 kB / 16.91 MB, free: 6.195 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 / 240.6 MB, free: 15.38 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.311/2.311, allocations: 390.3 MB / 0.665 GB, free: 0.7734 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001392/0.001393, allocations: 64.61 kB / 0.8127 GB, free: 33.21 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.293/0.2944, allocations: 140.4 MB / 0.9498 GB, free: 9.172 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.02996/0.3244, allocations: 23.09 MB / 0.9723 GB, free: 1.992 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.008265/0.3327, allocations: 5.054 MB / 0.9773 GB, free: 12.92 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001124/0.3339, allocations: 23.81 kB / 0.9773 GB, free: 12.9 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.001207/0.3351, allocations: 242.7 kB / 0.9775 GB, free: 12.66 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.002692/0.3379, allocations: 0.7271 MB / 0.9782 GB, free: 11.93 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.002426/0.3403, allocations: 0.6935 MB / 0.9789 GB, free: 11.24 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.002501/0.3429, allocations: 1.625 MB / 0.9805 GB, free: 9.605 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009618/0.3438, allocations: 473.8 kB / 0.9809 GB, free: 9.141 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001868/0.3457, allocations: 0.6263 MB / 0.9816 GB, free: 8.516 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008924/0.3466, allocations: 462 kB / 0.982 GB, free: 8.062 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.0001422/0.3468, allocations: 48 kB / 0.982 GB, free: 8.016 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001355/0.3481, allocations: 499 kB / 0.9825 GB, free: 7.527 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.0002731/0.3484, allocations: 143.5 kB / 0.9827 GB, free: 7.387 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.0005128/0.3489, allocations: 314.5 kB / 0.983 GB, free: 7.078 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.001177/0.3501, allocations: 0.6821 MB / 0.9836 GB, free: 6.395 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.3501, allocations: 4 kB / 0.9836 GB, free: 6.391 MB / 0.7637 GB Notification: Performance of FrontEnd: time 2.023e-06/0.3502, allocations: 0 / 0.9836 GB, free: 6.391 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 3.017e-05/0.3502, allocations: 0 / 0.9836 GB, free: 6.391 MB / 0.7637 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.001661/0.3519, allocations: 0.8803 MB / 0.9845 GB, free: 5.461 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.105e-05/0.3519, allocations: 11.97 kB / 0.9845 GB, free: 5.449 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002848/0.3522, allocations: 68.28 kB / 0.9846 GB, free: 5.383 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001097/0.3533, allocations: 0.557 MB / 0.9851 GB, free: 4.785 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.125e-05/0.3533, allocations: 32.94 kB / 0.9851 GB, free: 4.754 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.527e-05/0.3534, allocations: 40 kB / 0.9852 GB, free: 4.715 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008826/0.3543, allocations: 432.7 kB / 0.9856 GB, free: 4.27 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.958e-05/0.3543, allocations: 7.938 kB / 0.9856 GB, free: 4.262 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.01e-05/0.3544, allocations: 19.98 kB / 0.9856 GB, free: 4.242 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.357e-05/0.3544, allocations: 15.92 kB / 0.9856 GB, free: 4.227 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005324/0.355, allocations: 303.8 kB / 0.9859 GB, free: 3.934 MB / 0.7637 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.003323/0.3583, allocations: 1.919 MB / 0.9878 GB, free: 1.879 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006247/0.3589, allocations: 254.7 kB / 0.988 GB, free: 1.621 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000202/0.3592, allocations: 124.8 kB / 0.9882 GB, free: 1.496 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001087/0.3602, allocations: 0.8544 MB / 0.989 GB, free: 468 kB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.024e-05/0.3603, allocations: 34.56 kB / 0.989 GB, free: 424 kB / 0.7637 GB Notification: Performance of pre-optimization done (n=26): time 2.094e-06/0.3603, allocations: 0 / 0.989 GB, free: 424 kB / 0.7637 GB Notification: Performance of matching and sorting (n=26): time 0.0007873/0.3611, allocations: 364.9 kB / 0.9894 GB, free: 52 kB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.521e-05/0.3612, allocations: 59.28 kB / 0.9894 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006318/0.3618, allocations: 470 kB / 0.9899 GB, free: 15.51 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.053e-05/0.3619, allocations: 33.7 kB / 0.9899 GB, free: 15.47 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003039/0.3622, allocations: 264.1 kB / 0.9902 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001821/0.3624, allocations: 98.59 kB / 0.9902 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001374/0.3625, allocations: 73.92 kB / 0.9903 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001574/0.3627, allocations: 354.8 kB / 0.9907 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001728/0.3629, allocations: 96.61 kB / 0.9907 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003046/0.3632, allocations: 172 kB / 0.9909 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004672/0.3637, allocations: 287.2 kB / 0.9912 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.3637, allocations: 0 / 0.9912 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006892/0.3644, allocations: 364.8 kB / 0.9915 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.017e-05/0.3644, allocations: 6.188 kB / 0.9915 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.3644, allocations: 0 / 0.9915 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.643e-05/0.3644, allocations: 4 kB / 0.9915 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002718/0.3647, allocations: 80.05 kB / 0.9916 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.261e-05/0.3647, allocations: 8 kB / 0.9916 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003304/0.3651, allocations: 39.59 kB / 0.9917 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.237e-05/0.3651, allocations: 19.98 kB / 0.9917 GB, free: 13.57 MB / 0.7794 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.0002144/0.3653, allocations: 177.7 kB / 0.9919 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001111/0.3655, allocations: 47.44 kB / 0.9919 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007912/0.3663, allocations: 476.9 kB / 0.9924 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-05/0.3663, allocations: 15.92 kB / 0.9924 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.66e-06/0.3663, allocations: 0 / 0.9924 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006239/0.3669, allocations: 0.5645 MB / 0.9929 GB, free: 12.22 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001982/0.3689, allocations: 1.16 MB / 0.9941 GB, free: 10.97 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.551e-06/0.3689, allocations: 7.938 kB / 0.9941 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002359/0.3692, allocations: 51.92 kB / 0.9941 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.17e-06/0.3692, allocations: 0 / 0.9941 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.938e-05/0.3692, allocations: 15.98 kB / 0.9941 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.496e-06/0.3692, allocations: 0 / 0.9941 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.3692, allocations: 4 kB / 0.9941 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008913/0.3701, allocations: 0.6639 MB / 0.9948 GB, free: 10.19 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002262/0.3704, allocations: 172.4 kB / 0.9949 GB, free: 10 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.762e-05/0.3705, allocations: 8 kB / 0.995 GB, free: 9.996 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003262/0.3708, allocations: 23.92 kB / 0.995 GB, free: 9.973 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.525e-05/0.3708, allocations: 23.97 kB / 0.995 GB, free: 9.949 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.741e-05/0.3709, allocations: 23.92 kB / 0.995 GB, free: 9.926 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0004153/0.3713, allocations: 334.9 kB / 0.9953 GB, free: 9.602 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.71e-07/0.3713, allocations: 0 / 0.9953 GB, free: 9.602 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0006906/0.372, allocations: 203.8 kB / 0.9955 GB, free: 9.402 MB / 0.7794 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.0008955/0.3729, allocations: 285.6 kB / 0.9958 GB, free: 9.117 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0008787/0.3738, allocations: 311.7 kB / 0.9961 GB, free: 8.812 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 5.57e-06/0.3738, allocations: 0 / 0.9961 GB, free: 8.812 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0003638/0.3742, allocations: 170.2 kB / 0.9963 GB, free: 8.648 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002472/0.3767, allocations: 332.5 kB / 0.9966 GB, free: 8.336 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002955/0.3797, allocations: 1.284 MB / 0.9978 GB, free: 7 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006207/0.3803, allocations: 0.8627 MB / 0.9987 GB, free: 6.109 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001568/0.3805, allocations: 55.41 kB / 0.9987 GB, free: 6.055 MB / 0.7794 GB Notification: Performance of SimCode: time 6.91e-07/0.3805, allocations: 0 / 0.9987 GB, free: 6.055 MB / 0.7794 GB Notification: Performance of Templates: time 0.01682/0.3973, allocations: 9.769 MB / 1.008 GB, free: 12.38 MB / 0.795 GB make -j1 -f Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter.makefile (rm -f Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe ; mkfifo Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe >> ../files/Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter.sim & ./Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Sensors_Examples_HeatMeter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches