Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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.SingleUTubeBoundaryCondition,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TBouSte.port.T|TBouCon.port.T|TBouPul.port.T",fileNamePrefix="Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition") translateModel(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TBouSte.port.T|TBouCon.port.T|TBouPul.port.T",fileNamePrefix="Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001102/0.001102, allocations: 117.5 kB / 16.37 MB, free: 6.004 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.001139/0.001139, allocations: 193.3 kB / 17.31 MB, free: 5.613 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.317/1.317, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.51/2.51, allocations: 442.5 MB / 0.7165 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00141/0.001411, allocations: 60.19 kB / 0.8774 GB, free: 10.97 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2604/0.2619, allocations: 153 MB / 1.027 GB, free: 2.055 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition): time 0.003514/0.2654, allocations: 2.358 MB / 1.029 GB, free: 15.68 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001461/0.2669, allocations: 1.002 MB / 1.03 GB, free: 14.67 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001071/0.267, allocations: 7.938 kB / 1.03 GB, free: 14.66 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0002047/0.2672, allocations: 55.62 kB / 1.03 GB, free: 14.61 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001646/0.2674, allocations: 75.28 kB / 1.03 GB, free: 14.54 MB / 0.8106 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/Fluid/Geothermal/Boreholes/BaseClasses/temperatureDrop.mo:2:1-109:20:writable] Warning: Pure function 'Buildings.Fluid.Geothermal.Boreholes.BaseClasses.temperatureDrop' contains a call to impure function 'Buildings.Fluid.Geothermal.Boreholes.BaseClasses.exchangeValues'. Notification: Performance of NFTyping.typeClassSections: time 0.0004512/0.2679, allocations: 163.5 kB / 1.03 GB, free: 14.38 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002776/0.2682, allocations: 298.8 kB / 1.031 GB, free: 14.08 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001044/0.2683, allocations: 32.33 kB / 1.031 GB, free: 14.05 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001361/0.2684, allocations: 103.6 kB / 1.031 GB, free: 13.95 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001306/0.2686, allocations: 123.4 kB / 1.031 GB, free: 13.82 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.124e-05/0.2686, allocations: 16 kB / 1.031 GB, free: 13.81 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002659/0.2689, allocations: 119.9 kB / 1.031 GB, free: 13.69 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 5.232e-05/0.269, allocations: 47.77 kB / 1.031 GB, free: 13.64 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001091/0.2691, allocations: 115.4 kB / 1.031 GB, free: 13.53 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003584/0.2694, allocations: 319 kB / 1.031 GB, free: 13.22 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.399e-06/0.2694, allocations: 0 / 1.031 GB, free: 13.22 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.794e-06/0.2695, allocations: 0 / 1.031 GB, free: 13.22 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.219e-06/0.2695, allocations: 0 / 1.031 GB, free: 13.22 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 27 * Number of variables: 27 Notification: Performance of Generate backend data structure: time 0.0009116/0.2704, allocations: 0.5865 MB / 1.032 GB, free: 12.58 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.325e-05/0.2704, allocations: 12.03 kB / 1.032 GB, free: 12.57 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.518e-05/0.2705, allocations: 24.66 kB / 1.032 GB, free: 12.54 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004559/0.271, allocations: 295 kB / 1.032 GB, free: 12.21 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.055e-05/0.271, allocations: 20.55 kB / 1.032 GB, free: 12.2 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.768e-05/0.271, allocations: 20.36 kB / 1.032 GB, free: 12.18 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003833/0.2714, allocations: 210 kB / 1.033 GB, free: 11.95 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.257e-05/0.2715, allocations: 0 / 1.033 GB, free: 11.95 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.116e-05/0.2715, allocations: 8 kB / 1.033 GB, free: 11.94 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.905e-06/0.2715, allocations: 0 / 1.033 GB, free: 11.94 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003598/0.2719, allocations: 111.8 kB / 1.033 GB, free: 11.83 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009375/0.2728, allocations: 0.8683 MB / 1.034 GB, free: 10.89 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004656/0.2733, allocations: 211.8 kB / 1.034 GB, free: 10.66 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001922/0.2735, allocations: 82.61 kB / 1.034 GB, free: 10.57 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.172e-05/0.2735, allocations: 0 / 1.034 GB, free: 10.57 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003735/0.2739, allocations: 210.8 kB / 1.034 GB, free: 10.34 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=23): time 1.653e-06/0.2739, allocations: 0 / 1.034 GB, free: 10.34 MB / 0.8106 GB Notification: Performance of matching and sorting (n=23): time 0.0008158/0.2747, allocations: 349.1 kB / 1.034 GB, free: 9.996 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.233e-05/0.2748, allocations: 118.8 kB / 1.034 GB, free: 9.855 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002139/0.275, allocations: 250.4 kB / 1.035 GB, free: 9.605 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.905e-05/0.2751, allocations: 37.7 kB / 1.035 GB, free: 9.562 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 8.786e-05/0.2752, allocations: 140.6 kB / 1.035 GB, free: 9.422 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.664e-05/0.2752, allocations: 55.27 kB / 1.035 GB, free: 9.367 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.513e-05/0.2753, allocations: 78.06 kB / 1.035 GB, free: 9.281 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001055/0.2754, allocations: 334.8 kB / 1.035 GB, free: 8.945 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002121/0.2756, allocations: 84.75 kB / 1.035 GB, free: 8.863 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002972/0.2759, allocations: 255.1 kB / 1.036 GB, free: 8.531 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005165/0.2765, allocations: 384.5 kB / 1.036 GB, free: 8.066 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.2765, allocations: 256 / 1.036 GB, free: 8.066 MB / 0.8106 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0006981/0.2772, allocations: 406.5 kB / 1.036 GB, free: 7.656 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.399e-05/0.2772, allocations: 33.7 kB / 1.036 GB, free: 7.617 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.106e-05/0.2772, allocations: 12 kB / 1.036 GB, free: 7.605 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.714e-05/0.2773, allocations: 8.656 kB / 1.036 GB, free: 7.598 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002095/0.2775, allocations: 71.83 kB / 1.037 GB, free: 7.527 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.449e-05/0.2775, allocations: 11.94 kB / 1.037 GB, free: 7.516 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002324/0.2777, allocations: 47.98 kB / 1.037 GB, free: 7.469 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.872e-05/0.2778, allocations: 20 kB / 1.037 GB, free: 7.449 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 32 (TBouSte.QAve_flow,$PRE.TBouSte.QAve_flow,TBouSte.UOld,$PRE.TBouSte.UOld,TBouSte.port.T,$PRE.TBouSte.port.T,TBouSte.iSam,$PRE.TBouSte.iSam,$whenCondition4,TBouCon.QAve_flow,$PRE.TBouCon.QAve_flow,TBouCon.UOld,$PRE.TBouCon.UOld,TBouCon.port.T,$PRE.TBouCon.port.T,TBouCon.iSam,$PRE.TBouCon.iSam,$whenCondition3,TBouPul.QAve_flow,$PRE.TBouPul.QAve_flow,TBouPul.UOld,$PRE.TBouPul.UOld,TBouPul.port.T,$PRE.TBouPul.port.T,TBouPul.iSam,$PRE.TBouPul.iSam,$whenCondition1,pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 1 * 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.0001417/0.2779, allocations: 167.8 kB / 1.037 GB, free: 7.277 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.297e-05/0.278, allocations: 23.72 kB / 1.037 GB, free: 7.254 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.976e-05/0.278, allocations: 33.64 kB / 1.037 GB, free: 7.227 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.065e-06/0.278, allocations: 0 / 1.037 GB, free: 7.227 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.795e-06/0.2781, allocations: 7.938 kB / 1.037 GB, free: 7.219 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.077e-06/0.2781, allocations: 0 / 1.037 GB, free: 7.219 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002567/0.2783, allocations: 265.4 kB / 1.037 GB, free: 6.91 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.2783, allocations: 0 / 1.037 GB, free: 6.91 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001211/0.2785, allocations: 23.92 kB / 1.037 GB, free: 6.887 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.2785, allocations: 0 / 1.037 GB, free: 6.887 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.582e-05/0.2785, allocations: 11.98 kB / 1.037 GB, free: 6.875 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.456e-06/0.2785, allocations: 4 kB / 1.037 GB, free: 6.871 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.2785, allocations: 7.938 kB / 1.037 GB, free: 6.863 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008012/0.2793, allocations: 413.2 kB / 1.037 GB, free: 6.438 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.834e-05/0.2794, allocations: 92.83 kB / 1.038 GB, free: 6.328 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.803e-05/0.2794, allocations: 16.03 kB / 1.038 GB, free: 6.312 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001545/0.2796, allocations: 11.98 kB / 1.038 GB, free: 6.301 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.43e-05/0.2797, allocations: 31.84 kB / 1.038 GB, free: 6.27 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.248e-05/0.2797, allocations: 15.98 kB / 1.038 GB, free: 6.254 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001312/0.2799, allocations: 166 kB / 1.038 GB, free: 6.09 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2799, allocations: 0 / 1.038 GB, free: 6.09 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000393/0.2803, allocations: 83.92 kB / 1.038 GB, free: 6.008 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (TBouSte.U,TBouCon.U,TBouPul.U) * Number of discrete variables: 18 ($whenCondition4,TBouSte.QAve_flow,TBouSte.port.T,TBouSte.UOld,TBouSte.iSam,$whenCondition3,TBouCon.QAve_flow,TBouCon.port.T,TBouCon.UOld,TBouCon.iSam,$whenCondition2,$whenCondition1,TBouPul.QAve_flow,TBouPul.port.T,TBouPul.UOld,TBouPul.iSam,pulse.T_start,pulse.count) * Number of discrete states: 7 (TBouPul.iSam,TBouPul.UOld,pulse.count,TBouCon.iSam,TBouCon.UOld,TBouSte.iSam,TBouSte.UOld) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 14 * 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.0003157/0.2806, allocations: 172.3 kB / 1.038 GB, free: 5.832 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.000579/0.2812, allocations: 291.8 kB / 1.038 GB, free: 5.535 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.2812, allocations: 0 / 1.038 GB, free: 5.535 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0002521/0.2814, allocations: 112 kB / 1.038 GB, free: 5.426 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003539/0.2818, allocations: 70.09 kB / 1.039 GB, free: 5.359 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001078/0.2829, allocations: 0.6013 MB / 1.039 GB, free: 4.727 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002574/0.2832, allocations: 0.7368 MB / 1.04 GB, free: 3.961 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0001222/0.2833, allocations: 50.94 kB / 1.04 GB, free: 3.914 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.506e-05/0.2833, allocations: 27.44 kB / 1.04 GB, free: 3.887 MB / 0.8106 GB Notification: Performance of SimCode: time 2.41e-07/0.2834, allocations: 0 / 1.04 GB, free: 3.887 MB / 0.8106 GB Notification: Performance of Templates: time 0.007576/0.2909, allocations: 3.971 MB / 1.044 GB, free: 0 / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.makefile (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.sim & ./Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches