Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.SingleUTubeBoundaryCondition,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TBouSte.port.T|TBouCon.port.T|TBouPul.port.T",fileNamePrefix="Buildings_9_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_9_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.001926/0.001926, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001878/0.001878, allocations: 193.1 kB / 16.25 MB, free: 6.621 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.407/1.407, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.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.32/2.32, allocations: 390.2 MB / 0.6643 GB, free: 0.6016 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001426/0.001426, allocations: 63.91 kB / 0.812 GB, free: 14.77 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5851/0.5866, allocations: 140.4 MB / 0.9491 GB, free: 9.113 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition): time 0.003281/0.5899, allocations: 2.389 MB / 0.9514 GB, free: 7.246 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001324/0.5912, allocations: 0.999 MB / 0.9524 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000151/0.5914, allocations: 7.625 kB / 0.9524 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002299/0.5916, allocations: 43.59 kB / 0.9525 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001916/0.5918, allocations: 67.59 kB / 0.9525 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004513/0.5923, allocations: 151.5 kB / 0.9527 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002563/0.5926, allocations: 287 kB / 0.9529 GB, free: 6.082 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001057/0.5927, allocations: 44.98 kB / 0.953 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001531/0.5929, allocations: 117.3 kB / 0.9531 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001302/0.593, allocations: 104.7 kB / 0.9532 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.837e-05/0.593, allocations: 16.94 kB / 0.9532 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002684/0.5933, allocations: 117.4 kB / 0.9533 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.219e-05/0.5934, allocations: 44.73 kB / 0.9534 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001067/0.5935, allocations: 121.8 kB / 0.9535 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003404/0.5938, allocations: 310.2 kB / 0.9538 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.5938, allocations: 1.031 kB / 0.9538 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.233e-06/0.5938, allocations: 0 / 0.9538 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.583e-06/0.5939, allocations: 4 kB / 0.9538 GB, free: 5.535 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: 27 * Number of variables: 27 Notification: Performance of Generate backend data structure: time 0.0009052/0.5948, allocations: 0.5857 MB / 0.9544 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.481e-05/0.5948, allocations: 9.125 kB / 0.9544 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.592e-05/0.5949, allocations: 30.22 kB / 0.9544 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000354/0.5952, allocations: 296.5 kB / 0.9547 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.99e-05/0.5953, allocations: 16.02 kB / 0.9547 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.178e-05/0.5953, allocations: 18.38 kB / 0.9547 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003638/0.5957, allocations: 208.2 kB / 0.9549 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.511e-05/0.5957, allocations: 1.469 kB / 0.9549 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.273e-05/0.5957, allocations: 13.33 kB / 0.9549 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.492e-06/0.5958, allocations: 3.969 kB / 0.9549 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003407/0.5961, allocations: 112.9 kB / 0.955 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007914/0.5969, allocations: 0.8691 MB / 0.9559 GB, free: 3.586 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004353/0.5974, allocations: 207.4 kB / 0.9561 GB, free: 3.441 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000184/0.5975, allocations: 77.77 kB / 0.9562 GB, free: 3.391 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.267e-05/0.5976, allocations: 2.469 kB / 0.9562 GB, free: 3.391 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003835/0.598, allocations: 202.3 kB / 0.9563 GB, free: 3.238 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=23): time 1.713e-06/0.598, allocations: 0 / 0.9563 GB, free: 3.238 MB / 0.7169 GB Notification: Performance of matching and sorting (n=23): time 0.0008157/0.5988, allocations: 354.7 kB / 0.9567 GB, free: 3.07 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.45e-05/0.5988, allocations: 117.5 kB / 0.9568 GB, free: 2.938 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001945/0.599, allocations: 242.6 kB / 0.957 GB, free: 2.766 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.737e-05/0.5991, allocations: 38.86 kB / 0.9571 GB, free: 2.727 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.653e-05/0.5991, allocations: 147.1 kB / 0.9572 GB, free: 2.59 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.434e-05/0.5992, allocations: 63.92 kB / 0.9573 GB, free: 2.535 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.719e-05/0.5993, allocations: 71.36 kB / 0.9573 GB, free: 2.484 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.219e-05/0.5994, allocations: 346.4 kB / 0.9577 GB, free: 2.145 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002073/0.5996, allocations: 81 kB / 0.9577 GB, free: 2.109 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002613/0.5998, allocations: 258.5 kB / 0.958 GB, free: 1.836 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004527/0.6003, allocations: 386.4 kB / 0.9584 GB, free: 1.477 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.14e-06/0.6003, allocations: 1.75 kB / 0.9584 GB, free: 1.477 MB / 0.7169 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0006556/0.601, allocations: 397.1 kB / 0.9587 GB, free: 1.258 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.704e-05/0.601, allocations: 40.12 kB / 0.9588 GB, free: 1.223 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.061e-05/0.601, allocations: 5.5 kB / 0.9588 GB, free: 1.223 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/0.601, allocations: 16.23 kB / 0.9588 GB, free: 1.215 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002081/0.6013, allocations: 66.97 kB / 0.9589 GB, free: 1.195 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.775e-05/0.6013, allocations: 12.28 kB / 0.9589 GB, free: 1.191 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002682/0.6016, allocations: 49.16 kB / 0.9589 GB, free: 1.16 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.67e-05/0.6016, allocations: 19.97 kB / 0.9589 GB, free: 1.156 MB / 0.7169 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.0001751/0.6018, allocations: 163.8 kB / 0.9591 GB, free: 1.008 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.052e-05/0.6019, allocations: 25.03 kB / 0.9591 GB, free: 0.9961 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.216e-05/0.602, allocations: 23.17 kB / 0.9591 GB, free: 0.9805 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/0.602, allocations: 3.25 kB / 0.9591 GB, free: 0.9805 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.366e-05/0.602, allocations: 5.125 kB / 0.9592 GB, free: 0.9766 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.072e-05/0.602, allocations: 5.203 kB / 0.9592 GB, free: 0.9727 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003533/0.6024, allocations: 262.1 kB / 0.9594 GB, free: 0.707 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/0.6024, allocations: 1.094 kB / 0.9594 GB, free: 0.707 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001646/0.6026, allocations: 25.56 kB / 0.9594 GB, free: 0.6953 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.629e-06/0.6026, allocations: 5.375 kB / 0.9594 GB, free: 0.6914 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.574e-05/0.6026, allocations: 12.02 kB / 0.9594 GB, free: 0.6836 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.388e-06/0.6026, allocations: 1.875 kB / 0.9594 GB, free: 0.6836 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.035e-06/0.6026, allocations: 5.031 kB / 0.9595 GB, free: 0.6797 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000897/0.6035, allocations: 415.4 kB / 0.9598 GB, free: 456 kB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 6.132e-05/0.6036, allocations: 99.67 kB / 0.9599 GB, free: 344 kB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.896e-05/0.6037, allocations: 8.375 kB / 0.96 GB, free: 340 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001832/0.6039, allocations: 19.75 kB / 0.96 GB, free: 328 kB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.573e-05/0.604, allocations: 21.3 kB / 0.96 GB, free: 316 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.23e-05/0.604, allocations: 16.45 kB / 0.96 GB, free: 308 kB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.000146/0.6041, allocations: 166.5 kB / 0.9602 GB, free: 184 kB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6041, allocations: 1.094 kB / 0.9602 GB, free: 184 kB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0004688/0.6046, allocations: 92.02 kB / 0.9603 GB, free: 156 kB / 0.7169 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.0003795/0.605, allocations: 166.5 kB / 0.9604 GB, free: 32 kB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0007147/0.6057, allocations: 313.1 kB / 0.9607 GB, free: 15.85 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.6057, allocations: 1.625 kB / 0.9607 GB, free: 15.85 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002694/0.606, allocations: 104.3 kB / 0.9608 GB, free: 15.81 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003814/0.6064, allocations: 59.3 kB / 0.9609 GB, free: 15.78 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001181/0.6076, allocations: 0.6564 MB / 0.9615 GB, free: 15.27 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000314/0.6079, allocations: 0.7406 MB / 0.9622 GB, free: 14.55 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001582/0.6081, allocations: 57.38 kB / 0.9623 GB, free: 14.52 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.36e-05/0.6082, allocations: 28.62 kB / 0.9623 GB, free: 14.51 MB / 0.7325 GB Notification: Performance of SimCode: time 4.41e-07/0.6082, allocations: 0 / 0.9623 GB, free: 14.51 MB / 0.7325 GB Notification: Performance of Templates: time 0.008576/0.6167, allocations: 3.897 MB / 0.9661 GB, free: 12.62 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.makefile (rm -f Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe ; mkfifo Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe >> ../files/Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.sim & ./Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches