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: "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.HeatMeter,fileNamePrefix="Buildings_10_Buildings_Fluid_Sensors_Examples_HeatMeter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.HeatMeter,fileNamePrefix="Buildings_10_Buildings_Fluid_Sensors_Examples_HeatMeter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001184/0.001184, 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.003005/0.003005, allocations: 199.6 kB / 16.26 MB, free: 6.621 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.281/1.281, allocations: 222.9 MB / 239.9 MB, free: 4.52 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.427/2.427, allocations: 437 MB / 0.7101 GB, free: 5.219 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001331/0.001331, allocations: 67.91 kB / 0.8688 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5967/0.5981, allocations: 151.6 MB / 1.017 GB, free: 2.656 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.02055/0.6186, allocations: 23.09 MB / 1.039 GB, free: 11.48 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.006303/0.625, allocations: 5.055 MB / 1.044 GB, free: 6.414 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00043/0.6254, allocations: 23.88 kB / 1.044 GB, free: 6.391 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.000654/0.6261, allocations: 246.6 kB / 1.045 GB, free: 6.148 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.001348/0.6275, allocations: 0.731 MB / 1.045 GB, free: 5.414 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.001332/0.6288, allocations: 0.7009 MB / 1.046 GB, free: 4.719 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.001425/0.6302, allocations: 1.633 MB / 1.048 GB, free: 3.082 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005104/0.6308, allocations: 465.6 kB / 1.048 GB, free: 2.621 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001063/0.6318, allocations: 0.6296 MB / 1.049 GB, free: 1.992 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004381/0.6323, allocations: 466 kB / 1.049 GB, free: 1.535 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 6.42e-05/0.6324, allocations: 48 kB / 1.049 GB, free: 1.488 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006978/0.6331, allocations: 491 kB / 1.05 GB, free: 1.008 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001224/0.6332, allocations: 147.4 kB / 1.05 GB, free: 0.8633 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0002409/0.6334, allocations: 302.5 kB / 1.05 GB, free: 0.5664 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0008925/0.6343, allocations: 0.9192 MB / 1.051 GB, free: 15.64 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.6344, allocations: 4 kB / 1.051 GB, free: 15.64 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.022e-06/0.6344, allocations: 4 kB / 1.051 GB, free: 15.64 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 9.187e-06/0.6344, allocations: 0 / 1.051 GB, free: 15.64 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.001101/0.6355, allocations: 0.8842 MB / 1.052 GB, free: 14.7 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.677e-05/0.6355, allocations: 16.02 kB / 1.052 GB, free: 14.69 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.647e-05/0.6356, allocations: 74.72 kB / 1.052 GB, free: 14.61 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001829/0.6358, allocations: 64.28 kB / 1.052 GB, free: 14.54 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007788/0.6366, allocations: 0.5685 MB / 1.053 GB, free: 13.93 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.38e-05/0.6366, allocations: 29 kB / 1.053 GB, free: 13.91 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.799e-05/0.6367, allocations: 40 kB / 1.053 GB, free: 13.87 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006134/0.6373, allocations: 432.7 kB / 1.053 GB, free: 13.42 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.662e-05/0.6373, allocations: 8 kB / 1.053 GB, free: 13.41 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.659e-05/0.6374, allocations: 16 kB / 1.053 GB, free: 13.39 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.77e-05/0.6374, allocations: 8 kB / 1.053 GB, free: 13.39 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004412/0.6378, allocations: 307.7 kB / 1.053 GB, free: 13.09 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.002225/0.6401, allocations: 1.915 MB / 1.055 GB, free: 11.04 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000436/0.6405, allocations: 258.8 kB / 1.055 GB, free: 10.78 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001604/0.6407, allocations: 120.8 kB / 1.056 GB, free: 10.66 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007404/0.6414, allocations: 0.8506 MB / 1.056 GB, free: 9.621 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.921e-05/0.6415, allocations: 34.56 kB / 1.056 GB, free: 9.578 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=26): time 1.372e-06/0.6415, allocations: 0 / 1.056 GB, free: 9.578 MB / 0.8106 GB Notification: Performance of matching and sorting (n=26): time 0.0005999/0.6421, allocations: 379 kB / 1.057 GB, free: 9.203 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.687e-05/0.6421, allocations: 51.41 kB / 1.057 GB, free: 9.141 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004585/0.6426, allocations: 470.1 kB / 1.057 GB, free: 8.672 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.084e-05/0.6426, allocations: 33.7 kB / 1.057 GB, free: 8.633 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001578/0.6428, allocations: 256 kB / 1.058 GB, free: 8.379 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 6.697e-05/0.6429, allocations: 98.64 kB / 1.058 GB, free: 8.281 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.967e-05/0.643, allocations: 77.92 kB / 1.058 GB, free: 8.199 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001173/0.6431, allocations: 354.8 kB / 1.058 GB, free: 7.844 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001486/0.6433, allocations: 96.61 kB / 1.058 GB, free: 7.75 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001952/0.6435, allocations: 164.1 kB / 1.058 GB, free: 7.566 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003504/0.6438, allocations: 286.6 kB / 1.059 GB, free: 7.262 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.6438, allocations: 4 kB / 1.059 GB, free: 7.258 MB / 0.8106 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004977/0.6443, allocations: 368.8 kB / 1.059 GB, free: 6.891 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.274e-05/0.6443, allocations: 7.938 kB / 1.059 GB, free: 6.883 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.6444, allocations: 0 / 1.059 GB, free: 6.883 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.267e-05/0.6444, allocations: 7.938 kB / 1.059 GB, free: 6.875 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002475/0.6446, allocations: 71.91 kB / 1.059 GB, free: 6.805 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.493e-06/0.6446, allocations: 4 kB / 1.059 GB, free: 6.801 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002572/0.6449, allocations: 51.73 kB / 1.059 GB, free: 6.75 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.163e-05/0.6449, allocations: 23.98 kB / 1.059 GB, free: 6.727 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.0001785/0.6451, allocations: 177.7 kB / 1.059 GB, free: 6.543 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.358e-05/0.6452, allocations: 47.44 kB / 1.059 GB, free: 6.496 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000718/0.6459, allocations: 472.9 kB / 1.06 GB, free: 6.023 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.018e-05/0.646, allocations: 11.92 kB / 1.06 GB, free: 6.012 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.928e-06/0.646, allocations: 4 kB / 1.06 GB, free: 6.008 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005083/0.6465, allocations: 0.5684 MB / 1.06 GB, free: 5.371 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001504/0.648, allocations: 1.148 MB / 1.062 GB, free: 4.129 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.17e-06/0.648, allocations: 4 kB / 1.062 GB, free: 4.125 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002075/0.6482, allocations: 51.91 kB / 1.062 GB, free: 4.074 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.6482, allocations: 0 / 1.062 GB, free: 4.074 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.605e-05/0.6483, allocations: 15.98 kB / 1.062 GB, free: 4.059 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.415e-06/0.6483, allocations: 0 / 1.062 GB, free: 4.059 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.6483, allocations: 7.938 kB / 1.062 GB, free: 4.051 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007956/0.6491, allocations: 0.664 MB / 1.062 GB, free: 3.352 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001662/0.6493, allocations: 176.4 kB / 1.062 GB, free: 3.16 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.462e-05/0.6493, allocations: 8 kB / 1.062 GB, free: 3.152 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002807/0.6496, allocations: 19.98 kB / 1.062 GB, free: 3.133 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.149e-05/0.6497, allocations: 31.84 kB / 1.062 GB, free: 3.102 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.085e-05/0.6497, allocations: 19.98 kB / 1.062 GB, free: 3.082 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0003341/0.65, allocations: 334.9 kB / 1.063 GB, free: 2.758 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.6e-07/0.65, allocations: 0 / 1.063 GB, free: 2.758 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0005205/0.6506, allocations: 195.8 kB / 1.063 GB, free: 2.566 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.001395/0.652, allocations: 1.39 MB / 1.064 GB, free: 1.137 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0004776/0.6525, allocations: 315.3 kB / 1.065 GB, free: 0.832 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.6525, allocations: 4.062 kB / 1.065 GB, free: 0.8281 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0002037/0.6527, allocations: 163.8 kB / 1.065 GB, free: 0.668 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001389/0.6541, allocations: 346.4 kB / 1.065 GB, free: 356 kB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004825/0.6589, allocations: 4.439 MB / 1.069 GB, free: 11.76 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003642/0.6593, allocations: 0.8705 MB / 1.07 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0003381/0.6596, allocations: 112.7 kB / 1.07 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002234/0.6599, allocations: 187.4 kB / 1.071 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of SimCode: time 1.312e-06/0.6599, allocations: 7.875 kB / 1.071 GB, free: 10.56 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.424/3.084, allocations: 16.6 MB / 1.087 GB, free: 10.26 MB / 0.8419 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002812/3.085, allocations: 235.3 kB / 1.087 GB, free: 10.01 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.648/6.733, allocations: 0 / 1.087 GB, free: 10.01 MB / 0.8419 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.Sensors.Examples.HeatMeter_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_Sensors_Examples_HeatMeter_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_Sensors_Examples_HeatMeter.fmu > 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Sensors.Examples.HeatMeter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches