Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.Examples.BoreholeDynamics.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.Borefields.BaseClasses.Boreholes.Examples.BoreholeDynamics,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TBor1UTubDyn.T|TBor1UTubSteSta.T|TBor2UTubDyn.T|TBor2UTubSteSta.T",fileNamePrefix="Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.Examples.BoreholeDynamics") translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.Examples.BoreholeDynamics,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TBor1UTubDyn.T|TBor1UTubSteSta.T|TBor2UTubDyn.T|TBor2UTubSteSta.T",fileNamePrefix="Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.Examples.BoreholeDynamics") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001683/0.001683, allocations: 111 kB / 16.42 MB, free: 6.508 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.001927/0.001927, allocations: 190.5 kB / 17.35 MB, free: 5.758 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.39/1.39, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.626/2.626, allocations: 461.7 MB / 0.7352 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001419/0.001419, allocations: 64.12 kB / 1.055 GB, free: 7.652 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9068/0.9083, allocations: 157.4 MB / 1.208 GB, free: 13.77 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.Examples.BoreholeDynamics): time 0.3005/1.209, allocations: 292.5 MB / 1.494 GB, free: 8.266 MB / 1.217 GB Notification: Performance of NFInst.instExpressions: time 0.111/1.32, allocations: 70.62 MB / 1.563 GB, free: 1.457 MB / 1.279 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.01833/1.338, allocations: 381.9 kB / 1.563 GB, free: 1.082 MB / 1.279 GB Notification: Performance of NFTyping.typeComponents: time 1.004/2.343, allocations: 4.911 MB / 1.568 GB, free: 39.42 MB / 1.279 GB Notification: Performance of NFTyping.typeBindings: time 0.04393/2.387, allocations: 12.86 MB / 1.581 GB, free: 39.34 MB / 1.279 GB Notification: Performance of NFTyping.typeClassSections: time 0.02721/2.414, allocations: 9.304 MB / 1.59 GB, free: 39.11 MB / 1.279 GB Notification: Performance of NFFlatten.flatten: time 0.3315/2.745, allocations: 222.6 MB / 1.807 GB, free: 12.52 MB / 1.373 GB Notification: Performance of NFFlatten.resolveConnections: time 0.2155/2.961, allocations: 104.6 MB / 1.909 GB, free: 4.836 MB / 1.467 GB Notification: Performance of NFEvalConstants.evaluate: time 0.1668/3.128, allocations: 72.7 MB / 1.98 GB, free: 15.23 MB / 1.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.1302/3.258, allocations: 63.4 MB / 2.042 GB, free: 3.758 MB / 1.592 GB Notification: Performance of NFPackage.collectConstants: time 0.03871/3.297, allocations: 10.97 MB / 2.053 GB, free: 8.781 MB / 1.607 GB Notification: Performance of NFFlatten.collectFunctions: time 0.09498/3.392, allocations: 18.1 MB / 2.07 GB, free: 7.129 MB / 1.623 GB Notification: Performance of NFScalarize.scalarize: time 0.05748/3.449, allocations: 24.48 MB / 2.094 GB, free: 14.97 MB / 1.654 GB Notification: Performance of NFVerifyModel.verify: time 0.1566/3.606, allocations: 53.1 MB / 2.146 GB, free: 10.02 MB / 1.701 GB Notification: Performance of NFConvertDAE.convert: time 2.12/5.726, allocations: 182.4 MB / 2.324 GB, free: 304 MB / 1.733 GB Notification: Performance of FrontEnd - DAE generated: time 8.306e-06/5.726, allocations: 2.5 kB / 2.324 GB, free: 304 MB / 1.733 GB Notification: Performance of FrontEnd: time 1.813e-06/5.726, allocations: 0 / 2.324 GB, free: 304 MB / 1.733 GB Notification: Performance of Transformations before backend: time 0.006049/5.732, allocations: 0 / 2.324 GB, free: 304 MB / 1.733 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12889 * Number of variables: 12889 Notification: Performance of Generate backend data structure: time 0.3333/6.065, allocations: 93.51 MB / 2.416 GB, free: 260 MB / 1.733 GB Notification: Performance of prepare preOptimizeDAE: time 4.588e-05/6.065, allocations: 7.812 kB / 2.416 GB, free: 260 MB / 1.733 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05721/6.123, allocations: 9.195 MB / 2.425 GB, free: 255.5 MB / 1.733 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2088/6.332, allocations: 91.36 MB / 2.514 GB, free: 207.6 MB / 1.733 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.004801/6.336, allocations: 3.798 MB / 2.518 GB, free: 203.8 MB / 1.733 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.03309/6.37, allocations: 5.054 MB / 2.523 GB, free: 198.8 MB / 1.733 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2406/6.61, allocations: 77.38 MB / 2.598 GB, free: 119.7 MB / 1.733 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.002868/6.613, allocations: 147.8 kB / 2.598 GB, free: 119.6 MB / 1.733 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.02353/6.637, allocations: 2.093 MB / 2.6 GB, free: 117.5 MB / 1.733 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001364/6.638, allocations: 1.464 MB / 2.602 GB, free: 116.1 MB / 1.733 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1616/6.8, allocations: 66.23 MB / 2.666 GB, free: 50.25 MB / 1.733 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 1.616/8.416, allocations: 380.9 MB / 3.038 GB, free: 496.4 MB / 1.873 GB Notification: Performance of preOpt comSubExp (simulation): time 0.08116/8.497, allocations: 40.75 MB / 3.078 GB, free: 487.2 MB / 1.873 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.04709/8.544, allocations: 25.9 MB / 3.104 GB, free: 477.9 MB / 1.873 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006756/8.551, allocations: 5.246 MB / 3.109 GB, free: 472.5 MB / 1.873 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007887/8.552, allocations: 400.8 kB / 3.109 GB, free: 472.2 MB / 1.873 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.04262/8.594, allocations: 3.066 MB / 3.112 GB, free: 471.8 MB / 1.873 GB Notification: Performance of pre-optimization done (n=2661): time 0.0001479/8.594, allocations: 0 / 3.112 GB, free: 471.8 MB / 1.873 GB Notification: Performance of matching and sorting (n=2661): time 0.1674/8.762, allocations: 68.32 MB / 3.179 GB, free: 434.1 MB / 1.873 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002884/8.762, allocations: 0.8225 MB / 3.18 GB, free: 433.2 MB / 1.873 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2236/8.986, allocations: 86.42 MB / 3.264 GB, free: 348 MB / 1.873 GB Notification: Performance of collectPreVariables (initialization): time 0.01022/8.996, allocations: 0.6054 MB / 3.265 GB, free: 347.4 MB / 1.873 GB Notification: Performance of collectInitialEqns (initialization): time 0.06078/9.057, allocations: 35.62 MB / 3.299 GB, free: 312.9 MB / 1.873 GB Notification: Performance of collectInitialBindings (initialization): time 0.0192/9.076, allocations: 9.466 MB / 3.309 GB, free: 303.5 MB / 1.873 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.04529/9.121, allocations: 8.81 MB / 3.317 GB, free: 294.7 MB / 1.873 GB Notification: Performance of setup shared object (initialization): time 4.877e-05/9.121, allocations: 305.1 kB / 3.317 GB, free: 294.4 MB / 1.873 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.05133/9.173, allocations: 21.97 MB / 3.339 GB, free: 272.4 MB / 1.873 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.06198/9.235, allocations: 32.96 MB / 3.371 GB, free: 235.5 MB / 1.873 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.1046/9.339, allocations: 51.85 MB / 3.422 GB, free: 181 MB / 1.873 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003982/9.34, allocations: 72 kB / 3.422 GB, free: 181 MB / 1.873 GB Notification: Performance of matching and sorting (n=5346) (initialization): time 0.1793/9.519, allocations: 69.53 MB / 3.49 GB, free: 112.1 MB / 1.873 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004875/9.52, allocations: 108 kB / 3.49 GB, free: 112 MB / 1.873 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001237/9.521, allocations: 360.8 kB / 3.49 GB, free: 111.6 MB / 1.873 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04811/9.569, allocations: 41.14 MB / 3.53 GB, free: 70.12 MB / 1.873 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03026/9.599, allocations: 7.802 MB / 3.538 GB, free: 62.3 MB / 1.873 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.9943/10.59, allocations: 134.3 MB / 3.669 GB, free: 0.5452 GB / 1.873 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.06074/10.65, allocations: 3.074 MB / 3.672 GB, free: 0.5452 GB / 1.873 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.01225/10.67, allocations: 1.61 MB / 3.674 GB, free: 0.5452 GB / 1.873 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.1112/10.78, allocations: 49.96 MB / 3.723 GB, free: 0.5421 GB / 1.873 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.06096/10.84, allocations: 32.94 MB / 3.755 GB, free: 0.5229 GB / 1.873 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.09548/10.93, allocations: 51.8 MB / 3.805 GB, free: 0.4962 GB / 1.873 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 0.0003801/10.93, allocations: 68.59 kB / 3.805 GB, free: 0.4962 GB / 1.873 GB Notification: Performance of matching and sorting (n=5346) (initialization_lambda0): time 0.1524/11.09, allocations: 69.48 MB / 3.873 GB, free: 470.2 MB / 1.873 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001792/11.09, allocations: 108 kB / 3.873 GB, free: 470.1 MB / 1.873 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001111/11.09, allocations: 355.2 kB / 3.874 GB, free: 469.8 MB / 1.873 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0468/11.14, allocations: 41.06 MB / 3.914 GB, free: 429.7 MB / 1.873 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03012/11.17, allocations: 7.803 MB / 3.921 GB, free: 421.9 MB / 1.873 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09076/11.26, allocations: 136.9 MB / 4.055 GB, free: 277 MB / 1.873 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.06508/11.32, allocations: 3.723 MB / 4.059 GB, free: 273.3 MB / 1.873 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.01191/11.33, allocations: 1.613 MB / 4.06 GB, free: 271.7 MB / 1.873 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1088 * 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 (4218): * Single equations (assignments): 4114 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 40 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 64 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 60 systems {(1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(32,530), (1,4), (1,4), (11,229)} Notification: Performance of prepare postOptimizeDAE: time 0.01958/11.35, allocations: 2.421 MB / 4.063 GB, free: 269.4 MB / 1.873 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.02779/11.38, allocations: 6.374 MB / 4.069 GB, free: 264.6 MB / 1.873 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.118/11.5, allocations: 52.07 MB / 4.12 GB, free: 212.4 MB / 1.873 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.07663/11.58, allocations: 40.3 MB / 4.159 GB, free: 171.9 MB / 1.873 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001114/11.58, allocations: 4 kB / 4.159 GB, free: 171.9 MB / 1.873 GB Notification: Performance of postOpt removeConstants (simulation): time 0.04718/11.62, allocations: 13.47 MB / 4.172 GB, free: 158.3 MB / 1.873 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.03247/11.66, allocations: 0.5348 MB / 4.173 GB, free: 157.8 MB / 1.873 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.05176/11.71, allocations: 2.033 MB / 4.175 GB, free: 155.8 MB / 1.873 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.008181/11.72, allocations: 1.557 MB / 4.176 GB, free: 154.2 MB / 1.873 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.1324/11.85, allocations: 55.82 MB / 4.231 GB, free: 98.71 MB / 1.873 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.136/11.98, allocations: 64 MB / 4.293 GB, free: 34.51 MB / 1.873 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.02838/12.01, allocations: 18.62 MB / 4.311 GB, free: 15.85 MB / 1.873 GB Notification: Performance of sorting global known variables: time 1.056/13.07, allocations: 61.53 MB / 4.372 GB, free: 0.5426 GB / 1.873 GB Notification: Performance of Backend: time 1.132e-06/13.07, allocations: 0 / 4.372 GB, free: 0.5426 GB / 1.873 GB Notification: Performance of simCode: created initialization part: time 0.2223/13.29, allocations: 85.92 MB / 4.455 GB, free: 0.5087 GB / 1.873 GB Notification: Performance of SimCode: time 0.5347/13.83, allocations: 192.7 MB / 4.644 GB, free: 392.5 MB / 1.873 GB Notification: Performance of Templates: time 5.263/19.09, allocations: 1.58 GB / 6.224 GB, free: 184.4 MB / 1.874 GB make -j1 -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.Examples.BoreholeDynamics.makefile (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.Examples.BoreholeDynamics.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.Examples.BoreholeDynamics.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.Examples.BoreholeDynamics.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.Examples.BoreholeDynamics.sim & ./Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.Examples.BoreholeDynamics -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.Examples.BoreholeDynamics.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.Examples.BoreholeDynamics_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_Examples_BoreholeDynamics.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.Examples.BoreholeDynamics.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches