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: translateModel(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow_nominal|m_flow|R",fileNamePrefix="Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance") translateModel(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow_nominal|m_flow|R",fileNamePrefix="Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00701/0.00701, allocations: 100.6 kB / 15.73 MB, free: 6.02 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.001489/0.001489, allocations: 187.3 kB / 16.67 MB, free: 5.941 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.359/1.359, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.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.463/2.463, allocations: 437 MB / 0.7105 GB, free: 4.414 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001166/0.001166, allocations: 60.12 kB / 1.019 GB, free: 9.383 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7263/0.7275, allocations: 151.6 MB / 1.167 GB, free: 3.852 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance): time 0.002166/0.7297, allocations: 1.295 MB / 1.168 GB, free: 2.551 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.004155/0.7338, allocations: 3.766 MB / 1.172 GB, free: 14.77 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.837e-05/0.7339, allocations: 0 / 1.172 GB, free: 14.77 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 1.327e-05/0.7339, allocations: 0 / 1.172 GB, free: 14.77 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0004136/0.7344, allocations: 99.42 kB / 1.172 GB, free: 14.67 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003157/0.7347, allocations: 144.8 kB / 1.172 GB, free: 14.53 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 6.197e-05/0.7348, allocations: 31.8 kB / 1.172 GB, free: 14.5 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 2.891e-05/0.7348, allocations: 0 / 1.172 GB, free: 14.5 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 9.527e-05/0.7349, allocations: 27.92 kB / 1.172 GB, free: 14.47 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001005/0.735, allocations: 39.91 kB / 1.172 GB, free: 14.43 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 1.179e-05/0.735, allocations: 0 / 1.172 GB, free: 14.43 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004894/0.7355, allocations: 307.5 kB / 1.172 GB, free: 14.13 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 1.348e-05/0.7355, allocations: 7.922 kB / 1.172 GB, free: 14.12 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 2.533e-05/0.7356, allocations: 11.94 kB / 1.172 GB, free: 14.11 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0002362/0.7358, allocations: 124.2 kB / 1.172 GB, free: 13.99 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.7358, allocations: 0 / 1.172 GB, free: 13.99 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.462e-06/0.7358, allocations: 0 / 1.172 GB, free: 13.99 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 6.032e-06/0.7358, allocations: 0 / 1.172 GB, free: 13.99 MB / 0.9044 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.0004196/0.7363, allocations: 355.1 kB / 1.173 GB, free: 13.6 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.757e-05/0.7363, allocations: 8.922 kB / 1.173 GB, free: 13.59 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.12e-05/0.7363, allocations: 4.891 kB / 1.173 GB, free: 13.59 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000118/0.7365, allocations: 164.4 kB / 1.173 GB, free: 13.39 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.065e-05/0.7365, allocations: 4.375 kB / 1.173 GB, free: 13.38 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.927e-06/0.7365, allocations: 4.359 kB / 1.173 GB, free: 13.38 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.508e-05/0.7366, allocations: 33.83 kB / 1.173 GB, free: 13.34 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.436e-06/0.7366, allocations: 0 / 1.173 GB, free: 13.34 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.477e-06/0.7366, allocations: 0 / 1.173 GB, free: 13.34 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.41e-06/0.7366, allocations: 0 / 1.173 GB, free: 13.34 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.409e-05/0.7367, allocations: 11.94 kB / 1.173 GB, free: 13.33 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001581/0.7368, allocations: 149.7 kB / 1.173 GB, free: 13.13 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 4.936e-05/0.7369, allocations: 30.61 kB / 1.173 GB, free: 13.09 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.694e-05/0.7369, allocations: 4.859 kB / 1.173 GB, free: 13.09 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002174/0.7371, allocations: 101.1 kB / 1.173 GB, free: 12.97 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.409e-05/0.7372, allocations: 38.5 kB / 1.173 GB, free: 12.92 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=2): time 9.32e-07/0.7372, allocations: 0 / 1.173 GB, free: 12.92 MB / 0.9044 GB Notification: Performance of matching and sorting (n=2): time 0.0001397/0.7373, allocations: 53.58 kB / 1.173 GB, free: 12.86 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.727e-05/0.7374, allocations: 51.41 kB / 1.173 GB, free: 12.8 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.883e-05/0.7375, allocations: 105.9 kB / 1.173 GB, free: 12.69 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.184e-05/0.7375, allocations: 25.7 kB / 1.173 GB, free: 12.66 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 2.851e-05/0.7375, allocations: 80.14 kB / 1.173 GB, free: 12.57 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 3.294e-05/0.7375, allocations: 15.88 kB / 1.173 GB, free: 12.56 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.642e-05/0.7376, allocations: 17.66 kB / 1.174 GB, free: 12.54 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 9.743e-05/0.7377, allocations: 310.8 kB / 1.174 GB, free: 12.22 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.605e-05/0.7377, allocations: 12.12 kB / 1.174 GB, free: 12.21 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.987e-06/0.7377, allocations: 0 / 1.174 GB, free: 12.21 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.193e-05/0.7378, allocations: 12.86 kB / 1.174 GB, free: 12.2 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.7378, allocations: 3.938 kB / 1.174 GB, free: 12.19 MB / 0.9044 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.425e-05/0.7378, allocations: 45.62 kB / 1.174 GB, free: 12.14 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.283e-05/0.7379, allocations: 8 kB / 1.174 GB, free: 12.13 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.938e-06/0.7379, allocations: 0 / 1.174 GB, free: 12.13 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.039e-05/0.7379, allocations: 0 / 1.174 GB, free: 12.13 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.828e-05/0.7379, allocations: 4.094 kB / 1.174 GB, free: 12.13 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.518e-06/0.738, allocations: 4 kB / 1.174 GB, free: 12.12 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.586e-05/0.738, allocations: 3.938 kB / 1.174 GB, free: 12.12 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.707e-06/0.738, allocations: 0 / 1.174 GB, free: 12.12 MB / 0.9044 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.841e-05/0.7381, allocations: 105.8 kB / 1.174 GB, free: 12.01 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.083e-05/0.7381, allocations: 7.938 kB / 1.174 GB, free: 12 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001024/0.7382, allocations: 48.75 kB / 1.174 GB, free: 11.95 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.482e-06/0.7382, allocations: 0 / 1.174 GB, free: 11.95 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.7382, allocations: 8.031 kB / 1.174 GB, free: 11.94 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.648e-06/0.7382, allocations: 3.984 kB / 1.174 GB, free: 11.93 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.656e-05/0.7383, allocations: 153.7 kB / 1.174 GB, free: 11.73 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.91e-07/0.7383, allocations: 0 / 1.174 GB, free: 11.73 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.725e-05/0.7384, allocations: 11.92 kB / 1.174 GB, free: 11.72 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.7384, allocations: 0 / 1.174 GB, free: 11.72 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.35e-06/0.7384, allocations: 0 / 1.174 GB, free: 11.72 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.7384, allocations: 0 / 1.174 GB, free: 11.72 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.7384, allocations: 0 / 1.174 GB, free: 11.72 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.196e-05/0.7385, allocations: 73.03 kB / 1.174 GB, free: 11.63 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.796e-05/0.7385, allocations: 85.03 kB / 1.174 GB, free: 11.53 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.2e-05/0.7385, allocations: 4 kB / 1.174 GB, free: 11.53 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.566e-05/0.7386, allocations: 4 kB / 1.174 GB, free: 11.52 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.122e-05/0.7386, allocations: 0 / 1.174 GB, free: 11.52 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.545e-06/0.7386, allocations: 0 / 1.174 GB, free: 11.52 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 3.465e-05/0.7386, allocations: 87.52 kB / 1.174 GB, free: 11.44 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1e-07/0.7386, allocations: 0 / 1.174 GB, free: 11.44 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.000207/0.7388, allocations: 27.88 kB / 1.174 GB, free: 11.41 MB / 0.9044 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.0001848/0.739, allocations: 135.1 kB / 1.175 GB, free: 11.27 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 7.171e-05/0.7391, allocations: 7.984 kB / 1.175 GB, free: 11.26 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.7391, allocations: 4 kB / 1.175 GB, free: 11.26 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 1.335e-05/0.7391, allocations: 4 kB / 1.175 GB, free: 11.25 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002019/0.7393, allocations: 3.938 kB / 1.175 GB, free: 11.25 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002525/0.7396, allocations: 135.8 kB / 1.175 GB, free: 11.09 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000227/0.7398, allocations: 0.6768 MB / 1.175 GB, free: 10.39 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 2.429e-05/0.7399, allocations: 3.938 kB / 1.175 GB, free: 10.39 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.604e-05/0.7399, allocations: 11.44 kB / 1.175 GB, free: 10.38 MB / 0.9044 GB Notification: Performance of SimCode: time 2.6e-07/0.7399, allocations: 0 / 1.175 GB, free: 10.38 MB / 0.9044 GB Notification: Performance of Templates: time 0.002907/0.7428, allocations: 0.7473 MB / 1.176 GB, free: 9.637 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.makefile (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 & ./Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/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