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.001465/0.001465, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001856/0.001856, allocations: 197.9 kB / 16.14 MB, free: 6.711 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.357/1.357, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.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.393/2.393, allocations: 390.2 MB / 0.6642 GB, free: 0.6367 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001352/0.001352, allocations: 59.91 kB / 0.8118 GB, free: 14.9 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6923/0.6937, allocations: 140.4 MB / 0.9489 GB, free: 9.32 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.02282/0.7165, allocations: 23.14 MB / 0.9715 GB, free: 6.781 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.008465/0.725, allocations: 5.124 MB / 0.9765 GB, free: 2.633 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001046/0.7261, allocations: 22.66 kB / 0.9765 GB, free: 2.625 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0008308/0.727, allocations: 225.9 kB / 0.9767 GB, free: 2.434 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.00206/0.7291, allocations: 0.7304 MB / 0.9775 GB, free: 1.848 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.002115/0.7312, allocations: 0.6865 MB / 0.9781 GB, free: 1.344 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.004114/0.7353, allocations: 2.166 MB / 0.9802 GB, free: 156 kB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009182/0.7363, allocations: 417.3 kB / 0.9806 GB, free: 15.9 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001477/0.7378, allocations: 0.5295 MB / 0.9812 GB, free: 15.61 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001048/0.7388, allocations: 460 kB / 0.9816 GB, free: 15.34 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.000105/0.7389, allocations: 25.53 kB / 0.9816 GB, free: 15.34 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002023/0.741, allocations: 471.6 kB / 0.9821 GB, free: 15.09 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0002234/0.7412, allocations: 112.9 kB / 0.9822 GB, free: 15.01 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0004862/0.7417, allocations: 291.2 kB / 0.9825 GB, free: 14.84 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.001608/0.7433, allocations: 0.8963 MB / 0.9833 GB, free: 14.26 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.7433, allocations: 5.188 kB / 0.9833 GB, free: 14.25 MB / 0.7481 GB Notification: Performance of FrontEnd: time 7.32e-07/0.7433, allocations: 0 / 0.9833 GB, free: 14.25 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 9.438e-06/0.7434, allocations: 3.938 kB / 0.9833 GB, free: 14.25 MB / 0.7481 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.001577/0.7449, allocations: 0.8882 MB / 0.9842 GB, free: 13.5 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.902e-05/0.745, allocations: 9.812 kB / 0.9842 GB, free: 13.5 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000285/0.7453, allocations: 62.31 kB / 0.9843 GB, free: 13.48 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001181/0.7465, allocations: 0.5582 MB / 0.9848 GB, free: 13 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.473e-05/0.7465, allocations: 37.03 kB / 0.9849 GB, free: 12.98 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.564e-05/0.7466, allocations: 42.31 kB / 0.9849 GB, free: 12.96 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007872/0.7474, allocations: 440.4 kB / 0.9853 GB, free: 12.68 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.67e-05/0.7474, allocations: 0 / 0.9853 GB, free: 12.68 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.258e-05/0.7475, allocations: 16.34 kB / 0.9853 GB, free: 12.67 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.411e-05/0.7475, allocations: 9.531 kB / 0.9853 GB, free: 12.67 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005234/0.7481, allocations: 313.5 kB / 0.9856 GB, free: 12.44 MB / 0.7481 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.002806/0.7509, allocations: 1.911 MB / 0.9875 GB, free: 10.39 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005287/0.7514, allocations: 262.8 kB / 0.9878 GB, free: 10.13 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001911/0.7516, allocations: 120.8 kB / 0.9879 GB, free: 10.01 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009554/0.7526, allocations: 0.8467 MB / 0.9887 GB, free: 8.977 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.829e-05/0.7526, allocations: 38.5 kB / 0.9887 GB, free: 8.93 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=26): time 4.308e-06/0.7526, allocations: 4 kB / 0.9887 GB, free: 8.926 MB / 0.7481 GB Notification: Performance of matching and sorting (n=26): time 0.0007456/0.7534, allocations: 370.8 kB / 0.9891 GB, free: 8.559 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.522e-05/0.7534, allocations: 55.34 kB / 0.9891 GB, free: 8.492 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005275/0.754, allocations: 470.1 kB / 0.9896 GB, free: 8.023 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 3.216e-05/0.754, allocations: 29.7 kB / 0.9896 GB, free: 7.988 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001901/0.7542, allocations: 260 kB / 0.9899 GB, free: 7.73 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001359/0.7543, allocations: 94.64 kB / 0.99 GB, free: 7.637 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001293/0.7545, allocations: 74.02 kB / 0.99 GB, free: 7.559 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001373/0.7546, allocations: 354.8 kB / 0.9904 GB, free: 7.203 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001661/0.7548, allocations: 100.6 kB / 0.9905 GB, free: 7.105 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002278/0.755, allocations: 172 kB / 0.9906 GB, free: 6.914 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003899/0.7554, allocations: 279.2 kB / 0.9909 GB, free: 6.617 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.7554, allocations: 0 / 0.9909 GB, free: 6.617 MB / 0.7481 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005972/0.756, allocations: 376.8 kB / 0.9913 GB, free: 6.242 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/0.7561, allocations: 8 kB / 0.9913 GB, free: 6.234 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.256e-06/0.7561, allocations: 3.984 kB / 0.9913 GB, free: 6.23 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.636e-05/0.7561, allocations: 7.938 kB / 0.9913 GB, free: 6.223 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000277/0.7564, allocations: 75.84 kB / 0.9913 GB, free: 6.148 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.167e-05/0.7564, allocations: 7.938 kB / 0.9914 GB, free: 6.141 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003602/0.7568, allocations: 51.67 kB / 0.9914 GB, free: 6.09 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.891e-05/0.7568, allocations: 23.92 kB / 0.9914 GB, free: 6.066 MB / 0.7481 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.0002077/0.757, allocations: 173.8 kB / 0.9916 GB, free: 5.887 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.486e-05/0.7571, allocations: 47.44 kB / 0.9916 GB, free: 5.84 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008073/0.7579, allocations: 469 kB / 0.9921 GB, free: 5.375 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.576e-05/0.758, allocations: 7.938 kB / 0.9921 GB, free: 5.367 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.758, allocations: 0 / 0.9921 GB, free: 5.367 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006213/0.7586, allocations: 0.5723 MB / 0.9927 GB, free: 4.727 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00191/0.7605, allocations: 1.153 MB / 0.9938 GB, free: 3.48 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.342e-06/0.7606, allocations: 4 kB / 0.9938 GB, free: 3.477 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002321/0.7608, allocations: 52.09 kB / 0.9938 GB, free: 3.426 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.709e-06/0.7608, allocations: 4 kB / 0.9938 GB, free: 3.422 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.702e-05/0.7608, allocations: 12 kB / 0.9938 GB, free: 3.41 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.881e-06/0.7609, allocations: 7.922 kB / 0.9939 GB, free: 3.402 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.529e-06/0.7609, allocations: 4 kB / 0.9939 GB, free: 3.398 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009241/0.7618, allocations: 0.6599 MB / 0.9945 GB, free: 2.703 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002397/0.762, allocations: 176.4 kB / 0.9947 GB, free: 2.512 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.296e-05/0.7621, allocations: 11.94 kB / 0.9947 GB, free: 2.5 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003182/0.7624, allocations: 15.98 kB / 0.9947 GB, free: 2.484 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.864e-05/0.7625, allocations: 27.97 kB / 0.9947 GB, free: 2.457 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.688e-05/0.7625, allocations: 23.92 kB / 0.9947 GB, free: 2.434 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0004048/0.763, allocations: 338.9 kB / 0.9951 GB, free: 2.105 MB / 0.7481 GB Notification: Performance of sort global known variables: time 3.81e-07/0.763, allocations: 0 / 0.9951 GB, free: 2.105 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0007183/0.7637, allocations: 191.8 kB / 0.9953 GB, free: 1.918 MB / 0.7481 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.000727/0.7644, allocations: 310.8 kB / 0.9955 GB, free: 1.613 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0005398/0.765, allocations: 285.7 kB / 0.9958 GB, free: 1.336 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.765, allocations: 0 / 0.9958 GB, free: 1.336 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0002426/0.7652, allocations: 168.5 kB / 0.996 GB, free: 1.172 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001639/0.7669, allocations: 307 kB / 0.9963 GB, free: 0.8711 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001773/0.7687, allocations: 1.237 MB / 0.9975 GB, free: 15.59 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004285/0.7691, allocations: 0.8707 MB / 0.9983 GB, free: 14.69 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0004205/0.7695, allocations: 112.7 kB / 0.9984 GB, free: 14.58 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001172/0.7697, allocations: 63.41 kB / 0.9985 GB, free: 14.52 MB / 0.7637 GB Notification: Performance of SimCode: time 2.9e-07/0.7697, allocations: 3.938 kB / 0.9985 GB, free: 14.51 MB / 0.7637 GB Notification: Performance of Templates: time 0.02019/0.7899, allocations: 11.55 MB / 1.01 GB, free: 3.148 MB / 0.7637 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches