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.001308/0.001308, allocations: 106.7 kB / 16.41 MB, free: 6.512 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.001285/0.001285, allocations: 187 kB / 17.34 MB, free: 5.742 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.321/1.321, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.666/2.666, allocations: 461.9 MB / 0.7354 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001429/0.001429, allocations: 63.91 kB / 1.055 GB, free: 7.688 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7928/0.7943, allocations: 157.4 MB / 1.208 GB, free: 13.64 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.02464/0.8189, allocations: 23.23 MB / 1.231 GB, free: 6.328 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.007737/0.8267, allocations: 5.094 MB / 1.236 GB, free: 1.223 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009595/0.8277, allocations: 31.81 kB / 1.236 GB, free: 1.191 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.000958/0.8287, allocations: 278.1 kB / 1.236 GB, free: 0.918 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.002468/0.8312, allocations: 0.8241 MB / 1.237 GB, free: 92 kB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.002233/0.8335, allocations: 0.7823 MB / 1.238 GB, free: 15.31 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.002536/0.836, allocations: 1.609 MB / 1.24 GB, free: 13.7 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009326/0.837, allocations: 489.2 kB / 1.24 GB, free: 13.23 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001825/0.8388, allocations: 0.6265 MB / 1.241 GB, free: 12.6 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008428/0.8397, allocations: 450 kB / 1.241 GB, free: 12.16 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0001251/0.8398, allocations: 48 kB / 1.241 GB, free: 12.11 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001333/0.8412, allocations: 495.1 kB / 1.242 GB, free: 11.62 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.000217/0.8414, allocations: 135.5 kB / 1.242 GB, free: 11.49 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0005178/0.8419, allocations: 306.5 kB / 1.242 GB, free: 11.19 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.001672/0.8436, allocations: 0.9211 MB / 1.243 GB, free: 10.27 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.8436, allocations: 4 kB / 1.243 GB, free: 10.27 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.513e-06/0.8436, allocations: 0 / 1.243 GB, free: 10.27 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 2.171e-05/0.8436, allocations: 0 / 1.243 GB, free: 10.27 MB / 0.9669 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.001586/0.8452, allocations: 0.8881 MB / 1.244 GB, free: 9.324 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.71e-05/0.8453, allocations: 8.031 kB / 1.244 GB, free: 9.316 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002715/0.8456, allocations: 72.17 kB / 1.244 GB, free: 9.246 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001113/0.8467, allocations: 0.5764 MB / 1.244 GB, free: 8.629 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.602e-05/0.8467, allocations: 29 kB / 1.244 GB, free: 8.602 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.982e-05/0.8468, allocations: 40 kB / 1.244 GB, free: 8.562 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007217/0.8475, allocations: 436.6 kB / 1.245 GB, free: 8.117 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.802e-05/0.8476, allocations: 8 kB / 1.245 GB, free: 8.109 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.146e-05/0.8476, allocations: 16 kB / 1.245 GB, free: 8.094 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.269e-05/0.8476, allocations: 8 kB / 1.245 GB, free: 8.086 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005155/0.8481, allocations: 299.8 kB / 1.245 GB, free: 7.793 MB / 0.9669 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.002843/0.851, allocations: 1.923 MB / 1.247 GB, free: 5.742 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000515/0.8515, allocations: 256.7 kB / 1.247 GB, free: 5.484 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002014/0.8517, allocations: 140.6 kB / 1.247 GB, free: 5.344 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008628/0.8526, allocations: 0.8466 MB / 1.248 GB, free: 4.312 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.374e-05/0.8527, allocations: 38.56 kB / 1.248 GB, free: 4.266 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=26): time 1.964e-06/0.8527, allocations: 0 / 1.248 GB, free: 4.266 MB / 0.9669 GB Notification: Performance of matching and sorting (n=26): time 0.000734/0.8534, allocations: 369.2 kB / 1.249 GB, free: 3.902 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.872e-05/0.8535, allocations: 55.41 kB / 1.249 GB, free: 3.836 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006064/0.8541, allocations: 478 kB / 1.249 GB, free: 3.355 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 3.478e-05/0.8541, allocations: 29.7 kB / 1.249 GB, free: 3.32 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002116/0.8543, allocations: 260.1 kB / 1.249 GB, free: 3.062 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 7.984e-05/0.8544, allocations: 94.64 kB / 1.25 GB, free: 2.969 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001247/0.8545, allocations: 73.92 kB / 1.25 GB, free: 2.891 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001545/0.8547, allocations: 358.8 kB / 1.25 GB, free: 2.531 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001687/0.8549, allocations: 104.5 kB / 1.25 GB, free: 2.43 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002266/0.8551, allocations: 172 kB / 1.25 GB, free: 2.238 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003914/0.8555, allocations: 279.2 kB / 1.25 GB, free: 1.941 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.8555, allocations: 4 kB / 1.25 GB, free: 1.938 MB / 0.9669 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005967/0.8561, allocations: 356.9 kB / 1.251 GB, free: 1.582 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.04e-05/0.8562, allocations: 8 kB / 1.251 GB, free: 1.574 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.655e-06/0.8562, allocations: 4 kB / 1.251 GB, free: 1.57 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.06e-05/0.8562, allocations: 7.938 kB / 1.251 GB, free: 1.562 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002712/0.8565, allocations: 76.05 kB / 1.251 GB, free: 1.488 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.01e-05/0.8565, allocations: 8 kB / 1.251 GB, free: 1.48 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002968/0.8568, allocations: 39.53 kB / 1.251 GB, free: 1.441 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.564e-05/0.8568, allocations: 15.98 kB / 1.251 GB, free: 1.426 MB / 0.9669 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.0002124/0.8571, allocations: 177.8 kB / 1.251 GB, free: 1.242 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001108/0.8572, allocations: 51.44 kB / 1.251 GB, free: 1.191 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008199/0.858, allocations: 474.5 kB / 1.252 GB, free: 0.7227 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.485e-05/0.858, allocations: 7.922 kB / 1.252 GB, free: 0.7148 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.858, allocations: 4 kB / 1.252 GB, free: 0.7109 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005785/0.8586, allocations: 0.5684 MB / 1.252 GB, free: 76 kB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001891/0.8605, allocations: 1.16 MB / 1.253 GB, free: 14.82 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/0.8605, allocations: 0 / 1.253 GB, free: 14.82 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002162/0.8608, allocations: 47.97 kB / 1.253 GB, free: 14.77 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.606e-06/0.8608, allocations: 4.188 kB / 1.253 GB, free: 14.77 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.714e-05/0.8608, allocations: 15.94 kB / 1.253 GB, free: 14.75 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.901e-06/0.8608, allocations: 7.938 kB / 1.253 GB, free: 14.75 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.8608, allocations: 0 / 1.253 GB, free: 14.75 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009196/0.8617, allocations: 0.6794 MB / 1.254 GB, free: 14.03 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002329/0.862, allocations: 168.4 kB / 1.254 GB, free: 13.85 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.962e-05/0.8621, allocations: 11.98 kB / 1.254 GB, free: 13.84 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002882/0.8624, allocations: 12 kB / 1.254 GB, free: 13.82 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.38e-05/0.8624, allocations: 27.91 kB / 1.254 GB, free: 13.8 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.371e-05/0.8625, allocations: 19.98 kB / 1.254 GB, free: 13.78 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0004109/0.8629, allocations: 346.9 kB / 1.255 GB, free: 13.44 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.6e-07/0.8629, allocations: 0 / 1.255 GB, free: 13.44 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0006355/0.8635, allocations: 195.8 kB / 1.255 GB, free: 13.25 MB / 0.9825 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.0006837/0.8642, allocations: 305.9 kB / 1.255 GB, free: 12.95 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0005087/0.8648, allocations: 295.7 kB / 1.255 GB, free: 12.66 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.8648, allocations: 0 / 1.255 GB, free: 12.66 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002401/0.865, allocations: 159.8 kB / 1.256 GB, free: 12.51 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001576/0.8666, allocations: 326.1 kB / 1.256 GB, free: 12.2 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001785/0.8684, allocations: 1.092 MB / 1.257 GB, free: 11.05 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004556/0.8689, allocations: 0.8588 MB / 1.258 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001405/0.869, allocations: 63.36 kB / 1.258 GB, free: 10.1 MB / 0.9825 GB Notification: Performance of SimCode: time 6.21e-07/0.869, allocations: 0 / 1.258 GB, free: 10.1 MB / 0.9825 GB Notification: Performance of Templates: time 0.01604/0.8851, allocations: 9.923 MB / 1.268 GB, free: 272 kB / 0.9825 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches