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.007685/0.007685, allocations: 101.8 kB / 15.73 MB, free: 6.441 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.001756/0.001756, allocations: 196 kB / 16.67 MB, free: 6.352 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.375/1.375, allocations: 222.9 MB / 240.4 MB, free: 4.293 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.66/2.66, allocations: 437 MB / 0.7105 GB, free: 4.965 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 63.89 kB / 1.018 GB, free: 14.99 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3161/0.3173, allocations: 151.6 MB / 1.166 GB, free: 7.246 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.02391/0.3413, allocations: 23.24 MB / 1.189 GB, free: 15.91 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.007423/0.3488, allocations: 5.089 MB / 1.194 GB, free: 10.8 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007986/0.3496, allocations: 27.81 kB / 1.194 GB, free: 10.78 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0008401/0.3504, allocations: 274.1 kB / 1.194 GB, free: 10.51 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.001996/0.3525, allocations: 0.8358 MB / 1.195 GB, free: 9.668 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.001923/0.3544, allocations: 0.7772 MB / 1.196 GB, free: 8.895 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.002058/0.3565, allocations: 1.609 MB / 1.197 GB, free: 7.281 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007022/0.3572, allocations: 485.5 kB / 1.198 GB, free: 6.801 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0014/0.3586, allocations: 0.6337 MB / 1.198 GB, free: 6.168 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005642/0.3592, allocations: 450 kB / 1.199 GB, free: 5.727 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 9.084e-05/0.3593, allocations: 48 kB / 1.199 GB, free: 5.68 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001146/0.3605, allocations: 491.1 kB / 1.199 GB, free: 5.199 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0001628/0.3606, allocations: 147.4 kB / 1.199 GB, free: 5.055 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0003459/0.361, allocations: 306.5 kB / 1.2 GB, free: 4.754 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.001302/0.3623, allocations: 0.9186 MB / 1.201 GB, free: 3.832 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.3623, allocations: 0 / 1.201 GB, free: 3.832 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.723e-06/0.3623, allocations: 0 / 1.201 GB, free: 3.832 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 8.967e-06/0.3623, allocations: 4 kB / 1.201 GB, free: 3.828 MB / 0.9512 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.001334/0.3637, allocations: 0.9146 MB / 1.202 GB, free: 2.863 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.205e-05/0.3637, allocations: 8.031 kB / 1.202 GB, free: 2.855 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.967e-05/0.3638, allocations: 74.72 kB / 1.202 GB, free: 2.773 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002171/0.3641, allocations: 68.56 kB / 1.202 GB, free: 2.707 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001038/0.3651, allocations: 0.5845 MB / 1.202 GB, free: 2.082 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.991e-05/0.3652, allocations: 40.92 kB / 1.202 GB, free: 2.043 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.813e-05/0.3652, allocations: 40 kB / 1.202 GB, free: 2.004 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000662/0.3659, allocations: 428.7 kB / 1.203 GB, free: 1.566 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.038e-05/0.3659, allocations: 7.938 kB / 1.203 GB, free: 1.559 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.798e-05/0.366, allocations: 19.98 kB / 1.203 GB, free: 1.539 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.228e-05/0.366, allocations: 15.98 kB / 1.203 GB, free: 1.523 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005034/0.3665, allocations: 299.8 kB / 1.203 GB, free: 1.23 MB / 0.9512 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.002709/0.3692, allocations: 1.919 MB / 1.205 GB, free: 15.18 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005089/0.3698, allocations: 254.7 kB / 1.205 GB, free: 14.92 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001855/0.37, allocations: 124.8 kB / 1.205 GB, free: 14.8 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008141/0.3708, allocations: 0.8506 MB / 1.206 GB, free: 13.76 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.967e-05/0.3708, allocations: 42.55 kB / 1.206 GB, free: 13.71 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=26): time 2.023e-06/0.3708, allocations: 3.938 kB / 1.206 GB, free: 13.71 MB / 0.9669 GB Notification: Performance of matching and sorting (n=26): time 0.0007668/0.3716, allocations: 373 kB / 1.207 GB, free: 13.34 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.323e-05/0.3717, allocations: 55.41 kB / 1.207 GB, free: 13.27 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000641/0.3723, allocations: 478 kB / 1.207 GB, free: 12.79 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 3.723e-05/0.3724, allocations: 33.7 kB / 1.207 GB, free: 12.75 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002422/0.3726, allocations: 264.4 kB / 1.207 GB, free: 12.49 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001026/0.3727, allocations: 95.17 kB / 1.207 GB, free: 12.39 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001469/0.3729, allocations: 73.97 kB / 1.207 GB, free: 12.32 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001933/0.3731, allocations: 358.8 kB / 1.208 GB, free: 11.96 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000177/0.3733, allocations: 96.59 kB / 1.208 GB, free: 11.86 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002431/0.3735, allocations: 176.1 kB / 1.208 GB, free: 11.67 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004267/0.3739, allocations: 278.7 kB / 1.208 GB, free: 11.37 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.588e-06/0.374, allocations: 0 / 1.208 GB, free: 11.37 MB / 0.9669 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006606/0.3746, allocations: 365.1 kB / 1.209 GB, free: 11.01 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.078e-05/0.3747, allocations: 4 kB / 1.209 GB, free: 11 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.041e-05/0.3747, allocations: 4 kB / 1.209 GB, free: 11 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.213e-05/0.3747, allocations: 7.938 kB / 1.209 GB, free: 10.99 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002827/0.375, allocations: 76.11 kB / 1.209 GB, free: 10.92 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.237e-05/0.375, allocations: 4 kB / 1.209 GB, free: 10.91 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003039/0.3753, allocations: 39.62 kB / 1.209 GB, free: 10.88 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.337e-05/0.3754, allocations: 19.98 kB / 1.209 GB, free: 10.86 MB / 0.9669 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.000222/0.3756, allocations: 175.7 kB / 1.209 GB, free: 10.68 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001192/0.3757, allocations: 51.72 kB / 1.209 GB, free: 10.62 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008466/0.3766, allocations: 476.9 kB / 1.21 GB, free: 10.15 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.551e-05/0.3766, allocations: 15.97 kB / 1.21 GB, free: 10.14 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.628e-06/0.3766, allocations: 7.984 kB / 1.21 GB, free: 10.13 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006405/0.3773, allocations: 0.5606 MB / 1.21 GB, free: 9.5 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001921/0.3792, allocations: 1.152 MB / 1.211 GB, free: 8.254 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.3792, allocations: 0 / 1.211 GB, free: 8.254 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002339/0.3795, allocations: 51.91 kB / 1.211 GB, free: 8.203 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.004e-05/0.3795, allocations: 8.188 kB / 1.211 GB, free: 8.195 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.096e-05/0.3795, allocations: 8 kB / 1.211 GB, free: 8.188 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.564e-06/0.3795, allocations: 4 kB / 1.211 GB, free: 8.184 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.3795, allocations: 0 / 1.211 GB, free: 8.184 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009679/0.3805, allocations: 0.6689 MB / 1.212 GB, free: 7.48 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002875/0.3808, allocations: 176.6 kB / 1.212 GB, free: 7.289 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001095/0.3809, allocations: 19.92 kB / 1.212 GB, free: 7.27 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002921/0.3812, allocations: 8 kB / 1.212 GB, free: 7.262 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.532e-05/0.3813, allocations: 27.91 kB / 1.212 GB, free: 7.234 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.088e-05/0.3814, allocations: 15.98 kB / 1.212 GB, free: 7.219 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0004544/0.3818, allocations: 346.9 kB / 1.213 GB, free: 6.883 MB / 0.9669 GB Notification: Performance of sort global known variables: time 2.054e-06/0.3818, allocations: 0 / 1.213 GB, free: 6.883 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0007286/0.3826, allocations: 207.5 kB / 1.213 GB, free: 6.68 MB / 0.9669 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.001824/0.3844, allocations: 1.405 MB / 1.214 GB, free: 5.238 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0005354/0.3849, allocations: 291.7 kB / 1.214 GB, free: 4.953 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.385, allocations: 0 / 1.214 GB, free: 4.953 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0002326/0.3852, allocations: 159.8 kB / 1.215 GB, free: 4.797 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001541/0.3868, allocations: 336.3 kB / 1.215 GB, free: 4.477 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00559/0.3924, allocations: 4.221 MB / 1.219 GB, free: 96 kB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004434/0.3928, allocations: 0.8666 MB / 1.22 GB, free: 15.2 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0004289/0.3933, allocations: 112.7 kB / 1.22 GB, free: 15.09 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002663/0.3936, allocations: 199.3 kB / 1.22 GB, free: 14.89 MB / 0.9825 GB Notification: Performance of SimCode: time 5.92e-07/0.3936, allocations: 0 / 1.22 GB, free: 14.89 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04245/0.436, allocations: 16.97 MB / 1.237 GB, free: 14.2 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.453/8.889, allocations: 21.8 kB / 1.237 GB, free: 14.18 MB / 0.9981 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 & python3 -m fmpy simulate --output-file Buildings_10_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_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.csv","/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