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.007316/0.007316, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.001689/0.001689, allocations: 195.6 kB / 16.67 MB, free: 5.52 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.396/1.396, allocations: 222.9 MB / 240.4 MB, free: 15.19 MB / 206.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.256/2.256, allocations: 390.2 MB / 0.6648 GB, free: 0.6875 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001284/0.001284, allocations: 63.89 kB / 0.9509 GB, free: 7.68 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8057/0.807, allocations: 140.4 MB / 1.088 GB, free: 5.535 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance): time 0.002238/0.8093, allocations: 1.288 MB / 1.089 GB, free: 4.633 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.003852/0.8131, allocations: 3.759 MB / 1.093 GB, free: 1.918 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.021e-05/0.8132, allocations: 3.938 kB / 1.093 GB, free: 1.914 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.143e-05/0.8132, allocations: 1.516 kB / 1.093 GB, free: 1.914 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0004368/0.8137, allocations: 95.73 kB / 1.093 GB, free: 1.863 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003318/0.814, allocations: 140.8 kB / 1.093 GB, free: 1.809 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 6.568e-05/0.8141, allocations: 24.28 kB / 1.093 GB, free: 1.801 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 3.439e-05/0.8141, allocations: 2.5 kB / 1.093 GB, free: 1.801 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000106/0.8142, allocations: 34.36 kB / 1.093 GB, free: 1.781 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001048/0.8144, allocations: 34.11 kB / 1.093 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.04e-05/0.8144, allocations: 0.8125 kB / 1.093 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005253/0.8149, allocations: 310.6 kB / 1.093 GB, free: 1.691 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.336e-05/0.8149, allocations: 5.562 kB / 1.093 GB, free: 1.688 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.442e-05/0.815, allocations: 7.812 kB / 1.093 GB, free: 1.684 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002611/0.8152, allocations: 125.3 kB / 1.094 GB, free: 1.645 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.561e-06/0.8152, allocations: 0.6562 kB / 1.094 GB, free: 1.645 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.943e-06/0.8152, allocations: 0 / 1.094 GB, free: 1.645 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.46e-06/0.8153, allocations: 0.875 kB / 1.094 GB, free: 1.645 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.0003285/0.8156, allocations: 353.2 kB / 1.094 GB, free: 1.273 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/0.8156, allocations: 10.56 kB / 1.094 GB, free: 1.273 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.168e-05/0.8157, allocations: 2.156 kB / 1.094 GB, free: 1.273 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.614e-05/0.8158, allocations: 167.3 kB / 1.094 GB, free: 1.074 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.022e-05/0.8158, allocations: 4.312 kB / 1.094 GB, free: 1.07 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.048e-05/0.8158, allocations: 6.938 kB / 1.094 GB, free: 1.066 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.029e-05/0.8159, allocations: 38.2 kB / 1.094 GB, free: 1.027 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.574e-06/0.8159, allocations: 1.031 kB / 1.094 GB, free: 1.027 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.975e-06/0.8159, allocations: 0 / 1.094 GB, free: 1.027 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.478e-06/0.8159, allocations: 0.875 kB / 1.094 GB, free: 1.027 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.488e-05/0.816, allocations: 8.594 kB / 1.094 GB, free: 1.023 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000114/0.8161, allocations: 152.7 kB / 1.094 GB, free: 0.832 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 5.01e-05/0.8161, allocations: 26.27 kB / 1.094 GB, free: 0.8047 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.806e-05/0.8162, allocations: 11.64 kB / 1.094 GB, free: 0.793 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002102/0.8164, allocations: 96.92 kB / 1.094 GB, free: 0.6992 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.812e-05/0.8164, allocations: 36.12 kB / 1.094 GB, free: 0.6562 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 1.072e-06/0.8164, allocations: 0 / 1.094 GB, free: 0.6562 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0001376/0.8166, allocations: 50.23 kB / 1.095 GB, free: 0.6133 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.92e-05/0.8166, allocations: 56.47 kB / 1.095 GB, free: 0.5469 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.494e-05/0.8166, allocations: 102.4 kB / 1.095 GB, free: 456 kB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 5.43e-06/0.8167, allocations: 26.92 kB / 1.095 GB, free: 424 kB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 1.492e-05/0.8167, allocations: 80.84 kB / 1.095 GB, free: 340 kB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.807e-05/0.8167, allocations: 5.531 kB / 1.095 GB, free: 336 kB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.437e-05/0.8167, allocations: 13.5 kB / 1.095 GB, free: 320 kB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.713e-05/0.8168, allocations: 317 kB / 1.095 GB, free: 16 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.503e-05/0.8168, allocations: 6.234 kB / 1.095 GB, free: 15.99 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.075e-05/0.8168, allocations: 6.875 kB / 1.095 GB, free: 15.99 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.146e-05/0.8169, allocations: 14.84 kB / 1.095 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.8169, allocations: 0.5938 kB / 1.095 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.812e-05/0.817, allocations: 45.47 kB / 1.095 GB, free: 15.94 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.495e-05/0.817, allocations: 5.594 kB / 1.095 GB, free: 15.94 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/0.817, allocations: 0 / 1.095 GB, free: 15.94 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.462e-05/0.817, allocations: 5.328 kB / 1.095 GB, free: 15.93 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.811e-05/0.8171, allocations: 3.719 kB / 1.095 GB, free: 15.93 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/0.8171, allocations: 5.344 kB / 1.095 GB, free: 15.93 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.677e-05/0.8171, allocations: 0 / 1.095 GB, free: 15.93 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.671e-06/0.8171, allocations: 1.391 kB / 1.095 GB, free: 15.93 MB / 0.8731 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 7.576e-05/0.8172, allocations: 111.9 kB / 1.095 GB, free: 15.81 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.215e-05/0.8172, allocations: 5.562 kB / 1.095 GB, free: 15.81 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001244/0.8173, allocations: 54.73 kB / 1.095 GB, free: 15.76 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/0.8173, allocations: 0.6875 kB / 1.095 GB, free: 15.76 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.8174, allocations: 0 / 1.095 GB, free: 15.76 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.294e-06/0.8174, allocations: 4.625 kB / 1.095 GB, free: 15.75 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001113/0.8175, allocations: 153.9 kB / 1.096 GB, free: 15.56 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.8175, allocations: 0 / 1.096 GB, free: 15.56 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.644e-05/0.8175, allocations: 8.016 kB / 1.096 GB, free: 15.56 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.383e-06/0.8175, allocations: 1.188 kB / 1.096 GB, free: 15.56 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.603e-06/0.8175, allocations: 0 / 1.096 GB, free: 15.56 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.8175, allocations: 1.734 kB / 1.096 GB, free: 15.56 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.8175, allocations: 0 / 1.096 GB, free: 15.56 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.007e-05/0.8176, allocations: 70.34 kB / 1.096 GB, free: 15.48 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 4.523e-05/0.8177, allocations: 83.89 kB / 1.096 GB, free: 15.39 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.235e-05/0.8177, allocations: 1.391 kB / 1.096 GB, free: 15.39 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.534e-05/0.8177, allocations: 0.75 kB / 1.096 GB, free: 15.39 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.964e-05/0.8178, allocations: 9.469 kB / 1.096 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.056e-06/0.8178, allocations: 1.781 kB / 1.096 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 5.028e-05/0.8178, allocations: 84.45 kB / 1.096 GB, free: 15.3 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8178, allocations: 0 / 1.096 GB, free: 15.3 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0002142/0.818, allocations: 22.92 kB / 1.096 GB, free: 15.3 MB / 0.8731 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.0002003/0.8182, allocations: 137.2 kB / 1.096 GB, free: 15.2 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 7.669e-05/0.8183, allocations: 8.422 kB / 1.096 GB, free: 15.2 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.8183, allocations: 0 / 1.096 GB, free: 15.2 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 1.799e-05/0.8184, allocations: 13.28 kB / 1.096 GB, free: 15.19 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001884/0.8186, allocations: 4.812 kB / 1.096 GB, free: 15.19 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002915/0.8189, allocations: 132.5 kB / 1.096 GB, free: 15.07 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000242/0.8191, allocations: 0.6749 MB / 1.097 GB, free: 14.38 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 2.487e-05/0.8191, allocations: 2.344 kB / 1.097 GB, free: 14.38 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.906e-05/0.8192, allocations: 10.06 kB / 1.097 GB, free: 14.37 MB / 0.8731 GB Notification: Performance of SimCode: time 2.5e-07/0.8192, allocations: 0 / 1.097 GB, free: 14.37 MB / 0.8731 GB Notification: Performance of Templates: time 0.003171/0.8224, allocations: 0.7476 MB / 1.097 GB, free: 14.29 MB / 0.8731 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