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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.008092/0.008092, allocations: 103.6 kB / 15.74 MB, free: 6.449 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.001778/0.001778, allocations: 196.5 kB / 16.67 MB, free: 6.355 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.422/1.422, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.893/2.893, allocations: 482.4 MB / 0.7548 GB, free: 10.83 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001949/0.00195, allocations: 67.83 kB / 1.083 GB, free: 12.49 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2914/0.2933, allocations: 162.2 MB / 1.241 GB, free: 10.14 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.5701/0.8635, allocations: 23.26 MB / 1.264 GB, free: 3.094 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.006965/0.8705, allocations: 5.091 MB / 1.269 GB, free: 15.49 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009274/0.8715, allocations: 28.88 kB / 1.269 GB, free: 15.48 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0008749/0.8724, allocations: 280.8 kB / 1.269 GB, free: 15.3 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.002401/0.8748, allocations: 0.7793 MB / 1.27 GB, free: 14.85 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.002178/0.877, allocations: 0.7542 MB / 1.271 GB, free: 14.45 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.002346/0.8793, allocations: 1.612 MB / 1.273 GB, free: 13.7 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000767/0.8801, allocations: 495 kB / 1.273 GB, free: 13.49 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00179/0.8819, allocations: 0.7019 MB / 1.274 GB, free: 13.16 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006607/0.8826, allocations: 446.1 kB / 1.274 GB, free: 12.96 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 8.038e-05/0.8827, allocations: 49.12 kB / 1.274 GB, free: 12.96 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001224/0.8839, allocations: 488.2 kB / 1.275 GB, free: 12.78 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.0001976/0.8841, allocations: 143.7 kB / 1.275 GB, free: 12.7 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0003432/0.8845, allocations: 305.8 kB / 1.275 GB, free: 12.52 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.001509/0.886, allocations: 0.9378 MB / 1.276 GB, free: 12.18 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.297e-06/0.886, allocations: 0 / 1.276 GB, free: 12.18 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.393e-06/0.886, allocations: 0 / 1.276 GB, free: 12.18 MB / 1.014 GB Notification: Performance of Transformations before backend: time 9.398e-06/0.886, allocations: 0 / 1.276 GB, free: 12.18 MB / 1.014 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.001495/0.8875, allocations: 0.9033 MB / 1.277 GB, free: 11.49 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.86e-05/0.8876, allocations: 7.969 kB / 1.277 GB, free: 11.49 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.99e-05/0.8877, allocations: 77.31 kB / 1.277 GB, free: 11.43 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002345/0.8879, allocations: 72.56 kB / 1.277 GB, free: 11.39 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001081/0.889, allocations: 0.5813 MB / 1.278 GB, free: 11 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.653e-05/0.8891, allocations: 32.25 kB / 1.278 GB, free: 10.99 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.026e-05/0.8892, allocations: 38.03 kB / 1.278 GB, free: 10.98 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007552/0.8899, allocations: 442.3 kB / 1.278 GB, free: 10.76 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.857e-05/0.8899, allocations: 0.8906 kB / 1.278 GB, free: 10.76 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.318e-05/0.89, allocations: 19.31 kB / 1.278 GB, free: 10.74 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.025e-05/0.89, allocations: 12.31 kB / 1.278 GB, free: 10.74 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005085/0.8905, allocations: 300.3 kB / 1.278 GB, free: 10.64 MB / 1.014 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.002894/0.8934, allocations: 1.916 MB / 1.28 GB, free: 9.273 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005147/0.894, allocations: 270.9 kB / 1.281 GB, free: 9.16 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001877/0.8942, allocations: 120.3 kB / 1.281 GB, free: 9.113 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009721/0.8951, allocations: 0.8419 MB / 1.281 GB, free: 8.168 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.383e-05/0.8952, allocations: 46.09 kB / 1.282 GB, free: 8.117 MB / 1.014 GB Notification: Performance of pre-optimization done (n=26): time 2.254e-06/0.8952, allocations: 0 / 1.282 GB, free: 8.117 MB / 1.014 GB Notification: Performance of matching and sorting (n=26): time 0.0007658/0.896, allocations: 370 kB / 1.282 GB, free: 7.965 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.375e-05/0.896, allocations: 59.14 kB / 1.282 GB, free: 7.898 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005823/0.8966, allocations: 475.9 kB / 1.282 GB, free: 7.672 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 3.916e-05/0.8967, allocations: 33.67 kB / 1.282 GB, free: 7.637 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002289/0.8969, allocations: 262.8 kB / 1.283 GB, free: 7.422 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 9.75e-05/0.897, allocations: 102.8 kB / 1.283 GB, free: 7.34 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001338/0.8971, allocations: 70.28 kB / 1.283 GB, free: 7.301 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001816/0.8973, allocations: 359.5 kB / 1.283 GB, free: 6.969 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001668/0.8975, allocations: 95.69 kB / 1.283 GB, free: 6.938 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002508/0.8978, allocations: 173.6 kB / 1.283 GB, free: 6.828 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004356/0.8982, allocations: 279.3 kB / 1.284 GB, free: 6.664 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.8982, allocations: 4.875 kB / 1.284 GB, free: 6.66 MB / 1.014 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006849/0.8989, allocations: 373.6 kB / 1.284 GB, free: 6.492 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.585e-05/0.8989, allocations: 5.938 kB / 1.284 GB, free: 6.492 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-06/0.899, allocations: 2.469 kB / 1.284 GB, free: 6.492 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.633e-05/0.899, allocations: 3.984 kB / 1.284 GB, free: 6.492 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003041/0.8993, allocations: 77.45 kB / 1.284 GB, free: 6.484 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.767e-05/0.8993, allocations: 8.078 kB / 1.284 GB, free: 6.48 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002987/0.8996, allocations: 43.66 kB / 1.284 GB, free: 6.449 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.523e-05/0.8997, allocations: 12.89 kB / 1.284 GB, free: 6.449 MB / 1.014 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.0002578/0.8999, allocations: 183.5 kB / 1.284 GB, free: 6.293 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001218/0.9001, allocations: 52.2 kB / 1.284 GB, free: 6.266 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009477/0.901, allocations: 466.8 kB / 1.285 GB, free: 6.082 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.554e-05/0.901, allocations: 8.109 kB / 1.285 GB, free: 6.078 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.901, allocations: 2.25 kB / 1.285 GB, free: 6.078 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006635/0.9017, allocations: 0.5691 MB / 1.285 GB, free: 5.629 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001951/0.9037, allocations: 1.154 MB / 1.287 GB, free: 4.902 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.111e-06/0.9037, allocations: 1.281 kB / 1.287 GB, free: 4.902 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002219/0.9039, allocations: 53.94 kB / 1.287 GB, free: 4.895 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.5e-06/0.9039, allocations: 3.906 kB / 1.287 GB, free: 4.895 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.729e-05/0.904, allocations: 9.781 kB / 1.287 GB, free: 4.891 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.692e-06/0.904, allocations: 12.25 kB / 1.287 GB, free: 4.883 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.904, allocations: 1.703 kB / 1.287 GB, free: 4.883 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009481/0.9049, allocations: 0.669 MB / 1.287 GB, free: 4.492 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002424/0.9052, allocations: 171.8 kB / 1.287 GB, free: 4.348 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.517e-05/0.9053, allocations: 8.75 kB / 1.287 GB, free: 4.344 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002757/0.9056, allocations: 22.27 kB / 1.287 GB, free: 4.328 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.132e-05/0.9056, allocations: 27.89 kB / 1.288 GB, free: 4.32 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.148e-05/0.9057, allocations: 20.88 kB / 1.288 GB, free: 4.312 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0004466/0.9061, allocations: 346.2 kB / 1.288 GB, free: 4.152 MB / 1.014 GB Notification: Performance of sort global known variables: time 2.41e-07/0.9061, allocations: 4 kB / 1.288 GB, free: 4.148 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0007283/0.9069, allocations: 203.2 kB / 1.288 GB, free: 4.102 MB / 1.014 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.001827/0.9087, allocations: 1.385 MB / 1.289 GB, free: 3.133 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.000548/0.9093, allocations: 290.7 kB / 1.29 GB, free: 3.043 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.9093, allocations: 0 / 1.29 GB, free: 3.043 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.000251/0.9095, allocations: 167.7 kB / 1.29 GB, free: 2.984 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00166/0.9112, allocations: 336.3 kB / 1.29 GB, free: 2.883 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005775/0.917, allocations: 4.243 MB / 1.294 GB, free: 308 kB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005675/0.9176, allocations: 0.8634 MB / 1.295 GB, free: 15.59 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0004858/0.9181, allocations: 121.8 kB / 1.295 GB, free: 15.55 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002953/0.9184, allocations: 190.4 kB / 1.295 GB, free: 15.43 MB / 1.029 GB Notification: Performance of SimCode: time 6.22e-07/0.9184, allocations: 4 kB / 1.295 GB, free: 15.42 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04973/0.9681, allocations: 16.98 MB / 1.312 GB, free: 13.45 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.798/9.766, allocations: 8.156 kB / 1.312 GB, free: 13.45 MB / 1.029 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter_res.csv --start-time 0 --stop-time 60 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.024 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.csv","/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