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: 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.01039/0.01039, allocations: 101.5 kB / 15.88 MB, free: 5.867 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.002336/0.002337, allocations: 192.9 kB / 16.79 MB, free: 5.809 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.407/1.407, allocations: 222.9 MB / 240.5 MB, free: 4.539 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.668/2.668, allocations: 437 MB / 0.7106 GB, free: 5.305 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001583/0.001583, allocations: 59.91 kB / 0.8692 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7792/0.7808, allocations: 151.6 MB / 1.017 GB, free: 2.766 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance): time 0.003098/0.784, allocations: 1.362 MB / 1.019 GB, free: 1.391 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.005352/0.7894, allocations: 3.771 MB / 1.022 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.377e-05/0.7894, allocations: 0 / 1.022 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.486e-05/0.7895, allocations: 0 / 1.022 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0005691/0.7901, allocations: 87.55 kB / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003789/0.7905, allocations: 95.75 kB / 1.022 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 7.071e-05/0.7906, allocations: 27.86 kB / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 4.381e-05/0.7906, allocations: 4 kB / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001305/0.7907, allocations: 23.91 kB / 1.023 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001179/0.7909, allocations: 35.91 kB / 1.023 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.112e-05/0.7909, allocations: 0 / 1.023 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005579/0.7915, allocations: 307.6 kB / 1.023 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.358e-05/0.7915, allocations: 0 / 1.023 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 2.759e-05/0.7915, allocations: 11.94 kB / 1.023 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002002/0.7917, allocations: 81.84 kB / 1.023 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.7917, allocations: 0 / 1.023 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of FrontEnd: time 3.366e-06/0.7917, allocations: 0 / 1.023 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.559e-06/0.7918, allocations: 3.938 kB / 1.023 GB, free: 12.94 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.0004876/0.7922, allocations: 360.8 kB / 1.023 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.317e-05/0.7923, allocations: 8.031 kB / 1.023 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.111e-05/0.7923, allocations: 4.938 kB / 1.023 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001367/0.7925, allocations: 164.4 kB / 1.023 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.447e-05/0.7925, allocations: 8.312 kB / 1.023 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.236e-06/0.7925, allocations: 384 / 1.023 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001038/0.7926, allocations: 37.83 kB / 1.023 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.749e-06/0.7927, allocations: 0 / 1.023 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.349e-05/0.7927, allocations: 4 kB / 1.023 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-06/0.7927, allocations: 0 / 1.023 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.087e-05/0.7927, allocations: 7.984 kB / 1.024 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001972/0.7929, allocations: 153.7 kB / 1.024 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 5.941e-05/0.793, allocations: 30.5 kB / 1.024 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.674e-05/0.793, allocations: 12.92 kB / 1.024 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002728/0.7933, allocations: 93.09 kB / 1.024 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.206e-05/0.7934, allocations: 38.5 kB / 1.024 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 1.162e-06/0.7934, allocations: 0 / 1.024 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.0001702/0.7935, allocations: 53.53 kB / 1.024 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.43e-05/0.7936, allocations: 51.41 kB / 1.024 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.457e-05/0.7937, allocations: 101.9 kB / 1.024 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.435e-05/0.7937, allocations: 25.7 kB / 1.024 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.961e-05/0.7938, allocations: 88.11 kB / 1.024 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.556e-05/0.7938, allocations: 4 kB / 1.024 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.492e-05/0.7938, allocations: 17.62 kB / 1.024 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001288/0.794, allocations: 310.8 kB / 1.024 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.477e-05/0.794, allocations: 8.125 kB / 1.024 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.293e-05/0.794, allocations: 4.25 kB / 1.024 GB, free: 11.15 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.646e-05/0.794, allocations: 16.84 kB / 1.024 GB, free: 11.13 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/0.7941, allocations: 4 kB / 1.024 GB, free: 11.13 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.333e-05/0.7941, allocations: 45.58 kB / 1.025 GB, free: 11.08 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.751e-05/0.7942, allocations: 4 kB / 1.025 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.02e-06/0.7942, allocations: 0 / 1.025 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.323e-05/0.7942, allocations: 0 / 1.025 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.044e-05/0.7942, allocations: 4.094 kB / 1.025 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.971e-06/0.7943, allocations: 7.938 kB / 1.025 GB, free: 11.06 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.824e-05/0.7943, allocations: 0 / 1.025 GB, free: 11.06 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.159e-06/0.7943, allocations: 0 / 1.025 GB, free: 11.06 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 9.227e-05/0.7944, allocations: 118.4 kB / 1.025 GB, free: 10.94 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.158e-05/0.7944, allocations: 3.938 kB / 1.025 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001174/0.7945, allocations: 48.81 kB / 1.025 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.7945, allocations: 3.984 kB / 1.025 GB, free: 10.87 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.982e-06/0.7946, allocations: 7.969 kB / 1.025 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.876e-06/0.7946, allocations: 3.938 kB / 1.025 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00013/0.7947, allocations: 153.7 kB / 1.025 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.7947, allocations: 0 / 1.025 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.779e-05/0.7947, allocations: 7.938 kB / 1.025 GB, free: 10.65 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.7948, allocations: 0 / 1.025 GB, free: 10.65 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.193e-06/0.7948, allocations: 0 / 1.025 GB, free: 10.65 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.7948, allocations: 0 / 1.025 GB, free: 10.65 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.7948, allocations: 0 / 1.025 GB, free: 10.65 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.333e-05/0.7949, allocations: 73.03 kB / 1.025 GB, free: 10.56 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.099e-05/0.7949, allocations: 81.05 kB / 1.025 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.325e-05/0.795, allocations: 4 kB / 1.025 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.508e-05/0.795, allocations: 0 / 1.025 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.312e-05/0.795, allocations: 0 / 1.025 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.556e-06/0.795, allocations: 0 / 1.025 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.785e-05/0.7951, allocations: 87.27 kB / 1.025 GB, free: 10.38 MB / 0.7794 GB Notification: Performance of sort global known variables: time 3.2e-07/0.7951, allocations: 0 / 1.025 GB, free: 10.38 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002359/0.7953, allocations: 24 kB / 1.025 GB, free: 10.35 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.0002363/0.7956, allocations: 139.1 kB / 1.025 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 7.998e-05/0.7956, allocations: 8 kB / 1.025 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.7957, allocations: 0 / 1.025 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 1.49e-05/0.7957, allocations: 8 kB / 1.025 GB, free: 10.19 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002559/0.7959, allocations: 3.938 kB / 1.025 GB, free: 10.19 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003805/0.7963, allocations: 167.2 kB / 1.025 GB, free: 9.996 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002958/0.7966, allocations: 0.677 MB / 1.026 GB, free: 9.293 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.168e-05/0.7967, allocations: 7.438 kB / 1.026 GB, free: 9.285 MB / 0.7794 GB Notification: Performance of SimCode: time 4.01e-07/0.7967, allocations: 0 / 1.026 GB, free: 9.285 MB / 0.7794 GB Notification: Performance of Templates: time 0.002365/0.799, allocations: 0.7293 MB / 1.027 GB, free: 8.562 MB / 0.7794 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/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