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.001207/0.001207, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.009928/0.009928, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.303/1.303, allocations: 223.3 MB / 240.3 MB, free: 5.355 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.351/2.351, allocations: 437.8 MB / 0.7121 GB, free: 7.062 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003103/0.0003104, allocations: 12 kB / 0.873 GB, free: 3.234 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5355/0.5358, allocations: 153.8 MB / 1.023 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance): time 0.001103/0.537, allocations: 1.016 MB / 1.024 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.003536/0.5405, allocations: 3.725 MB / 1.028 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.626e-05/0.5405, allocations: 0 / 1.028 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.237e-05/0.5406, allocations: 7.922 kB / 1.028 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0003307/0.5409, allocations: 91.56 kB / 1.028 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002169/0.5411, allocations: 91.73 kB / 1.028 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 4.545e-05/0.5412, allocations: 23.94 kB / 1.028 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 2.647e-05/0.5412, allocations: 3.984 kB / 1.028 GB, free: 10.9 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 8.51e-05/0.5413, allocations: 27.91 kB / 1.028 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 8.207e-05/0.5414, allocations: 39.84 kB / 1.028 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 8.486e-06/0.5414, allocations: 4 kB / 1.028 GB, free: 10.83 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003954/0.5418, allocations: 295.6 kB / 1.028 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.091e-05/0.5418, allocations: 7.984 kB / 1.028 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 2.626e-05/0.5419, allocations: 33.64 kB / 1.028 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001686/0.542, allocations: 118 kB / 1.028 GB, free: 10.38 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.367e-06/0.5421, allocations: 0 / 1.028 GB, free: 10.38 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.403e-06/0.5421, allocations: 0 / 1.028 GB, free: 10.38 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.156e-06/0.5421, allocations: 4 kB / 1.028 GB, free: 10.38 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.0002909/0.5424, allocations: 351.5 kB / 1.029 GB, free: 9.988 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.312e-05/0.5424, allocations: 12.03 kB / 1.029 GB, free: 9.977 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.771e-05/0.5424, allocations: 30.75 kB / 1.029 GB, free: 9.938 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.943e-05/0.5425, allocations: 8.844 kB / 1.029 GB, free: 9.93 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.856e-05/0.5426, allocations: 164.3 kB / 1.029 GB, free: 9.73 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.995e-06/0.5426, allocations: 384 / 1.029 GB, free: 9.73 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.951e-06/0.5426, allocations: 384 / 1.029 GB, free: 9.73 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.963e-05/0.5427, allocations: 41.62 kB / 1.029 GB, free: 9.684 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.039e-06/0.5427, allocations: 0 / 1.029 GB, free: 9.684 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.011e-06/0.5427, allocations: 4 kB / 1.029 GB, free: 9.68 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.646e-06/0.5427, allocations: 0 / 1.029 GB, free: 9.68 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.118e-05/0.5427, allocations: 11.98 kB / 1.029 GB, free: 9.668 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001227/0.5429, allocations: 157.6 kB / 1.029 GB, free: 9.465 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 4.161e-05/0.5429, allocations: 22.52 kB / 1.029 GB, free: 9.434 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.8e-05/0.5429, allocations: 12.92 kB / 1.029 GB, free: 9.418 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002031/0.5431, allocations: 101 kB / 1.029 GB, free: 9.301 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.797e-05/0.5432, allocations: 34.56 kB / 1.029 GB, free: 9.258 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 9.51e-07/0.5432, allocations: 0 / 1.029 GB, free: 9.258 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.0001117/0.5433, allocations: 41.7 kB / 1.029 GB, free: 9.211 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.977e-05/0.5433, allocations: 55.34 kB / 1.029 GB, free: 9.145 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.82e-05/0.5434, allocations: 105.8 kB / 1.03 GB, free: 9.031 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.198e-05/0.5434, allocations: 29.7 kB / 1.03 GB, free: 8.996 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 2.515e-05/0.5434, allocations: 84.08 kB / 1.03 GB, free: 8.91 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.669e-05/0.5435, allocations: 8.031 kB / 1.03 GB, free: 8.902 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.676e-05/0.5435, allocations: 9.719 kB / 1.03 GB, free: 8.887 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 7.943e-05/0.5436, allocations: 322.8 kB / 1.03 GB, free: 8.562 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.094e-05/0.5436, allocations: 0 / 1.03 GB, free: 8.562 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.037e-06/0.5436, allocations: 4 kB / 1.03 GB, free: 8.559 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.615e-05/0.5436, allocations: 8.859 kB / 1.03 GB, free: 8.547 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-06/0.5436, allocations: 0 / 1.03 GB, free: 8.547 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.888e-05/0.5437, allocations: 45.64 kB / 1.03 GB, free: 8.496 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 9.187e-06/0.5437, allocations: 8.094 kB / 1.03 GB, free: 8.488 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.437e-06/0.5437, allocations: 0 / 1.03 GB, free: 8.488 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.067e-05/0.5437, allocations: 3.984 kB / 1.03 GB, free: 8.484 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.158e-05/0.5438, allocations: 7.938 kB / 1.03 GB, free: 8.477 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.797e-06/0.5438, allocations: 0 / 1.03 GB, free: 8.477 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.691e-05/0.5438, allocations: 4.156 kB / 1.03 GB, free: 8.473 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.085e-06/0.5438, allocations: 8 kB / 1.03 GB, free: 8.465 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 5.198e-05/0.5439, allocations: 105.8 kB / 1.03 GB, free: 8.352 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.025e-06/0.5439, allocations: 3.938 kB / 1.03 GB, free: 8.348 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.281e-05/0.544, allocations: 56.81 kB / 1.03 GB, free: 8.281 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.544, allocations: 0 / 1.03 GB, free: 8.281 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.544, allocations: 0 / 1.03 GB, free: 8.281 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.904e-06/0.544, allocations: 0 / 1.03 GB, free: 8.281 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.117e-05/0.5441, allocations: 149.7 kB / 1.03 GB, free: 8.086 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.5441, allocations: 3.938 kB / 1.03 GB, free: 8.082 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.179e-05/0.5441, allocations: 4 kB / 1.03 GB, free: 8.078 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.322e-06/0.5441, allocations: 3.938 kB / 1.03 GB, free: 8.074 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.382e-06/0.5442, allocations: 4 kB / 1.03 GB, free: 8.07 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.001e-06/0.5442, allocations: 4.031 kB / 1.03 GB, free: 8.066 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.5442, allocations: 0 / 1.03 GB, free: 8.066 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.87e-05/0.5442, allocations: 61.12 kB / 1.03 GB, free: 7.988 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.644e-05/0.5443, allocations: 89.05 kB / 1.031 GB, free: 7.883 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.268e-05/0.5443, allocations: 3.984 kB / 1.031 GB, free: 7.879 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.357e-05/0.5443, allocations: 3.938 kB / 1.031 GB, free: 7.875 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.017e-06/0.5443, allocations: 0 / 1.031 GB, free: 7.875 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.647e-06/0.5443, allocations: 8.031 kB / 1.031 GB, free: 7.867 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 2.808e-05/0.5444, allocations: 79.28 kB / 1.031 GB, free: 7.789 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5444, allocations: 0 / 1.031 GB, free: 7.789 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0001935/0.5446, allocations: 27.94 kB / 1.031 GB, free: 7.762 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.0003449/0.5449, allocations: 0.6473 MB / 1.031 GB, free: 7.086 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 5.673e-05/0.545, allocations: 12.03 kB / 1.031 GB, free: 7.074 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.545, allocations: 0 / 1.031 GB, free: 7.074 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 1.28e-05/0.545, allocations: 8 kB / 1.031 GB, free: 7.066 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001699/0.5452, allocations: 0 / 1.031 GB, free: 7.066 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003202/0.5455, allocations: 184 kB / 1.032 GB, free: 6.848 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001734/0.5457, allocations: 0.6809 MB / 1.032 GB, free: 6.141 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.464e-05/0.5457, allocations: 4 kB / 1.032 GB, free: 6.137 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.973e-05/0.5458, allocations: 7.438 kB / 1.032 GB, free: 6.129 MB / 0.7794 GB Notification: Performance of SimCode: time 2.41e-07/0.5458, allocations: 0 / 1.032 GB, free: 6.129 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01035/0.5561, allocations: 1.453 MB / 1.034 GB, free: 4.855 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001807/0.5563, allocations: 236.1 kB / 1.034 GB, free: 4.602 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.712/2.268, allocations: 0 / 1.034 GB, free: 4.602 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