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: "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.HeatMeter,fileNamePrefix="Buildings_latest_Buildings_Fluid_Sensors_Examples_HeatMeter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.HeatMeter,fileNamePrefix="Buildings_latest_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.007314/0.007314, allocations: 103.9 kB / 15.73 MB, free: 6.035 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.001352/0.001352, allocations: 196 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.38/1.38, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.816/2.816, allocations: 461.9 MB / 0.7348 GB, free: 14.6 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001424/0.001424, allocations: 63.91 kB / 1.054 GB, free: 7.621 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3502/0.3516, allocations: 157.4 MB / 1.207 GB, free: 10.1 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.02864/0.3803, allocations: 23.23 MB / 1.23 GB, free: 2.773 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.008348/0.3887, allocations: 5.096 MB / 1.235 GB, free: 13.66 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009572/0.3897, allocations: 31.81 kB / 1.235 GB, free: 13.63 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.001013/0.3907, allocations: 282 kB / 1.235 GB, free: 13.36 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.002731/0.3935, allocations: 0.7812 MB / 1.236 GB, free: 12.57 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.00244/0.396, allocations: 0.7711 MB / 1.237 GB, free: 11.8 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.002392/0.3984, allocations: 1.609 MB / 1.238 GB, free: 10.19 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009818/0.3994, allocations: 477.5 kB / 1.239 GB, free: 9.723 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001828/0.4012, allocations: 0.6346 MB / 1.239 GB, free: 9.09 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009575/0.4022, allocations: 458 kB / 1.24 GB, free: 8.641 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001425/0.4024, allocations: 47.94 kB / 1.24 GB, free: 8.594 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001328/0.4037, allocations: 495.1 kB / 1.24 GB, free: 8.109 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002288/0.4039, allocations: 131.6 kB / 1.241 GB, free: 7.98 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0005144/0.4045, allocations: 310.5 kB / 1.241 GB, free: 7.676 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.002027/0.4065, allocations: 0.9153 MB / 1.242 GB, free: 6.758 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.4065, allocations: 4 kB / 1.242 GB, free: 6.754 MB / 0.9981 GB Notification: Performance of FrontEnd: time 3.817e-06/0.4065, allocations: 3.984 kB / 1.242 GB, free: 6.75 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 2.964e-05/0.4066, allocations: 0 / 1.242 GB, free: 6.75 MB / 0.9981 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.001957/0.4085, allocations: 0.8765 MB / 1.243 GB, free: 5.824 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 6.132e-05/0.4086, allocations: 12.62 kB / 1.243 GB, free: 5.812 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001191/0.4087, allocations: 78.7 kB / 1.243 GB, free: 5.727 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002739/0.409, allocations: 72.19 kB / 1.243 GB, free: 5.656 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00117/0.4102, allocations: 0.5803 MB / 1.243 GB, free: 5.035 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.134e-05/0.4102, allocations: 29 kB / 1.243 GB, free: 5.008 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.052e-05/0.4103, allocations: 36 kB / 1.243 GB, free: 4.973 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007009/0.411, allocations: 444.6 kB / 1.244 GB, free: 4.52 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.839e-05/0.411, allocations: 0 / 1.244 GB, free: 4.52 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.278e-05/0.4111, allocations: 19.98 kB / 1.244 GB, free: 4.5 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.78e-05/0.4111, allocations: 12 kB / 1.244 GB, free: 4.488 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005346/0.4117, allocations: 307.8 kB / 1.244 GB, free: 4.188 MB / 0.9981 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.002829/0.4145, allocations: 1.907 MB / 1.246 GB, free: 2.152 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005162/0.415, allocations: 254.8 kB / 1.246 GB, free: 1.895 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001775/0.4152, allocations: 124.8 kB / 1.246 GB, free: 1.77 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008297/0.4161, allocations: 0.8545 MB / 1.247 GB, free: 0.7305 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.291e-05/0.4161, allocations: 34.56 kB / 1.247 GB, free: 0.6875 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=26): time 1.674e-06/0.4161, allocations: 0 / 1.247 GB, free: 0.6875 MB / 0.9981 GB Notification: Performance of matching and sorting (n=26): time 0.0007011/0.4168, allocations: 376.7 kB / 1.248 GB, free: 320 kB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.97e-05/0.4169, allocations: 59.41 kB / 1.248 GB, free: 248 kB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.5781/0.995, allocations: 474.2 kB / 1.248 GB, free: 41.18 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 6.802e-05/0.9951, allocations: 32.23 kB / 1.248 GB, free: 41.15 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001774/0.9953, allocations: 257.8 kB / 1.248 GB, free: 41.07 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 7.665e-05/0.9954, allocations: 95.02 kB / 1.248 GB, free: 41.04 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001289/0.9955, allocations: 68.83 kB / 1.248 GB, free: 41.02 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 7.93e-05/0.9956, allocations: 354.6 kB / 1.249 GB, free: 40.71 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001746/0.9958, allocations: 98.17 kB / 1.249 GB, free: 40.71 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002318/0.996, allocations: 175.8 kB / 1.249 GB, free: 40.64 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00039/0.9964, allocations: 279.3 kB / 1.249 GB, free: 40.57 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.049e-06/0.9964, allocations: 1.5 kB / 1.249 GB, free: 40.57 MB / 0.9981 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006166/0.997, allocations: 366.2 kB / 1.25 GB, free: 40.52 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.897e-05/0.9971, allocations: 8.25 kB / 1.25 GB, free: 40.52 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.9971, allocations: 2.656 kB / 1.25 GB, free: 40.52 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.223e-05/0.9971, allocations: 8.5 kB / 1.25 GB, free: 40.52 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002927/0.9974, allocations: 70.69 kB / 1.25 GB, free: 40.52 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.796e-06/0.9974, allocations: 2.938 kB / 1.25 GB, free: 40.52 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002602/0.9977, allocations: 44.36 kB / 1.25 GB, free: 40.49 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.703e-05/0.9977, allocations: 13.98 kB / 1.25 GB, free: 40.49 MB / 0.9981 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.000172/0.9979, allocations: 180.5 kB / 1.25 GB, free: 40.38 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.571e-05/0.998, allocations: 53.23 kB / 1.25 GB, free: 40.35 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007942/0.9988, allocations: 479.9 kB / 1.251 GB, free: 40.3 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.272e-05/0.9988, allocations: 6.781 kB / 1.251 GB, free: 40.3 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.9989, allocations: 2.562 kB / 1.251 GB, free: 40.3 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00051/0.9994, allocations: 0.561 MB / 1.251 GB, free: 39.96 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001661/1.001, allocations: 1.153 MB / 1.252 GB, free: 39.49 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.851e-06/1.001, allocations: 2.5 kB / 1.252 GB, free: 39.49 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002172/1.001, allocations: 50.72 kB / 1.252 GB, free: 39.48 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.49e-06/1.001, allocations: 3.625 kB / 1.252 GB, free: 39.48 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.329e-05/1.001, allocations: 8.688 kB / 1.252 GB, free: 39.48 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.168e-06/1.001, allocations: 5.812 kB / 1.252 GB, free: 39.48 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/1.001, allocations: 5.797 kB / 1.252 GB, free: 39.48 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006867/1.002, allocations: 0.6783 MB / 1.253 GB, free: 39.25 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001717/1.002, allocations: 174.5 kB / 1.253 GB, free: 39.13 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.987e-05/1.002, allocations: 10 kB / 1.253 GB, free: 39.13 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000253/1.003, allocations: 9.406 kB / 1.253 GB, free: 39.13 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.77e-05/1.003, allocations: 28.17 kB / 1.253 GB, free: 39.12 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.062e-05/1.003, allocations: 18.28 kB / 1.253 GB, free: 39.12 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0003134/1.003, allocations: 353.2 kB / 1.254 GB, free: 39.04 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.3e-07/1.003, allocations: 0 / 1.254 GB, free: 39.04 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.000601/1.004, allocations: 197.8 kB / 1.254 GB, free: 39.02 MB / 0.9981 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.001267/1.005, allocations: 1.379 MB / 1.255 GB, free: 38.27 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.000428/1.005, allocations: 297.1 kB / 1.255 GB, free: 38.26 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/1.005, allocations: 0 / 1.255 GB, free: 38.26 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001884/1.005, allocations: 161.7 kB / 1.255 GB, free: 38.25 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001472/1.007, allocations: 343 kB / 1.256 GB, free: 38.22 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004533/1.012, allocations: 4.212 MB / 1.26 GB, free: 36.4 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003238/1.012, allocations: 0.8644 MB / 1.261 GB, free: 35.69 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0004198/1.012, allocations: 121.4 kB / 1.261 GB, free: 35.66 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002468/1.013, allocations: 195.1 kB / 1.261 GB, free: 35.65 MB / 0.9981 GB Notification: Performance of SimCode: time 7.21e-07/1.013, allocations: 0 / 1.261 GB, free: 35.65 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06101/1.074, allocations: 17.24 MB / 1.278 GB, free: 34.02 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.867/9.941, allocations: 8.297 kB / 1.278 GB, free: 34.02 MB / 0.9981 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Sensors_Examples_HeatMeter_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Sensors_Examples_HeatMeter.fmu > 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