Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.006667/0.006667, allocations: 99.89 kB / 15.73 MB, free: 6.027 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.001324/0.001324, allocations: 187 kB / 16.67 MB, free: 5.969 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.413/1.413, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.419/2.419, allocations: 390.2 MB / 0.6648 GB, free: 240 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001384/0.001384, allocations: 71.36 kB / 0.9509 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3007/0.3021, allocations: 140.4 MB / 1.088 GB, free: 1.535 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance): time 0.002449/0.3046, allocations: 1.283 MB / 1.089 GB, free: 248 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.004219/0.3088, allocations: 3.757 MB / 1.093 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.868e-05/0.3089, allocations: 8 kB / 1.093 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 1.532e-05/0.3089, allocations: 3.938 kB / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0004107/0.3094, allocations: 103.5 kB / 1.093 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003171/0.3097, allocations: 134.2 kB / 1.093 GB, free: 12.22 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 5.941e-05/0.3098, allocations: 27.86 kB / 1.093 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 3.165e-05/0.3098, allocations: 8 kB / 1.093 GB, free: 12.19 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 9.507e-05/0.3099, allocations: 31.84 kB / 1.093 GB, free: 12.16 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.873e-05/0.31, allocations: 31.97 kB / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.015e-05/0.31, allocations: 0 / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004509/0.3105, allocations: 307.5 kB / 1.093 GB, free: 11.82 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.189e-05/0.3105, allocations: 3.938 kB / 1.093 GB, free: 11.82 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.121e-05/0.3105, allocations: 4 kB / 1.093 GB, free: 11.82 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002039/0.3107, allocations: 123.7 kB / 1.094 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.3108, allocations: 0 / 1.094 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.452e-06/0.3108, allocations: 4 kB / 1.094 GB, free: 11.69 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.52e-06/0.3108, allocations: 0 / 1.094 GB, free: 11.69 MB / 0.8575 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.0003898/0.3112, allocations: 359.4 kB / 1.094 GB, free: 11.29 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.752e-05/0.3112, allocations: 12.03 kB / 1.094 GB, free: 11.28 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.921e-05/0.3113, allocations: 4.922 kB / 1.094 GB, free: 11.28 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001243/0.3114, allocations: 160.4 kB / 1.094 GB, free: 11.08 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.215e-06/0.3114, allocations: 384 / 1.094 GB, free: 11.08 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.353e-05/0.3114, allocations: 4.375 kB / 1.094 GB, free: 11.08 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.875e-05/0.3115, allocations: 37.77 kB / 1.094 GB, free: 11.04 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.825e-06/0.3115, allocations: 4 kB / 1.094 GB, free: 11.03 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.788e-06/0.3115, allocations: 7.938 kB / 1.094 GB, free: 11.02 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.638e-06/0.3116, allocations: 3.938 kB / 1.094 GB, free: 11.02 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.483e-05/0.3116, allocations: 7.984 kB / 1.094 GB, free: 11.01 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001528/0.3117, allocations: 149.7 kB / 1.094 GB, free: 10.82 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 4.703e-05/0.3118, allocations: 22.56 kB / 1.094 GB, free: 10.79 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.996e-05/0.3118, allocations: 8.922 kB / 1.094 GB, free: 10.77 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002397/0.3121, allocations: 105.1 kB / 1.094 GB, free: 10.65 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.318e-05/0.3121, allocations: 38.44 kB / 1.094 GB, free: 10.61 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 1.393e-06/0.3121, allocations: 0 / 1.094 GB, free: 10.61 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0001429/0.3123, allocations: 45.59 kB / 1.095 GB, free: 10.55 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.519e-05/0.3123, allocations: 55.41 kB / 1.095 GB, free: 10.49 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.796e-05/0.3124, allocations: 97.97 kB / 1.095 GB, free: 10.38 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.225e-05/0.3124, allocations: 29.7 kB / 1.095 GB, free: 10.35 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.007e-05/0.3124, allocations: 84.14 kB / 1.095 GB, free: 10.26 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.096e-05/0.3125, allocations: 7.906 kB / 1.095 GB, free: 10.25 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.741e-05/0.3125, allocations: 9.719 kB / 1.095 GB, free: 10.24 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.000118/0.3126, allocations: 318.8 kB / 1.095 GB, free: 9.918 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.367e-05/0.3127, allocations: 0 / 1.095 GB, free: 9.918 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.366e-05/0.3127, allocations: 7.984 kB / 1.095 GB, free: 9.91 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.502e-05/0.3127, allocations: 17.11 kB / 1.095 GB, free: 9.891 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.3127, allocations: 0 / 1.095 GB, free: 9.891 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.027e-05/0.3128, allocations: 49.64 kB / 1.095 GB, free: 9.836 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.329e-05/0.3128, allocations: 5.562 kB / 1.095 GB, free: 9.832 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.3128, allocations: 0 / 1.095 GB, free: 9.832 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.04e-05/0.3128, allocations: 0 / 1.095 GB, free: 9.832 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.12e-05/0.3129, allocations: 4 kB / 1.095 GB, free: 9.828 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.362e-06/0.3129, allocations: 3.984 kB / 1.095 GB, free: 9.824 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.079e-05/0.3129, allocations: 0 / 1.095 GB, free: 9.824 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.093e-06/0.313, allocations: 4 kB / 1.095 GB, free: 9.82 MB / 0.8575 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 0.0001216/0.3131, allocations: 111.8 kB / 1.095 GB, free: 9.703 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.057e-05/0.3131, allocations: 3.938 kB / 1.095 GB, free: 9.699 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001147/0.3132, allocations: 60.69 kB / 1.095 GB, free: 9.629 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.422e-06/0.3132, allocations: 0 / 1.095 GB, free: 9.629 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.3132, allocations: 3.984 kB / 1.095 GB, free: 9.625 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.017e-06/0.3133, allocations: 0 / 1.095 GB, free: 9.625 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001029/0.3134, allocations: 153.6 kB / 1.096 GB, free: 9.426 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.3134, allocations: 32 / 1.096 GB, free: 9.426 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.388e-05/0.3134, allocations: 11.94 kB / 1.096 GB, free: 9.414 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.502e-06/0.3134, allocations: 3.938 kB / 1.096 GB, free: 9.41 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.365e-06/0.3134, allocations: 4 kB / 1.096 GB, free: 9.406 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.3134, allocations: 0 / 1.096 GB, free: 9.406 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.3134, allocations: 0 / 1.096 GB, free: 9.406 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.224e-05/0.3135, allocations: 72.97 kB / 1.096 GB, free: 9.316 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.297e-05/0.3136, allocations: 85.05 kB / 1.096 GB, free: 9.215 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.116e-05/0.3136, allocations: 4.031 kB / 1.096 GB, free: 9.211 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.414e-05/0.3136, allocations: 0 / 1.096 GB, free: 9.211 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.659e-05/0.3136, allocations: 3.984 kB / 1.096 GB, free: 9.207 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.077e-06/0.3136, allocations: 4 kB / 1.096 GB, free: 9.203 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.426e-05/0.3137, allocations: 79.28 kB / 1.096 GB, free: 9.125 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3137, allocations: 0 / 1.096 GB, free: 9.125 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002099/0.3139, allocations: 24 kB / 1.096 GB, free: 9.102 MB / 0.8575 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.0001913/0.3141, allocations: 131.2 kB / 1.096 GB, free: 8.965 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 7.787e-05/0.3142, allocations: 12 kB / 1.096 GB, free: 8.953 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.3142, allocations: 0 / 1.096 GB, free: 8.953 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 1.419e-05/0.3142, allocations: 7.938 kB / 1.096 GB, free: 8.945 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002114/0.3144, allocations: 8 kB / 1.096 GB, free: 8.938 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002701/0.3147, allocations: 127.6 kB / 1.096 GB, free: 8.789 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002418/0.315, allocations: 0.6729 MB / 1.097 GB, free: 8.09 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 2.471e-05/0.315, allocations: 8.125 kB / 1.097 GB, free: 8.082 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.585e-05/0.315, allocations: 7.438 kB / 1.097 GB, free: 8.074 MB / 0.8575 GB Notification: Performance of SimCode: time 2.51e-07/0.315, allocations: 4 kB / 1.097 GB, free: 8.07 MB / 0.8575 GB Notification: Performance of Templates: time 0.002796/0.3178, allocations: 0.7656 MB / 1.097 GB, free: 7.316 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.makefile (rm -f Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.pipe ; mkfifo Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.pipe >> ../files/Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.sim & ./Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ConvectionResistance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches