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.001197/0.001196, allocations: 108.6 kB / 15.73 MB, free: 72 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.001548/0.001548, allocations: 186.8 kB / 16.66 MB, free: 6.602 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.368/1.368, 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 10.1.1-maint.10.0.x/package.mo): time 2.583/2.583, allocations: 437 MB / 0.7105 GB, free: 4.93 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001225/0.001225, allocations: 63.91 kB / 1.018 GB, free: 15.13 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2957/0.2969, allocations: 151.6 MB / 1.166 GB, free: 7.383 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance): time 0.002176/0.2991, allocations: 1.282 MB / 1.167 GB, free: 6.086 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.003851/0.303, allocations: 3.759 MB / 1.171 GB, free: 2.309 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.887e-05/0.3031, allocations: 4 kB / 1.171 GB, free: 2.305 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 2.145e-05/0.3031, allocations: 3.938 kB / 1.171 GB, free: 2.301 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0004196/0.3035, allocations: 103.5 kB / 1.171 GB, free: 2.199 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003035/0.3039, allocations: 147.4 kB / 1.171 GB, free: 2.055 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 5.82e-05/0.3039, allocations: 23.92 kB / 1.171 GB, free: 2.031 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 3.784e-05/0.304, allocations: 8 kB / 1.171 GB, free: 2.023 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 9.721e-05/0.3041, allocations: 27.84 kB / 1.171 GB, free: 1.996 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 9.303e-05/0.3042, allocations: 35.91 kB / 1.171 GB, free: 1.961 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.086e-05/0.3042, allocations: 7.938 kB / 1.171 GB, free: 1.953 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000432/0.3046, allocations: 303.6 kB / 1.172 GB, free: 1.656 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 1.006e-05/0.3047, allocations: 0 / 1.172 GB, free: 1.656 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 2.368e-05/0.3047, allocations: 7.938 kB / 1.172 GB, free: 1.648 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0002057/0.3049, allocations: 123.9 kB / 1.172 GB, free: 1.527 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.3049, allocations: 0 / 1.172 GB, free: 1.527 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.613e-06/0.3049, allocations: 0 / 1.172 GB, free: 1.527 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.809e-06/0.3049, allocations: 4 kB / 1.172 GB, free: 1.523 MB / 0.92 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.0003854/0.3053, allocations: 359.1 kB / 1.172 GB, free: 1.125 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.809e-05/0.3054, allocations: 12.03 kB / 1.172 GB, free: 1.113 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.101e-05/0.3054, allocations: 30.75 kB / 1.172 GB, free: 1.074 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.5e-05/0.3054, allocations: 4.891 kB / 1.172 GB, free: 1.07 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001101/0.3055, allocations: 168.3 kB / 1.172 GB, free: 0.8672 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.638e-06/0.3056, allocations: 4.375 kB / 1.172 GB, free: 0.8633 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.488e-06/0.3056, allocations: 4.312 kB / 1.172 GB, free: 0.8594 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.003e-05/0.3057, allocations: 37.64 kB / 1.172 GB, free: 0.8164 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.504e-06/0.3057, allocations: 0 / 1.172 GB, free: 0.8164 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.594e-06/0.3057, allocations: 0 / 1.172 GB, free: 0.8164 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.788e-06/0.3057, allocations: 0 / 1.172 GB, free: 0.8164 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.493e-05/0.3057, allocations: 8 kB / 1.172 GB, free: 0.8086 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001496/0.3059, allocations: 153.7 kB / 1.173 GB, free: 0.6094 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 4.74e-05/0.3059, allocations: 22.55 kB / 1.173 GB, free: 0.5781 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.989e-05/0.306, allocations: 12.91 kB / 1.173 GB, free: 0.5625 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002217/0.3062, allocations: 109 kB / 1.173 GB, free: 448 kB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.034e-05/0.3062, allocations: 30.56 kB / 1.173 GB, free: 408 kB / 0.92 GB Notification: Performance of pre-optimization done (n=2): time 1.222e-06/0.3062, allocations: 0 / 1.173 GB, free: 408 kB / 0.92 GB Notification: Performance of matching and sorting (n=2): time 0.0001368/0.3064, allocations: 45.64 kB / 1.173 GB, free: 356 kB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.941e-05/0.3064, allocations: 51.41 kB / 1.173 GB, free: 292 kB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.758e-05/0.3065, allocations: 102 kB / 1.173 GB, free: 180 kB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.114e-05/0.3065, allocations: 25.7 kB / 1.173 GB, free: 148 kB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 3.249e-05/0.3065, allocations: 92.12 kB / 1.173 GB, free: 52 kB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 1.914e-05/0.3066, allocations: 7.891 kB / 1.173 GB, free: 44 kB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.686e-05/0.3066, allocations: 13.72 kB / 1.173 GB, free: 24 kB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.000104/0.3067, allocations: 314.8 kB / 1.173 GB, free: 15.71 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.385e-05/0.3067, allocations: 0 / 1.173 GB, free: 15.71 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.043e-05/0.3067, allocations: 4 kB / 1.173 GB, free: 15.7 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.917e-05/0.3068, allocations: 12.92 kB / 1.173 GB, free: 15.69 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.3068, allocations: 0 / 1.173 GB, free: 15.69 MB / 0.9356 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.077e-05/0.3069, allocations: 49.62 kB / 1.173 GB, free: 15.63 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.144e-05/0.3069, allocations: 4 kB / 1.173 GB, free: 15.63 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.558e-06/0.3069, allocations: 0 / 1.173 GB, free: 15.63 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.443e-05/0.3069, allocations: 256 / 1.173 GB, free: 15.63 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.201e-05/0.307, allocations: 7.938 kB / 1.173 GB, free: 15.62 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.162e-06/0.307, allocations: 7.938 kB / 1.173 GB, free: 15.61 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.493e-05/0.307, allocations: 0 / 1.173 GB, free: 15.61 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.882e-06/0.307, allocations: 8.016 kB / 1.173 GB, free: 15.61 MB / 0.9356 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 5.864e-05/0.3071, allocations: 113.8 kB / 1.174 GB, free: 15.48 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.127e-06/0.3071, allocations: 3.938 kB / 1.174 GB, free: 15.48 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001082/0.3072, allocations: 48.83 kB / 1.174 GB, free: 15.42 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.3072, allocations: 3.984 kB / 1.174 GB, free: 15.42 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.3072, allocations: 0 / 1.174 GB, free: 15.42 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.344e-06/0.3072, allocations: 3.938 kB / 1.174 GB, free: 15.41 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.199e-05/0.3073, allocations: 149.7 kB / 1.174 GB, free: 15.22 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.3073, allocations: 11.97 kB / 1.174 GB, free: 15.21 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.908e-05/0.3073, allocations: 0 / 1.174 GB, free: 15.21 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.393e-06/0.3074, allocations: 0 / 1.174 GB, free: 15.21 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.662e-06/0.3074, allocations: 4 kB / 1.174 GB, free: 15.2 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.295e-06/0.3074, allocations: 3.938 kB / 1.174 GB, free: 15.2 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.3074, allocations: 0 / 1.174 GB, free: 15.2 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.278e-05/0.3075, allocations: 69.08 kB / 1.174 GB, free: 15.11 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.164e-05/0.3075, allocations: 85.05 kB / 1.174 GB, free: 15.01 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.098e-05/0.3075, allocations: 4.031 kB / 1.174 GB, free: 15.01 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.45e-05/0.3075, allocations: 0 / 1.174 GB, free: 15.01 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.442e-05/0.3076, allocations: 0 / 1.174 GB, free: 15.01 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.355e-06/0.3076, allocations: 4 kB / 1.174 GB, free: 15 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 3.312e-05/0.3076, allocations: 83.27 kB / 1.174 GB, free: 14.92 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3076, allocations: 0 / 1.174 GB, free: 14.92 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002285/0.3078, allocations: 23.88 kB / 1.174 GB, free: 14.9 MB / 0.9356 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.0003912/0.3082, allocations: 0.6435 MB / 1.175 GB, free: 14.23 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 7.591e-05/0.3083, allocations: 11.98 kB / 1.175 GB, free: 14.21 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3083, allocations: 0 / 1.175 GB, free: 14.21 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 1.44e-05/0.3084, allocations: 8 kB / 1.175 GB, free: 14.21 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002204/0.3086, allocations: 4 kB / 1.175 GB, free: 14.2 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003829/0.309, allocations: 165.4 kB / 1.175 GB, free: 14 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000212/0.3092, allocations: 0.6729 MB / 1.176 GB, free: 13.3 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.028e-05/0.3092, allocations: 15.83 kB / 1.176 GB, free: 13.29 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.633e-05/0.3093, allocations: 7.438 kB / 1.176 GB, free: 13.28 MB / 0.9356 GB Notification: Performance of SimCode: time 2.6e-07/0.3093, allocations: 0 / 1.176 GB, free: 13.28 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01827/0.3275, allocations: 1.654 MB / 1.177 GB, free: 11.77 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.458/7.785, allocations: 9.828 kB / 1.177 GB, free: 11.76 MB / 0.9356 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