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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001009/0.001009, allocations: 90.44 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001288/0.001288, allocations: 178.8 kB / 16.92 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.458/1.458, allocations: 223.3 MB / 241 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.471/2.471, allocations: 390.9 MB / 0.667 GB, free: 2.379 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003706/0.0003708, allocations: 11.98 kB / 0.8166 GB, free: 13.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7602/0.7606, allocations: 142.4 MB / 0.9557 GB, free: 8.039 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance): time 0.00137/0.762, allocations: 1.013 MB / 0.9567 GB, free: 7.227 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.003973/0.766, allocations: 3.72 MB / 0.9603 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.064e-05/0.7661, allocations: 0 / 0.9603 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.655e-05/0.7661, allocations: 1.375 kB / 0.9603 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0004301/0.7665, allocations: 88.17 kB / 0.9604 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002467/0.7668, allocations: 98 kB / 0.9605 GB, free: 4.078 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.357e-05/0.7668, allocations: 24.3 kB / 0.9605 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.19e-05/0.7669, allocations: 1.375 kB / 0.9605 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001188/0.767, allocations: 34.78 kB / 0.9606 GB, free: 4.043 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001351/0.7672, allocations: 39.09 kB / 0.9606 GB, free: 4.023 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.02e-05/0.7672, allocations: 1.375 kB / 0.9606 GB, free: 4.023 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004674/0.7677, allocations: 305 kB / 0.9609 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.023e-05/0.7677, allocations: 0 / 0.9609 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.927e-05/0.7677, allocations: 33.77 kB / 0.9609 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001474/0.7679, allocations: 77.61 kB / 0.961 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.7679, allocations: 4 kB / 0.961 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.693e-06/0.7679, allocations: 0 / 0.961 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.108e-06/0.7679, allocations: 0 / 0.961 GB, free: 3.773 MB / 0.7169 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.0003206/0.7682, allocations: 353.1 kB / 0.9614 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.512e-05/0.7683, allocations: 9.625 kB / 0.9614 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.172e-05/0.7683, allocations: 2.312 kB / 0.9614 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.346e-05/0.7684, allocations: 165.7 kB / 0.9615 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.168e-05/0.7684, allocations: 384 / 0.9615 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.06e-05/0.7684, allocations: 9.672 kB / 0.9615 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.44e-05/0.7685, allocations: 37.95 kB / 0.9616 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.833e-06/0.7686, allocations: 0 / 0.9616 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.388e-06/0.7686, allocations: 0 / 0.9616 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.24e-06/0.7686, allocations: 1.375 kB / 0.9616 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.374e-05/0.7686, allocations: 6.75 kB / 0.9616 GB, free: 3.145 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001398/0.7688, allocations: 149.8 kB / 0.9617 GB, free: 2.953 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 5.036e-05/0.7688, allocations: 25.45 kB / 0.9617 GB, free: 2.926 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.866e-05/0.7688, allocations: 15.55 kB / 0.9618 GB, free: 2.91 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002127/0.7691, allocations: 97.45 kB / 0.9619 GB, free: 2.809 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.745e-05/0.7691, allocations: 39.88 kB / 0.9619 GB, free: 2.762 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.072e-06/0.7691, allocations: 0 / 0.9619 GB, free: 2.762 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0001477/0.7692, allocations: 36.7 kB / 0.9619 GB, free: 2.73 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.438e-05/0.7693, allocations: 55.39 kB / 0.962 GB, free: 2.664 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.255e-05/0.7693, allocations: 108.8 kB / 0.9621 GB, free: 2.555 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.907e-06/0.7694, allocations: 25.7 kB / 0.9621 GB, free: 2.523 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.93e-05/0.7694, allocations: 81.52 kB / 0.9622 GB, free: 2.441 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.472e-05/0.7694, allocations: 15.83 kB / 0.9622 GB, free: 2.426 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.923e-05/0.7694, allocations: 15.08 kB / 0.9622 GB, free: 2.406 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.703e-05/0.7695, allocations: 312.2 kB / 0.9625 GB, free: 2.094 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.411e-05/0.7695, allocations: 5.312 kB / 0.9625 GB, free: 2.09 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.668e-06/0.7695, allocations: 2.75 kB / 0.9625 GB, free: 2.09 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.051e-05/0.7696, allocations: 18.23 kB / 0.9625 GB, free: 2.074 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.7696, allocations: 1.312 kB / 0.9625 GB, free: 2.074 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.749e-05/0.7697, allocations: 46.66 kB / 0.9626 GB, free: 2.031 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.528e-05/0.7697, allocations: 5.219 kB / 0.9626 GB, free: 2.031 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.7697, allocations: 256 / 0.9626 GB, free: 2.031 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.543e-05/0.7697, allocations: 5.531 kB / 0.9626 GB, free: 2.027 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.399e-05/0.7698, allocations: 7.031 kB / 0.9626 GB, free: 2.023 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.1e-06/0.7698, allocations: 0 / 0.9626 GB, free: 2.023 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.739e-05/0.7698, allocations: 0 / 0.9626 GB, free: 2.023 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.57e-06/0.7698, allocations: 9.312 kB / 0.9626 GB, free: 2.016 MB / 0.7169 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.496e-05/0.7699, allocations: 107.2 kB / 0.9627 GB, free: 1.902 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.005e-05/0.7699, allocations: 9.531 kB / 0.9627 GB, free: 1.895 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001071/0.77, allocations: 47.22 kB / 0.9628 GB, free: 1.848 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-06/0.77, allocations: 0 / 0.9628 GB, free: 1.848 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.77, allocations: 0.9375 kB / 0.9628 GB, free: 1.848 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.554e-06/0.77, allocations: 0 / 0.9628 GB, free: 1.848 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.155e-05/0.7701, allocations: 154 kB / 0.9629 GB, free: 1.652 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.7701, allocations: 8.016 kB / 0.9629 GB, free: 1.645 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.31e-05/0.7701, allocations: 8.469 kB / 0.9629 GB, free: 1.641 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.7701, allocations: 0 / 0.9629 GB, free: 1.641 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.145e-06/0.7702, allocations: 3.984 kB / 0.9629 GB, free: 1.637 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.7702, allocations: 1.219 kB / 0.9629 GB, free: 1.637 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.7702, allocations: 0 / 0.9629 GB, free: 1.637 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.906e-05/0.7702, allocations: 63.17 kB / 0.963 GB, free: 1.566 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.17e-05/0.7703, allocations: 91.22 kB / 0.9631 GB, free: 1.461 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.243e-05/0.7703, allocations: 0.9688 kB / 0.9631 GB, free: 1.461 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.484e-05/0.7703, allocations: 0 / 0.9631 GB, free: 1.461 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.62e-05/0.7703, allocations: 4.844 kB / 0.9631 GB, free: 1.457 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.788e-06/0.7704, allocations: 0.8438 kB / 0.9631 GB, free: 1.457 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.567e-05/0.7704, allocations: 83.94 kB / 0.9632 GB, free: 1.379 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7704, allocations: 0 / 0.9632 GB, free: 1.379 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002348/0.7706, allocations: 29.61 kB / 0.9632 GB, free: 1.367 MB / 0.7169 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.0002042/0.7708, allocations: 130.9 kB / 0.9633 GB, free: 1.262 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 7.416e-05/0.7709, allocations: 18.92 kB / 0.9633 GB, free: 1.25 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.7709, allocations: 0 / 0.9633 GB, free: 1.25 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 1.328e-05/0.7709, allocations: 4.906 kB / 0.9633 GB, free: 1.25 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002118/0.7712, allocations: 9.188 kB / 0.9634 GB, free: 1.242 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002794/0.7715, allocations: 171.7 kB / 0.9635 GB, free: 1.074 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001443/0.7716, allocations: 0.677 MB / 0.9642 GB, free: 384 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.741e-05/0.7716, allocations: 10.44 kB / 0.9642 GB, free: 376 kB / 0.7169 GB Notification: Performance of SimCode: time 2.5e-07/0.7716, allocations: 3.938 kB / 0.9642 GB, free: 372 kB / 0.7169 GB Notification: Performance of Templates: time 0.002225/0.7739, allocations: 0.7162 MB / 0.9649 GB, free: 8 kB / 0.7169 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/jenkins1/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