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.001243/0.001242, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001275/0.001275, allocations: 194.8 kB / 16.25 MB, free: 6.621 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.242/1.242, allocations: 222.9 MB / 239.9 MB, free: 4.535 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.432/2.432, allocations: 437 MB / 0.7101 GB, free: 5.242 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001608/0.001608, allocations: 63.89 kB / 0.8689 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5583/0.56, allocations: 151.6 MB / 1.017 GB, free: 2.691 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance): time 0.002414/0.5624, allocations: 1.362 MB / 1.018 GB, free: 1.316 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.004153/0.5666, allocations: 3.721 MB / 1.022 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.889e-05/0.5666, allocations: 0 / 1.022 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.758e-05/0.5667, allocations: 7.875 kB / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0004111/0.5671, allocations: 87.61 kB / 1.022 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003396/0.5674, allocations: 131.5 kB / 1.022 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 5.574e-05/0.5675, allocations: 27.86 kB / 1.022 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 3.305e-05/0.5676, allocations: 3.984 kB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 9.721e-05/0.5677, allocations: 23.92 kB / 1.022 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 8.583e-05/0.5677, allocations: 35.91 kB / 1.022 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.078e-05/0.5678, allocations: 0 / 1.022 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004269/0.5682, allocations: 307.6 kB / 1.022 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.111e-05/0.5682, allocations: 7.984 kB / 1.022 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 2.761e-05/0.5683, allocations: 7.938 kB / 1.023 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001987/0.5685, allocations: 122 kB / 1.023 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.5685, allocations: 0 / 1.023 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.242e-06/0.5685, allocations: 0 / 1.023 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.535e-06/0.5685, allocations: 0 / 1.023 GB, free: 12.83 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.0003574/0.5689, allocations: 355.5 kB / 1.023 GB, free: 12.44 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.677e-05/0.5689, allocations: 8.031 kB / 1.023 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.084e-05/0.5689, allocations: 34.75 kB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.27e-05/0.569, allocations: 4.844 kB / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001087/0.5691, allocations: 168.3 kB / 1.023 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.005e-06/0.5691, allocations: 384 / 1.023 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.999e-06/0.5691, allocations: 4.375 kB / 1.023 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.254e-05/0.5692, allocations: 41.56 kB / 1.023 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.851e-06/0.5692, allocations: 0 / 1.023 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.286e-06/0.5692, allocations: 4 kB / 1.023 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.647e-06/0.5692, allocations: 0 / 1.023 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.401e-05/0.5693, allocations: 7.984 kB / 1.023 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001465/0.5694, allocations: 157.7 kB / 1.023 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 4.638e-05/0.5695, allocations: 18.58 kB / 1.023 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.818e-05/0.5695, allocations: 8.922 kB / 1.023 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002372/0.5697, allocations: 105 kB / 1.023 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.025e-05/0.5698, allocations: 38.5 kB / 1.024 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 1.052e-06/0.5698, allocations: 4 kB / 1.024 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.0001303/0.5699, allocations: 37.61 kB / 1.024 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.822e-05/0.57, allocations: 59.34 kB / 1.024 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.072e-05/0.57, allocations: 101.8 kB / 1.024 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.235e-05/0.5701, allocations: 25.7 kB / 1.024 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 2.874e-05/0.5701, allocations: 84.14 kB / 1.024 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.731e-05/0.5701, allocations: 4 kB / 1.024 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.845e-05/0.5701, allocations: 13.7 kB / 1.024 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001112/0.5703, allocations: 323 kB / 1.024 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.244e-05/0.5703, allocations: 0 / 1.024 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.153e-05/0.5703, allocations: 4 kB / 1.024 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.945e-05/0.5703, allocations: 12.8 kB / 1.024 GB, free: 11 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.5703, allocations: 0 / 1.024 GB, free: 11 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.784e-05/0.5704, allocations: 57.47 kB / 1.024 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.207e-05/0.5704, allocations: 4 kB / 1.024 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.787e-06/0.5704, allocations: 0 / 1.024 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.136e-05/0.5705, allocations: 4.094 kB / 1.024 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.958e-05/0.5705, allocations: 4 kB / 1.024 GB, free: 10.92 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.508e-06/0.5705, allocations: 256 / 1.024 GB, free: 10.92 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.624e-05/0.5705, allocations: 0 / 1.024 GB, free: 10.92 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.704e-06/0.5706, allocations: 8 kB / 1.024 GB, free: 10.91 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.742e-05/0.5706, allocations: 105.8 kB / 1.024 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.719e-06/0.5706, allocations: 3.938 kB / 1.024 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001048/0.5708, allocations: 60.75 kB / 1.024 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.5708, allocations: 0 / 1.024 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/0.5708, allocations: 0 / 1.024 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.5708, allocations: 0 / 1.024 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001007/0.5709, allocations: 153.7 kB / 1.025 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.786e-06/0.5709, allocations: 3.938 kB / 1.025 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.333e-05/0.5709, allocations: 4 kB / 1.025 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.5709, allocations: 3.984 kB / 1.025 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.39e-06/0.5709, allocations: 0 / 1.025 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.203e-06/0.5709, allocations: 4 kB / 1.025 GB, free: 10.51 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.5709, allocations: 0 / 1.025 GB, free: 10.51 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.682e-05/0.571, allocations: 69.11 kB / 1.025 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.223e-05/0.5711, allocations: 92.94 kB / 1.025 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.286e-05/0.5711, allocations: 0 / 1.025 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.443e-05/0.5711, allocations: 3.938 kB / 1.025 GB, free: 10.31 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.32e-05/0.5711, allocations: 0 / 1.025 GB, free: 10.31 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.399e-06/0.5712, allocations: 4 kB / 1.025 GB, free: 10.31 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.286e-05/0.5712, allocations: 79.28 kB / 1.025 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.51e-07/0.5712, allocations: 4.031 kB / 1.025 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002083/0.5714, allocations: 31.92 kB / 1.025 GB, free: 10.2 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.0003961/0.5718, allocations: 0.628 MB / 1.025 GB, free: 9.539 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 6.84e-05/0.5719, allocations: 11.94 kB / 1.025 GB, free: 9.527 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.5719, allocations: 4.094 kB / 1.025 GB, free: 9.523 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 1.446e-05/0.5719, allocations: 8 kB / 1.025 GB, free: 9.516 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001947/0.5721, allocations: 10.78 kB / 1.025 GB, free: 9.508 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003617/0.5725, allocations: 169.2 kB / 1.026 GB, free: 9.305 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002249/0.5727, allocations: 0.6768 MB / 1.026 GB, free: 8.602 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.146e-05/0.5728, allocations: 8.062 kB / 1.026 GB, free: 8.594 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.49e-05/0.5728, allocations: 7.438 kB / 1.026 GB, free: 8.586 MB / 0.7794 GB Notification: Performance of SimCode: time 4.01e-07/0.5728, allocations: 0 / 1.026 GB, free: 8.586 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.005/1.578, allocations: 1.553 MB / 1.028 GB, free: 7.203 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003276/1.578, allocations: 235.2 kB / 1.028 GB, free: 6.949 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.71/3.288, allocations: 3.719 kB / 1.028 GB, free: 6.949 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