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.005682/0.005682, allocations: 100.9 kB / 15.73 MB, free: 6.055 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.001704/0.001704, allocations: 195.3 kB / 16.67 MB, free: 5.969 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.199/1.199, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.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.201/2.201, allocations: 437.1 MB / 0.7106 GB, free: 4.34 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001718/0.001718, allocations: 67.89 kB / 1.018 GB, free: 9.848 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6187/0.6204, allocations: 151.6 MB / 1.166 GB, free: 3.73 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.02306/0.6435, allocations: 23.24 MB / 1.189 GB, free: 12.39 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.006599/0.6501, allocations: 5.081 MB / 1.194 GB, free: 7.293 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005928/0.6508, allocations: 31.81 kB / 1.194 GB, free: 7.262 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0006665/0.6514, allocations: 278.1 kB / 1.194 GB, free: 6.988 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.001643/0.6531, allocations: 0.785 MB / 1.195 GB, free: 6.199 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.001538/0.6547, allocations: 0.7625 MB / 1.196 GB, free: 5.441 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.001734/0.6564, allocations: 1.618 MB / 1.197 GB, free: 3.82 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006243/0.657, allocations: 489.5 kB / 1.198 GB, free: 3.34 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00117/0.6582, allocations: 0.5992 MB / 1.198 GB, free: 2.738 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000514/0.6587, allocations: 462 kB / 1.199 GB, free: 2.285 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 7.28e-05/0.6588, allocations: 48 kB / 1.199 GB, free: 2.238 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000849/0.6597, allocations: 495.1 kB / 1.199 GB, free: 1.754 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0001358/0.6598, allocations: 135.5 kB / 1.199 GB, free: 1.621 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0002863/0.6601, allocations: 310.5 kB / 1.2 GB, free: 1.316 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.001108/0.6612, allocations: 0.9261 MB / 1.201 GB, free: 404 kB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.6612, allocations: 0 / 1.201 GB, free: 404 kB / 0.92 GB Notification: Performance of FrontEnd: time 1.002e-06/0.6613, allocations: 0 / 1.201 GB, free: 404 kB / 0.92 GB Notification: Performance of Transformations before backend: time 1.063e-05/0.6613, allocations: 4 kB / 1.201 GB, free: 400 kB / 0.92 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.001171/0.6624, allocations: 0.9068 MB / 1.201 GB, free: 15.43 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.155e-05/0.6625, allocations: 8.922 kB / 1.201 GB, free: 15.43 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.776e-05/0.6626, allocations: 78.72 kB / 1.202 GB, free: 15.34 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001803/0.6628, allocations: 72.55 kB / 1.202 GB, free: 15.27 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000862/0.6636, allocations: 0.5807 MB / 1.202 GB, free: 14.65 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.987e-05/0.6637, allocations: 32.98 kB / 1.202 GB, free: 14.61 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.78e-05/0.6637, allocations: 40 kB / 1.202 GB, free: 14.57 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006198/0.6644, allocations: 432.7 kB / 1.203 GB, free: 14.13 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.672e-05/0.6644, allocations: 4 kB / 1.203 GB, free: 14.13 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.378e-05/0.6644, allocations: 19.94 kB / 1.203 GB, free: 14.11 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.846e-05/0.6644, allocations: 16 kB / 1.203 GB, free: 14.09 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004846/0.6649, allocations: 303.8 kB / 1.203 GB, free: 13.8 MB / 0.9356 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.002344/0.6673, allocations: 1.912 MB / 1.205 GB, free: 11.75 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004588/0.6678, allocations: 257.2 kB / 1.205 GB, free: 11.5 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000173/0.6679, allocations: 128.7 kB / 1.205 GB, free: 11.37 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007771/0.6687, allocations: 0.8545 MB / 1.206 GB, free: 10.33 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.698e-05/0.6688, allocations: 38.56 kB / 1.206 GB, free: 10.28 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=26): time 1.283e-06/0.6688, allocations: 0 / 1.206 GB, free: 10.28 MB / 0.9356 GB Notification: Performance of matching and sorting (n=26): time 0.0006219/0.6694, allocations: 375.9 kB / 1.206 GB, free: 9.91 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.256e-05/0.6694, allocations: 55.41 kB / 1.207 GB, free: 9.844 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005011/0.67, allocations: 478 kB / 1.207 GB, free: 9.363 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.689e-05/0.67, allocations: 33.7 kB / 1.207 GB, free: 9.324 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001872/0.6702, allocations: 264.4 kB / 1.207 GB, free: 9.062 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 8.02e-05/0.6703, allocations: 107.2 kB / 1.207 GB, free: 8.957 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.832e-05/0.6704, allocations: 73.86 kB / 1.207 GB, free: 8.879 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.000147/0.6705, allocations: 358.8 kB / 1.208 GB, free: 8.52 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001557/0.6707, allocations: 96.59 kB / 1.208 GB, free: 8.426 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002123/0.6709, allocations: 168.1 kB / 1.208 GB, free: 8.238 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003772/0.6713, allocations: 280 kB / 1.208 GB, free: 7.941 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.6713, allocations: 4 kB / 1.208 GB, free: 7.938 MB / 0.9356 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005253/0.6718, allocations: 361.2 kB / 1.209 GB, free: 7.578 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.114e-05/0.6719, allocations: 4 kB / 1.209 GB, free: 7.574 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.6719, allocations: 4 kB / 1.209 GB, free: 7.57 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.403e-05/0.6719, allocations: 7.938 kB / 1.209 GB, free: 7.562 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002469/0.6721, allocations: 79.83 kB / 1.209 GB, free: 7.484 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.055e-06/0.6721, allocations: 8.219 kB / 1.209 GB, free: 7.477 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002169/0.6724, allocations: 35.69 kB / 1.209 GB, free: 7.441 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.291e-05/0.6724, allocations: 19.98 kB / 1.209 GB, free: 7.422 MB / 0.9356 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.0001752/0.6726, allocations: 177.7 kB / 1.209 GB, free: 7.238 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.611e-05/0.6727, allocations: 47.72 kB / 1.209 GB, free: 7.191 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000735/0.6734, allocations: 470.6 kB / 1.209 GB, free: 6.73 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-05/0.6735, allocations: 11.92 kB / 1.209 GB, free: 6.719 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.6735, allocations: 11.94 kB / 1.209 GB, free: 6.707 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005511/0.674, allocations: 0.5684 MB / 1.21 GB, free: 6.07 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001588/0.6756, allocations: 1.152 MB / 1.211 GB, free: 4.824 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.6756, allocations: 0 / 1.211 GB, free: 4.824 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002019/0.6758, allocations: 51.97 kB / 1.211 GB, free: 4.773 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.949e-06/0.6759, allocations: 7.938 kB / 1.211 GB, free: 4.766 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.086e-05/0.6759, allocations: 12.19 kB / 1.211 GB, free: 4.754 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.068e-06/0.6759, allocations: 7.938 kB / 1.211 GB, free: 4.746 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.6759, allocations: 0 / 1.211 GB, free: 4.746 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008121/0.6767, allocations: 0.6689 MB / 1.212 GB, free: 4.043 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001866/0.6769, allocations: 180.6 kB / 1.212 GB, free: 3.848 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.873e-05/0.677, allocations: 8 kB / 1.212 GB, free: 3.84 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002372/0.6772, allocations: 12 kB / 1.212 GB, free: 3.828 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.033e-05/0.6773, allocations: 23.91 kB / 1.212 GB, free: 3.805 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.085e-05/0.6773, allocations: 19.98 kB / 1.212 GB, free: 3.785 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.000371/0.6777, allocations: 346.9 kB / 1.212 GB, free: 3.449 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6777, allocations: 0 / 1.212 GB, free: 3.449 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0005228/0.6782, allocations: 199.6 kB / 1.213 GB, free: 3.254 MB / 0.9356 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.001506/0.6797, allocations: 1.411 MB / 1.214 GB, free: 1.805 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004388/0.6802, allocations: 291.6 kB / 1.214 GB, free: 1.52 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.6802, allocations: 0 / 1.214 GB, free: 1.52 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0002194/0.6804, allocations: 163.8 kB / 1.214 GB, free: 1.359 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001408/0.6818, allocations: 341.5 kB / 1.215 GB, free: 1.035 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004768/0.6866, allocations: 4.21 MB / 1.219 GB, free: 12.67 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004259/0.687, allocations: 0.8666 MB / 1.22 GB, free: 11.77 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0002975/0.6873, allocations: 116.7 kB / 1.22 GB, free: 11.66 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002394/0.6876, allocations: 195.4 kB / 1.22 GB, free: 11.46 MB / 0.9512 GB Notification: Performance of SimCode: time 3.11e-07/0.6876, allocations: 0 / 1.22 GB, free: 11.46 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.175/4.862, allocations: 16.99 MB / 1.237 GB, free: 10.73 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.48/15.34, allocations: 12.7 kB / 1.237 GB, free: 10.73 MB / 0.9669 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=400 --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