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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.00138/0.00138, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001413/0.001413, allocations: 196.7 kB / 16.14 MB, free: 6.707 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.454/1.454, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.909/2.909, allocations: 482.3 MB / 0.7542 GB, free: 11.22 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002033/0.002033, allocations: 71.72 kB / 0.9231 GB, free: 29.64 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2716/0.2737, allocations: 162.2 MB / 1.082 GB, free: 13.7 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition): time 0.003829/0.2776, allocations: 2.389 MB / 1.084 GB, free: 11.29 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001601/0.2792, allocations: 1.013 MB / 1.085 GB, free: 10.27 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.485e-05/0.2793, allocations: 7.938 kB / 1.085 GB, free: 10.27 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0002052/0.2795, allocations: 39.77 kB / 1.085 GB, free: 10.23 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001711/0.2797, allocations: 71.47 kB / 1.085 GB, free: 10.16 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003852/0.2801, allocations: 143.7 kB / 1.085 GB, free: 10.02 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0002656/0.2804, allocations: 266.8 kB / 1.085 GB, free: 9.754 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001093/0.2805, allocations: 40.59 kB / 1.085 GB, free: 9.715 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001574/0.2806, allocations: 103.5 kB / 1.086 GB, free: 9.613 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001327/0.2808, allocations: 111.5 kB / 1.086 GB, free: 9.504 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 3.07e-05/0.2808, allocations: 8 kB / 1.086 GB, free: 9.496 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002628/0.2811, allocations: 99.83 kB / 1.086 GB, free: 9.398 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 4.965e-05/0.2811, allocations: 39.84 kB / 1.086 GB, free: 9.359 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001291/0.2813, allocations: 111.4 kB / 1.086 GB, free: 9.25 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0004062/0.2817, allocations: 307 kB / 1.086 GB, free: 8.949 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 2.995e-06/0.2817, allocations: 4 kB / 1.086 GB, free: 8.945 MB / 0.8419 GB Notification: Performance of FrontEnd: time 9.41e-07/0.2817, allocations: 4 kB / 1.086 GB, free: 8.941 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 4.579e-06/0.2817, allocations: 0 / 1.086 GB, free: 8.941 MB / 0.8419 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.001033/0.2828, allocations: 0.5864 MB / 1.087 GB, free: 8.297 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.607e-05/0.2828, allocations: 12.03 kB / 1.087 GB, free: 8.285 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.265e-05/0.2829, allocations: 24.66 kB / 1.087 GB, free: 8.262 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004506/0.2833, allocations: 295 kB / 1.087 GB, free: 7.934 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.198e-05/0.2834, allocations: 16.61 kB / 1.087 GB, free: 7.918 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.644e-05/0.2834, allocations: 20.38 kB / 1.087 GB, free: 7.898 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004298/0.2839, allocations: 202.2 kB / 1.087 GB, free: 7.68 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.679e-05/0.2839, allocations: 7.906 kB / 1.087 GB, free: 7.672 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.582e-05/0.2839, allocations: 15.97 kB / 1.087 GB, free: 7.656 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.646e-06/0.2839, allocations: 4 kB / 1.087 GB, free: 7.652 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003703/0.2843, allocations: 103.8 kB / 1.087 GB, free: 7.551 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001079/0.2854, allocations: 0.8723 MB / 1.088 GB, free: 6.609 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005204/0.2859, allocations: 203.8 kB / 1.088 GB, free: 6.383 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002141/0.2862, allocations: 78.61 kB / 1.089 GB, free: 6.297 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.28e-05/0.2862, allocations: 4 kB / 1.089 GB, free: 6.293 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004627/0.2866, allocations: 201.8 kB / 1.089 GB, free: 6.074 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=23): time 1.433e-06/0.2867, allocations: 0 / 1.089 GB, free: 6.074 MB / 0.8419 GB Notification: Performance of matching and sorting (n=23): time 0.0009116/0.2876, allocations: 357.1 kB / 1.089 GB, free: 5.719 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.212e-05/0.2877, allocations: 122.7 kB / 1.089 GB, free: 5.574 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002527/0.2879, allocations: 246.4 kB / 1.089 GB, free: 5.328 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.373e-05/0.288, allocations: 37.69 kB / 1.089 GB, free: 5.285 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001066/0.2881, allocations: 136.6 kB / 1.09 GB, free: 5.148 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 6.259e-05/0.2882, allocations: 63.23 kB / 1.09 GB, free: 5.086 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001106/0.2883, allocations: 77.98 kB / 1.09 GB, free: 5 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001573/0.2884, allocations: 342.8 kB / 1.09 GB, free: 4.656 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002409/0.2887, allocations: 80.75 kB / 1.09 GB, free: 4.578 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003657/0.2891, allocations: 251.1 kB / 1.09 GB, free: 4.254 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006262/0.2897, allocations: 384.8 kB / 1.091 GB, free: 3.789 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.646e-06/0.2897, allocations: 4 kB / 1.091 GB, free: 3.785 MB / 0.8419 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007717/0.2905, allocations: 399.2 kB / 1.091 GB, free: 3.383 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 4.235e-05/0.2905, allocations: 43.25 kB / 1.091 GB, free: 3.336 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.498e-06/0.2906, allocations: 7.938 kB / 1.091 GB, free: 3.328 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.908e-05/0.2906, allocations: 8 kB / 1.091 GB, free: 3.32 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002273/0.2908, allocations: 67.84 kB / 1.091 GB, free: 3.254 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.611e-05/0.2908, allocations: 15.92 kB / 1.091 GB, free: 3.238 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002481/0.2911, allocations: 43.58 kB / 1.091 GB, free: 3.195 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.081e-05/0.2911, allocations: 20 kB / 1.091 GB, free: 3.176 MB / 0.8419 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.0001599/0.2913, allocations: 164 kB / 1.091 GB, free: 3.004 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.86e-05/0.2914, allocations: 31.7 kB / 1.092 GB, free: 2.973 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.991e-05/0.2914, allocations: 17.72 kB / 1.092 GB, free: 2.957 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/0.2914, allocations: 4 kB / 1.092 GB, free: 2.953 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.005e-06/0.2914, allocations: 3.938 kB / 1.092 GB, free: 2.949 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.103e-06/0.2915, allocations: 7.922 kB / 1.092 GB, free: 2.941 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002982/0.2918, allocations: 269.4 kB / 1.092 GB, free: 2.629 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.2918, allocations: 0 / 1.092 GB, free: 2.629 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001299/0.2919, allocations: 23.92 kB / 1.092 GB, free: 2.605 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.06e-06/0.2919, allocations: 4.25 kB / 1.092 GB, free: 2.602 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.478e-05/0.292, allocations: 11.98 kB / 1.092 GB, free: 2.59 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.887e-06/0.292, allocations: 4 kB / 1.092 GB, free: 2.586 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.292, allocations: 3.938 kB / 1.092 GB, free: 2.582 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009095/0.2929, allocations: 416.7 kB / 1.092 GB, free: 2.152 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 7.883e-05/0.293, allocations: 96.83 kB / 1.092 GB, free: 2.039 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.066e-05/0.293, allocations: 8 kB / 1.092 GB, free: 2.031 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001737/0.2932, allocations: 16.02 kB / 1.092 GB, free: 2.016 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.013e-05/0.2933, allocations: 27.84 kB / 1.092 GB, free: 1.988 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.886e-05/0.2933, allocations: 8 kB / 1.092 GB, free: 1.98 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001661/0.2935, allocations: 178 kB / 1.093 GB, free: 1.809 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.11e-07/0.2935, allocations: 0 / 1.093 GB, free: 1.809 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.000399/0.2939, allocations: 83.94 kB / 1.093 GB, free: 1.727 MB / 0.8419 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.0003497/0.2943, allocations: 168 kB / 1.093 GB, free: 1.559 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.000636/0.2949, allocations: 292.1 kB / 1.093 GB, free: 1.262 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.518e-06/0.2949, allocations: 0 / 1.093 GB, free: 1.262 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002864/0.2952, allocations: 120.1 kB / 1.093 GB, free: 1.145 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003735/0.2956, allocations: 52.52 kB / 1.093 GB, free: 1.09 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001256/0.2969, allocations: 0.6624 MB / 1.094 GB, free: 404 kB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003782/0.2973, allocations: 0.741 MB / 1.095 GB, free: 15.63 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0001541/0.2974, allocations: 55.05 kB / 1.095 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.243e-05/0.2975, allocations: 31.44 kB / 1.095 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of SimCode: time 2.71e-07/0.2975, allocations: 4 kB / 1.095 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of Templates: time 0.008314/0.3058, allocations: 3.736 MB / 1.098 GB, free: 11.88 MB / 0.8575 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=400 -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/jenkins/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