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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001255/0.001255, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001323/0.001323, allocations: 195 kB / 16.14 MB, free: 6.648 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.205/1.205, allocations: 222.9 MB / 239.8 MB, free: 4.574 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.46/2.46, allocations: 437 MB / 0.7099 GB, free: 5.312 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001279/0.001279, allocations: 68.08 kB / 0.8687 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5015/0.5028, allocations: 151.6 MB / 1.017 GB, free: 2.871 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance): time 0.002251/0.5051, allocations: 1.362 MB / 1.018 GB, free: 1.496 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.003809/0.5089, allocations: 3.76 MB / 1.022 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.142e-05/0.509, allocations: 4 kB / 1.022 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.482e-05/0.509, allocations: 0 / 1.022 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0003888/0.5094, allocations: 95.55 kB / 1.022 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002563/0.5097, allocations: 91.69 kB / 1.022 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 5.36e-05/0.5097, allocations: 31.92 kB / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 3.032e-05/0.5098, allocations: 4 kB / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 9.481e-05/0.5099, allocations: 23.91 kB / 1.022 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 8.774e-05/0.51, allocations: 35.84 kB / 1.022 GB, free: 13.44 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.009e-05/0.51, allocations: 4 kB / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004187/0.5104, allocations: 299.6 kB / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.184e-05/0.5104, allocations: 4 kB / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 2.428e-05/0.5105, allocations: 7.938 kB / 1.022 GB, free: 13.13 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001924/0.5107, allocations: 118 kB / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.5107, allocations: 4 kB / 1.022 GB, free: 13.01 MB / 0.7794 GB Notification: Performance of FrontEnd: time 8.92e-07/0.5107, allocations: 4 kB / 1.022 GB, free: 13.01 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.075e-06/0.5107, allocations: 0 / 1.022 GB, free: 13.01 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.0003304/0.511, allocations: 351.5 kB / 1.023 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.63e-05/0.5111, allocations: 8.031 kB / 1.023 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.028e-05/0.5111, allocations: 30.75 kB / 1.023 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.37e-05/0.5111, allocations: 12.88 kB / 1.023 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.5e-05/0.5112, allocations: 172.3 kB / 1.023 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.662e-06/0.5112, allocations: 384 / 1.023 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.715e-06/0.5113, allocations: 384 / 1.023 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.08e-05/0.5113, allocations: 41.62 kB / 1.023 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.68e-06/0.5114, allocations: 0 / 1.023 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.853e-06/0.5114, allocations: 0 / 1.023 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.667e-06/0.5114, allocations: 4 kB / 1.023 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.101e-05/0.5114, allocations: 4 kB / 1.023 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001308/0.5115, allocations: 157.6 kB / 1.023 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 4.91e-05/0.5116, allocations: 30.5 kB / 1.023 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.992e-05/0.5116, allocations: 12.92 kB / 1.023 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002298/0.5119, allocations: 97.03 kB / 1.023 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.998e-05/0.5119, allocations: 30.56 kB / 1.023 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 1.122e-06/0.5119, allocations: 4 kB / 1.023 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.0001315/0.512, allocations: 45.59 kB / 1.023 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.549e-05/0.5121, allocations: 51.53 kB / 1.023 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.519e-05/0.5121, allocations: 109.8 kB / 1.024 GB, free: 11.65 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.299e-05/0.5122, allocations: 29.64 kB / 1.024 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 2.676e-05/0.5122, allocations: 84.12 kB / 1.024 GB, free: 11.53 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.055e-05/0.5122, allocations: 7.906 kB / 1.024 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.607e-05/0.5122, allocations: 13.72 kB / 1.024 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.433e-05/0.5123, allocations: 310.8 kB / 1.024 GB, free: 11.19 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.231e-05/0.5124, allocations: 4 kB / 1.024 GB, free: 11.19 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.128e-05/0.5124, allocations: 8 kB / 1.024 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.922e-05/0.5124, allocations: 13.17 kB / 1.024 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.5124, allocations: 0 / 1.024 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.426e-05/0.5125, allocations: 49.62 kB / 1.024 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.269e-05/0.5125, allocations: 8 kB / 1.024 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.067e-06/0.5125, allocations: 0 / 1.024 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.006e-05/0.5125, allocations: 0 / 1.024 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.197e-05/0.5126, allocations: 7.938 kB / 1.024 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.26e-06/0.5126, allocations: 0 / 1.024 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.629e-05/0.5126, allocations: 32 / 1.024 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.879e-06/0.5126, allocations: 4 kB / 1.024 GB, free: 11.09 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.1e-05/0.5127, allocations: 114.6 kB / 1.024 GB, free: 10.97 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.041e-05/0.5127, allocations: 3.938 kB / 1.024 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001031/0.5128, allocations: 48.77 kB / 1.024 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.5128, allocations: 3.984 kB / 1.024 GB, free: 10.9 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.918e-06/0.5128, allocations: 0 / 1.024 GB, free: 10.9 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.5128, allocations: 0 / 1.024 GB, free: 10.9 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.689e-05/0.5129, allocations: 157.7 kB / 1.024 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.5129, allocations: 3.938 kB / 1.024 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.348e-05/0.513, allocations: 4 kB / 1.024 GB, free: 10.69 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.513, allocations: 0 / 1.024 GB, free: 10.69 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.58e-06/0.513, allocations: 3.938 kB / 1.024 GB, free: 10.69 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/0.513, allocations: 0 / 1.024 GB, free: 10.69 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.513, allocations: 0 / 1.024 GB, free: 10.69 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.352e-05/0.5131, allocations: 69.03 kB / 1.024 GB, free: 10.6 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.733e-05/0.5131, allocations: 85.08 kB / 1.025 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.069e-05/0.5131, allocations: 4 kB / 1.025 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.461e-05/0.5132, allocations: 0 / 1.025 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.578e-05/0.5132, allocations: 4 kB / 1.025 GB, free: 10.49 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.715e-06/0.5132, allocations: 3.938 kB / 1.025 GB, free: 10.49 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.304e-05/0.5132, allocations: 83.27 kB / 1.025 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5132, allocations: 0 / 1.025 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002208/0.5134, allocations: 24 kB / 1.025 GB, free: 10.38 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.0003636/0.5138, allocations: 0.6396 MB / 1.025 GB, free: 9.715 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 6.022e-05/0.5139, allocations: 7.984 kB / 1.025 GB, free: 9.707 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.5139, allocations: 4 kB / 1.025 GB, free: 9.703 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 1.238e-05/0.5139, allocations: 4 kB / 1.025 GB, free: 9.699 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000199/0.5141, allocations: 7.469 kB / 1.025 GB, free: 9.695 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003452/0.5145, allocations: 179.2 kB / 1.025 GB, free: 9.484 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001768/0.5147, allocations: 0.6731 MB / 1.026 GB, free: 8.785 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.585e-05/0.5147, allocations: 3.906 kB / 1.026 GB, free: 8.781 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.391e-05/0.5147, allocations: 11.44 kB / 1.026 GB, free: 8.77 MB / 0.7794 GB Notification: Performance of SimCode: time 3.6e-07/0.5147, allocations: 4 kB / 1.026 GB, free: 8.766 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01028/0.525, allocations: 1.524 MB / 1.028 GB, free: 7.391 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002105/0.5252, allocations: 239.5 kB / 1.028 GB, free: 7.133 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.531/2.056, allocations: 0 / 1.028 GB, free: 7.133 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ConvectionResistance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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