Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.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.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance,fileNamePrefix="Buildings_10_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ConvectionResistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance,fileNamePrefix="Buildings_10_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ConvectionResistance",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.001724/0.001724, 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.002206/0.002206, allocations: 195.5 kB / 16.54 MB, free: 6.672 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.393/1.393, allocations: 222.9 MB / 240.2 MB, free: 4.395 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.505/2.505, allocations: 437.1 MB / 0.7104 GB, free: 5.098 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001787/0.001787, allocations: 67.91 kB / 0.8694 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6675/0.6693, allocations: 151.6 MB / 1.017 GB, free: 2.477 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance): time 0.002367/0.6717, allocations: 1.288 MB / 1.019 GB, free: 1.176 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.003823/0.6755, allocations: 3.748 MB / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.771e-05/0.6756, allocations: 0 / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.523e-05/0.6756, allocations: 7.922 kB / 1.022 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0004121/0.676, allocations: 95.48 kB / 1.022 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.000306/0.6764, allocations: 151.1 kB / 1.023 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 6.483e-05/0.6764, allocations: 27.91 kB / 1.023 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 4.653e-05/0.6765, allocations: 4 kB / 1.023 GB, free: 13.13 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001021/0.6766, allocations: 27.92 kB / 1.023 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 9.36e-05/0.6767, allocations: 43.83 kB / 1.023 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 9.348e-06/0.6767, allocations: 0 / 1.023 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004191/0.6771, allocations: 295.6 kB / 1.023 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.106e-05/0.6772, allocations: 0 / 1.023 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 2.269e-05/0.6772, allocations: 7.938 kB / 1.023 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001961/0.6774, allocations: 130 kB / 1.023 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.6774, allocations: 0 / 1.023 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.034e-06/0.6774, allocations: 0 / 1.023 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.44e-06/0.6774, allocations: 3.938 kB / 1.023 GB, free: 12.64 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.000348/0.6778, allocations: 351.5 kB / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.956e-05/0.6778, allocations: 12.03 kB / 1.023 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.072e-05/0.6779, allocations: 34.75 kB / 1.023 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.285e-05/0.6779, allocations: 8.828 kB / 1.023 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001132/0.678, allocations: 172.3 kB / 1.024 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.215e-06/0.678, allocations: 384 / 1.024 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.086e-05/0.678, allocations: 4.375 kB / 1.024 GB, free: 11.97 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.234e-05/0.6781, allocations: 33.64 kB / 1.024 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.773e-06/0.6781, allocations: 0 / 1.024 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.894e-06/0.6782, allocations: 0 / 1.024 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.53e-06/0.6782, allocations: 0 / 1.024 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.275e-05/0.6782, allocations: 11.98 kB / 1.024 GB, free: 11.92 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001467/0.6784, allocations: 153.7 kB / 1.024 GB, free: 11.72 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 4.42e-05/0.6784, allocations: 30.55 kB / 1.024 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.771e-05/0.6784, allocations: 4.859 kB / 1.024 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000232/0.6787, allocations: 105.1 kB / 1.024 GB, free: 11.55 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.992e-05/0.6787, allocations: 34.56 kB / 1.024 GB, free: 11.51 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 1.152e-06/0.6787, allocations: 0 / 1.024 GB, free: 11.51 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.0001339/0.6788, allocations: 45.59 kB / 1.024 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.582e-05/0.6789, allocations: 55.53 kB / 1.024 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.166e-05/0.679, allocations: 105.8 kB / 1.024 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.115e-05/0.679, allocations: 33.64 kB / 1.024 GB, free: 11.24 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.058e-05/0.679, allocations: 84.14 kB / 1.024 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.705e-05/0.679, allocations: 0 / 1.024 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.594e-05/0.6791, allocations: 13.72 kB / 1.024 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.546e-05/0.6791, allocations: 314.8 kB / 1.025 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.305e-05/0.6792, allocations: 4 kB / 1.025 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.001e-05/0.6792, allocations: 7.984 kB / 1.025 GB, free: 10.81 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.19e-05/0.6792, allocations: 12.86 kB / 1.025 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.112e-06/0.6792, allocations: 0 / 1.025 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.308e-05/0.6793, allocations: 45.55 kB / 1.025 GB, free: 10.74 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.231e-05/0.6793, allocations: 4 kB / 1.025 GB, free: 10.74 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.968e-06/0.6793, allocations: 0 / 1.025 GB, free: 10.74 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.498e-05/0.6793, allocations: 4 kB / 1.025 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.991e-05/0.6794, allocations: 3.938 kB / 1.025 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.702e-06/0.6794, allocations: 8.078 kB / 1.025 GB, free: 10.72 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.63e-05/0.6794, allocations: 4 kB / 1.025 GB, free: 10.72 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.118e-06/0.6794, allocations: 0 / 1.025 GB, free: 10.72 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (2): * Single equations (assignments): 2 * 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 6.207e-05/0.6795, allocations: 105.8 kB / 1.025 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.018e-05/0.6795, allocations: 7.938 kB / 1.025 GB, free: 10.6 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001128/0.6796, allocations: 52.75 kB / 1.025 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.6796, allocations: 0 / 1.025 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.6797, allocations: 0 / 1.025 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.6797, allocations: 8.031 kB / 1.025 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.013e-05/0.6798, allocations: 153.9 kB / 1.025 GB, free: 10.33 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.6798, allocations: 7.938 kB / 1.025 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.009e-05/0.6798, allocations: 0 / 1.025 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.6798, allocations: 4 kB / 1.025 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.001e-06/0.6798, allocations: 3.938 kB / 1.025 GB, free: 10.31 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.92e-07/0.6798, allocations: 0 / 1.025 GB, free: 10.31 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.6798, allocations: 0 / 1.025 GB, free: 10.31 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.042e-05/0.6799, allocations: 69.12 kB / 1.025 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.629e-05/0.68, allocations: 88.95 kB / 1.025 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.236e-05/0.68, allocations: 3.984 kB / 1.025 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.481e-05/0.68, allocations: 0 / 1.025 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.669e-05/0.68, allocations: 7.984 kB / 1.025 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.354e-06/0.68, allocations: 3.938 kB / 1.025 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.363e-05/0.6801, allocations: 79.28 kB / 1.025 GB, free: 10.03 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6801, allocations: 0 / 1.025 GB, free: 10.03 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002031/0.6803, allocations: 23.94 kB / 1.025 GB, free: 10 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (2): * Single equations (assignments): 2 * 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 Backend phase and start with SimCode phase: time 0.0003693/0.6806, allocations: 0.6397 MB / 1.026 GB, free: 9.336 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 7.435e-05/0.6807, allocations: 8 kB / 1.026 GB, free: 9.328 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.6807, allocations: 0 / 1.026 GB, free: 9.328 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 1.298e-05/0.6808, allocations: 8 kB / 1.026 GB, free: 9.32 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002182/0.681, allocations: 12.09 kB / 1.026 GB, free: 9.309 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003701/0.6814, allocations: 169.2 kB / 1.026 GB, free: 9.105 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001878/0.6816, allocations: 0.6768 MB / 1.027 GB, free: 8.402 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.734e-05/0.6816, allocations: 8 kB / 1.027 GB, free: 8.395 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.429e-05/0.6816, allocations: 11.38 kB / 1.027 GB, free: 8.383 MB / 0.7794 GB Notification: Performance of SimCode: time 2.81e-07/0.6816, allocations: 0 / 1.027 GB, free: 8.383 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01842/0.7001, allocations: 1.619 MB / 1.028 GB, free: 6.887 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.63/8.33, allocations: 10.02 kB / 1.028 GB, free: 6.879 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.pipe ; mkfifo Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.pipe >> ../files/Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_10_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ConvectionResistance.fmu > Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ConvectionResistance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches