Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Fluid_Sensors_Examples_HeatMeter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.HeatMeter,fileNamePrefix="Buildings_9_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.00149/0.00149, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002016/0.002016, allocations: 191.7 kB / 16.53 MB, free: 6.391 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.464/1.464, allocations: 222.9 MB / 240.2 MB, free: 4.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.391/2.391, allocations: 390.2 MB / 0.6647 GB, free: 428 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00153/0.00153, allocations: 67.89 kB / 0.8126 GB, free: 14.34 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7107/0.7122, allocations: 140.4 MB / 0.9497 GB, free: 9.09 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.02258/0.7348, allocations: 23.24 MB / 0.9724 GB, free: 6.418 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.008438/0.7433, allocations: 5.075 MB / 0.9774 GB, free: 2.281 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00136/0.7447, allocations: 25.03 kB / 0.9774 GB, free: 2.273 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0009672/0.7458, allocations: 280.3 kB / 0.9777 GB, free: 2.031 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.002534/0.7483, allocations: 0.7899 MB / 0.9784 GB, free: 1.395 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.002147/0.7505, allocations: 0.7574 MB / 0.9792 GB, free: 0.8203 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0023/0.7528, allocations: 1.606 MB / 0.9807 GB, free: 15.89 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007889/0.7536, allocations: 487.8 kB / 0.9812 GB, free: 15.59 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001718/0.7553, allocations: 0.6237 MB / 0.9818 GB, free: 15.23 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006564/0.756, allocations: 445.8 kB / 0.9822 GB, free: 14.97 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 9.085e-05/0.7561, allocations: 50.7 kB / 0.9823 GB, free: 14.96 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001185/0.7573, allocations: 485.6 kB / 0.9828 GB, free: 14.71 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0001433/0.7574, allocations: 140 kB / 0.9829 GB, free: 14.61 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0003236/0.7578, allocations: 306.7 kB / 0.9832 GB, free: 14.42 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.001272/0.759, allocations: 0.9117 MB / 0.9841 GB, free: 13.83 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.7591, allocations: 1.438 kB / 0.9841 GB, free: 13.83 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.272e-06/0.7591, allocations: 0 / 0.9841 GB, free: 13.83 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 9.528e-06/0.7591, allocations: 0 / 0.9841 GB, free: 13.83 MB / 0.7481 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.001279/0.7604, allocations: 0.8877 MB / 0.9849 GB, free: 13.09 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.458e-05/0.7604, allocations: 9.906 kB / 0.9849 GB, free: 13.09 MB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.872e-05/0.7605, allocations: 83.17 kB / 0.985 GB, free: 13.01 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002218/0.7607, allocations: 67.94 kB / 0.9851 GB, free: 12.98 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008807/0.7616, allocations: 0.5454 MB / 0.9856 GB, free: 12.51 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.333e-05/0.7617, allocations: 29.84 kB / 0.9857 GB, free: 12.5 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.499e-05/0.7618, allocations: 38 kB / 0.9857 GB, free: 12.48 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000672/0.7624, allocations: 439.6 kB / 0.9861 GB, free: 12.2 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.954e-05/0.7625, allocations: 11.83 kB / 0.9861 GB, free: 12.19 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.93e-05/0.7625, allocations: 19.94 kB / 0.9861 GB, free: 12.17 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.344e-05/0.7625, allocations: 14.62 kB / 0.9862 GB, free: 12.17 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005109/0.7631, allocations: 307 kB / 0.9864 GB, free: 12 MB / 0.7481 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.002485/0.7655, allocations: 1.915 MB / 0.9883 GB, free: 9.953 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004959/0.7661, allocations: 262.7 kB / 0.9886 GB, free: 9.688 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001762/0.7662, allocations: 124.8 kB / 0.9887 GB, free: 9.562 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008178/0.7671, allocations: 0.8506 MB / 0.9895 GB, free: 8.527 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.683e-05/0.7671, allocations: 34.56 kB / 0.9895 GB, free: 8.484 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=26): time 1.903e-06/0.7671, allocations: 0 / 0.9895 GB, free: 8.484 MB / 0.7481 GB Notification: Performance of matching and sorting (n=26): time 0.0006798/0.7678, allocations: 374.8 kB / 0.9899 GB, free: 8.113 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.798e-05/0.7678, allocations: 59.34 kB / 0.99 GB, free: 8.043 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000509/0.7684, allocations: 474.1 kB / 0.9904 GB, free: 7.57 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 3.021e-05/0.7684, allocations: 33.7 kB / 0.9904 GB, free: 7.531 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001792/0.7686, allocations: 260 kB / 0.9907 GB, free: 7.273 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 7.861e-05/0.7687, allocations: 98.64 kB / 0.9908 GB, free: 7.176 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001083/0.7688, allocations: 66.02 kB / 0.9908 GB, free: 7.105 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001314/0.7689, allocations: 358.8 kB / 0.9912 GB, free: 6.746 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001627/0.7691, allocations: 96.59 kB / 0.9913 GB, free: 6.652 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002197/0.7693, allocations: 172 kB / 0.9914 GB, free: 6.461 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003843/0.7697, allocations: 283.2 kB / 0.9917 GB, free: 6.16 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.7697, allocations: 0 / 0.9917 GB, free: 6.16 MB / 0.7481 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005564/0.7703, allocations: 368.8 kB / 0.9921 GB, free: 5.793 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.589e-05/0.7703, allocations: 4 kB / 0.9921 GB, free: 5.789 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.7703, allocations: 7.984 kB / 0.9921 GB, free: 5.781 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.698e-05/0.7703, allocations: 7.938 kB / 0.9921 GB, free: 5.773 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002748/0.7706, allocations: 71.91 kB / 0.9922 GB, free: 5.703 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.486e-06/0.7706, allocations: 4 kB / 0.9922 GB, free: 5.699 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003128/0.771, allocations: 35.61 kB / 0.9922 GB, free: 5.664 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.717e-05/0.771, allocations: 16 kB / 0.9922 GB, free: 5.648 MB / 0.7481 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.0001855/0.7712, allocations: 177.9 kB / 0.9924 GB, free: 5.465 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.466e-05/0.7713, allocations: 51.34 kB / 0.9924 GB, free: 5.414 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007802/0.7721, allocations: 480.9 kB / 0.9929 GB, free: 4.934 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.16e-05/0.7721, allocations: 11.88 kB / 0.9929 GB, free: 4.922 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.7721, allocations: 4 kB / 0.9929 GB, free: 4.918 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005577/0.7727, allocations: 0.5651 MB / 0.9935 GB, free: 4.285 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00171/0.7744, allocations: 1.164 MB / 0.9946 GB, free: 3.027 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.7744, allocations: 0 / 0.9946 GB, free: 3.027 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002308/0.7747, allocations: 55.91 kB / 0.9946 GB, free: 2.973 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.993e-06/0.7747, allocations: 4 kB / 0.9946 GB, free: 2.969 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.608e-05/0.7747, allocations: 8 kB / 0.9947 GB, free: 2.961 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.601e-06/0.7747, allocations: 8.188 kB / 0.9947 GB, free: 2.953 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.357e-06/0.7747, allocations: 3.984 kB / 0.9947 GB, free: 2.949 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008761/0.7756, allocations: 0.664 MB / 0.9953 GB, free: 2.25 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002035/0.7758, allocations: 172.4 kB / 0.9955 GB, free: 2.062 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.129e-05/0.7759, allocations: 8 kB / 0.9955 GB, free: 2.055 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002705/0.7762, allocations: 8 kB / 0.9955 GB, free: 2.047 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.044e-05/0.7762, allocations: 27.91 kB / 0.9955 GB, free: 2.02 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.277e-05/0.7763, allocations: 15.98 kB / 0.9955 GB, free: 2.004 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0003805/0.7767, allocations: 342.9 kB / 0.9959 GB, free: 1.672 MB / 0.7481 GB Notification: Performance of sort global known variables: time 2.2e-07/0.7767, allocations: 4 kB / 0.9959 GB, free: 1.668 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0006744/0.7773, allocations: 195.8 kB / 0.9961 GB, free: 1.477 MB / 0.7481 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.001578/0.7789, allocations: 1.393 MB / 0.9974 GB, free: 40 kB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0005552/0.7795, allocations: 311.7 kB / 0.9977 GB, free: 15.73 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.7795, allocations: 0 / 0.9977 GB, free: 15.73 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0002224/0.7797, allocations: 169.7 kB / 0.9979 GB, free: 15.57 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001562/0.7813, allocations: 343.9 kB / 0.9982 GB, free: 15.25 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005482/0.7868, allocations: 4.296 MB / 1.002 GB, free: 10.8 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004574/0.7873, allocations: 0.8666 MB / 1.003 GB, free: 9.906 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0004757/0.7878, allocations: 116.7 kB / 1.003 GB, free: 9.793 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002655/0.788, allocations: 191.4 kB / 1.004 GB, free: 9.605 MB / 0.7637 GB Notification: Performance of SimCode: time 6.11e-07/0.7881, allocations: 4 kB / 1.004 GB, free: 9.602 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04139/0.8295, allocations: 16.86 MB / 1.02 GB, free: 9 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.964/8.794, allocations: 10.08 kB / 1.02 GB, free: 8.992 MB / 0.7794 GB (rm -f Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe ; mkfifo Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe >> ../files/Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.024 Buildings_9_Buildings_Fluid_Sensors_Examples_HeatMeter.fmu > Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Sensors_Examples_HeatMeter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches