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.001614/0.001614, 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.001838/0.001838, allocations: 194.5 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.403/1.403, allocations: 222.9 MB / 239.9 MB, free: 4.504 MB / 190.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.69/2.69, allocations: 437 MB / 0.71 GB, free: 5.176 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002206/0.002206, allocations: 63.91 kB / 0.8687 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7301/0.7323, allocations: 151.6 MB / 1.017 GB, free: 2.676 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.02315/0.7555, allocations: 23.1 MB / 1.039 GB, free: 11.5 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.007394/0.763, allocations: 5.054 MB / 1.044 GB, free: 6.426 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007583/0.7637, allocations: 23.81 kB / 1.044 GB, free: 6.402 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.000762/0.7645, allocations: 238.7 kB / 1.045 GB, free: 6.168 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.001818/0.7664, allocations: 0.7388 MB / 1.045 GB, free: 5.426 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.001673/0.7681, allocations: 0.6958 MB / 1.046 GB, free: 4.734 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.001725/0.7698, allocations: 1.617 MB / 1.048 GB, free: 3.109 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005841/0.7704, allocations: 475.5 kB / 1.048 GB, free: 2.641 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001198/0.7716, allocations: 0.6222 MB / 1.049 GB, free: 2.02 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005099/0.7721, allocations: 466 kB / 1.049 GB, free: 1.562 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 7.316e-05/0.7722, allocations: 44 kB / 1.049 GB, free: 1.52 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008668/0.7731, allocations: 499 kB / 1.05 GB, free: 1.031 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001408/0.7732, allocations: 139.5 kB / 1.05 GB, free: 0.8945 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0002791/0.7735, allocations: 310.5 kB / 1.05 GB, free: 0.5898 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.001065/0.7746, allocations: 0.9192 MB / 1.051 GB, free: 15.67 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.826e-06/0.7746, allocations: 4 kB / 1.051 GB, free: 15.66 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.483e-06/0.7746, allocations: 0 / 1.051 GB, free: 15.66 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.336e-06/0.7746, allocations: 0 / 1.051 GB, free: 15.66 MB / 0.8106 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.001245/0.7759, allocations: 0.8842 MB / 1.052 GB, free: 14.73 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.547e-05/0.7759, allocations: 8.031 kB / 1.052 GB, free: 14.72 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002123/0.7761, allocations: 68.27 kB / 1.052 GB, free: 14.66 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008778/0.777, allocations: 0.5609 MB / 1.052 GB, free: 14.05 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.827e-05/0.7771, allocations: 32.94 kB / 1.052 GB, free: 14.02 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.759e-05/0.7771, allocations: 47.98 kB / 1.052 GB, free: 13.98 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006865/0.7778, allocations: 432.7 kB / 1.053 GB, free: 13.53 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.613e-05/0.7779, allocations: 4 kB / 1.053 GB, free: 13.52 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.073e-05/0.7779, allocations: 20 kB / 1.053 GB, free: 13.5 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.172e-05/0.7779, allocations: 8 kB / 1.053 GB, free: 13.5 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004926/0.7784, allocations: 299.8 kB / 1.053 GB, free: 13.21 MB / 0.8106 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.002481/0.7809, allocations: 1.923 MB / 1.055 GB, free: 11.15 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005022/0.7814, allocations: 258.9 kB / 1.055 GB, free: 10.89 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001819/0.7816, allocations: 120.8 kB / 1.055 GB, free: 10.77 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007811/0.7824, allocations: 0.8505 MB / 1.056 GB, free: 9.73 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.949e-05/0.7825, allocations: 46.44 kB / 1.056 GB, free: 9.676 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=26): time 1.563e-06/0.7825, allocations: 0 / 1.056 GB, free: 9.676 MB / 0.8106 GB Notification: Performance of matching and sorting (n=26): time 0.0006555/0.7831, allocations: 366.5 kB / 1.057 GB, free: 9.312 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.562e-05/0.7832, allocations: 55.34 kB / 1.057 GB, free: 9.246 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005075/0.7837, allocations: 466.1 kB / 1.057 GB, free: 8.781 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.622e-05/0.7837, allocations: 33.7 kB / 1.057 GB, free: 8.742 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001782/0.7839, allocations: 260 kB / 1.057 GB, free: 8.484 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 6.877e-05/0.784, allocations: 94.64 kB / 1.057 GB, free: 8.391 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000108/0.7841, allocations: 81.92 kB / 1.058 GB, free: 8.305 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001271/0.7842, allocations: 358.8 kB / 1.058 GB, free: 7.945 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001601/0.7844, allocations: 100.6 kB / 1.058 GB, free: 7.848 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002184/0.7846, allocations: 172 kB / 1.058 GB, free: 7.656 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003794/0.785, allocations: 274.7 kB / 1.058 GB, free: 7.363 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.554e-06/0.785, allocations: 0 / 1.058 GB, free: 7.363 MB / 0.8106 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005571/0.7856, allocations: 364.8 kB / 1.059 GB, free: 7 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.527e-05/0.7856, allocations: 4 kB / 1.059 GB, free: 6.996 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/0.7856, allocations: 4 kB / 1.059 GB, free: 6.992 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.172e-05/0.7856, allocations: 3.938 kB / 1.059 GB, free: 6.988 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002742/0.7859, allocations: 83.83 kB / 1.059 GB, free: 6.906 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.628e-06/0.7859, allocations: 3.938 kB / 1.059 GB, free: 6.902 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002922/0.7862, allocations: 51.73 kB / 1.059 GB, free: 6.852 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.602e-05/0.7863, allocations: 16 kB / 1.059 GB, free: 6.836 MB / 0.8106 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.0001858/0.7865, allocations: 178.4 kB / 1.059 GB, free: 6.652 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.078e-05/0.7866, allocations: 47.44 kB / 1.059 GB, free: 6.605 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007926/0.7874, allocations: 469 kB / 1.06 GB, free: 6.137 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.328e-05/0.7874, allocations: 15.88 kB / 1.06 GB, free: 6.121 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.7874, allocations: 0 / 1.06 GB, free: 6.121 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005429/0.788, allocations: 0.5762 MB / 1.06 GB, free: 5.477 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001682/0.7896, allocations: 1.144 MB / 1.061 GB, free: 4.238 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.731e-06/0.7897, allocations: 4 kB / 1.061 GB, free: 4.234 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002226/0.7899, allocations: 55.91 kB / 1.061 GB, free: 4.18 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.578e-06/0.7899, allocations: 0 / 1.061 GB, free: 4.18 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.881e-05/0.7899, allocations: 16 kB / 1.061 GB, free: 4.164 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.138e-06/0.7899, allocations: 3.938 kB / 1.061 GB, free: 4.16 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.79, allocations: 4 kB / 1.061 GB, free: 4.156 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008436/0.7908, allocations: 0.6638 MB / 1.062 GB, free: 3.457 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000193/0.791, allocations: 172.4 kB / 1.062 GB, free: 3.27 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.036e-05/0.7911, allocations: 15.92 kB / 1.062 GB, free: 3.254 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003013/0.7914, allocations: 19.98 kB / 1.062 GB, free: 3.234 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.772e-05/0.7915, allocations: 19.98 kB / 1.062 GB, free: 3.215 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.592e-05/0.7915, allocations: 19.92 kB / 1.062 GB, free: 3.195 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0003939/0.7919, allocations: 342.8 kB / 1.063 GB, free: 2.863 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2e-07/0.7919, allocations: 0 / 1.063 GB, free: 2.863 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0006414/0.7926, allocations: 195.8 kB / 1.063 GB, free: 2.672 MB / 0.8106 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.0006058/0.7932, allocations: 299.1 kB / 1.063 GB, free: 2.379 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0005828/0.7938, allocations: 304.7 kB / 1.063 GB, free: 2.082 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 5.37e-06/0.7938, allocations: 8.438 kB / 1.063 GB, free: 2.074 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0002318/0.794, allocations: 163.1 kB / 1.064 GB, free: 1.918 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001598/0.7956, allocations: 335.1 kB / 1.064 GB, free: 1.605 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002116/0.7978, allocations: 1.259 MB / 1.065 GB, free: 312 kB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005449/0.7983, allocations: 0.8627 MB / 1.066 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0004682/0.7988, allocations: 120.6 kB / 1.066 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001358/0.7989, allocations: 59.41 kB / 1.066 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of SimCode: time 1.142e-06/0.7989, allocations: 0 / 1.066 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of Templates: time 0.02024/0.8192, allocations: 11.97 MB / 1.078 GB, free: 3.449 MB / 0.8262 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Sensors.Examples.HeatMeter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches