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.001249/0.001249, allocations: 105.1 kB / 16.41 MB, free: 6.41 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.001124/0.001125, allocations: 189.7 kB / 17.35 MB, free: 5.695 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.337/1.337, allocations: 222.9 MB / 241 MB, free: 15.16 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.177/2.177, allocations: 390.3 MB / 0.6655 GB, free: 0.6914 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001556/0.001556, allocations: 71.91 kB / 0.9515 GB, free: 7.641 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9763/0.9779, allocations: 140.4 MB / 1.089 GB, free: 5.512 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition): time 0.00373/0.9817, allocations: 2.345 MB / 1.091 GB, free: 3.875 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001592/0.9833, allocations: 0.9979 MB / 1.092 GB, free: 3.172 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001221/0.9834, allocations: 8.531 kB / 1.092 GB, free: 3.168 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0002642/0.9837, allocations: 55.44 kB / 1.092 GB, free: 3.137 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001838/0.9839, allocations: 76.58 kB / 1.092 GB, free: 3.082 MB / 0.8575 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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.0005565/0.9845, allocations: 165.1 kB / 1.092 GB, free: 2.996 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003525/0.9849, allocations: 299.9 kB / 1.092 GB, free: 2.844 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001375/0.985, allocations: 40.28 kB / 1.093 GB, free: 2.824 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001802/0.9852, allocations: 114.6 kB / 1.093 GB, free: 2.773 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001597/0.9854, allocations: 112.9 kB / 1.093 GB, free: 2.719 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.054e-05/0.9854, allocations: 18.16 kB / 1.093 GB, free: 2.719 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003256/0.9858, allocations: 118.1 kB / 1.093 GB, free: 2.688 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 6.618e-05/0.9858, allocations: 48.95 kB / 1.093 GB, free: 2.656 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001354/0.986, allocations: 117.4 kB / 1.093 GB, free: 2.586 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004857/0.9865, allocations: 321.2 kB / 1.093 GB, free: 2.465 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.9865, allocations: 0.625 kB / 1.093 GB, free: 2.465 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.784e-06/0.9865, allocations: 0 / 1.093 GB, free: 2.465 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.182e-06/0.9865, allocations: 4.656 kB / 1.093 GB, free: 2.461 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: 27 * Number of variables: 27 Notification: Performance of Generate backend data structure: time 0.0009682/0.9875, allocations: 0.5861 MB / 1.094 GB, free: 1.949 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.11e-05/0.9875, allocations: 9.281 kB / 1.094 GB, free: 1.949 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.084e-05/0.9876, allocations: 27.77 kB / 1.094 GB, free: 1.938 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004657/0.9881, allocations: 294.9 kB / 1.094 GB, free: 1.684 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.74e-05/0.9881, allocations: 13.48 kB / 1.094 GB, free: 1.68 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.214e-05/0.9882, allocations: 28.53 kB / 1.094 GB, free: 1.668 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004528/0.9886, allocations: 206.1 kB / 1.094 GB, free: 1.547 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.625e-05/0.9887, allocations: 0.5938 kB / 1.094 GB, free: 1.547 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.45e-05/0.9887, allocations: 4.594 kB / 1.094 GB, free: 1.547 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.357e-06/0.9887, allocations: 6.875 kB / 1.094 GB, free: 1.543 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003819/0.9891, allocations: 106.7 kB / 1.095 GB, free: 1.52 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009876/0.9901, allocations: 0.8726 MB / 1.095 GB, free: 0.7422 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005248/0.9906, allocations: 206 kB / 1.096 GB, free: 0.625 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002211/0.9909, allocations: 78.47 kB / 1.096 GB, free: 0.5859 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.29e-05/0.9909, allocations: 2.844 kB / 1.096 GB, free: 0.5859 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004506/0.9913, allocations: 203 kB / 1.096 GB, free: 484 kB / 0.8575 GB Notification: Performance of pre-optimization done (n=23): time 1.723e-06/0.9913, allocations: 0.7188 kB / 1.096 GB, free: 484 kB / 0.8575 GB Notification: Performance of matching and sorting (n=23): time 0.0009978/0.9923, allocations: 349.1 kB / 1.096 GB, free: 368 kB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.182e-05/0.9924, allocations: 125.2 kB / 1.096 GB, free: 228 kB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002523/0.9927, allocations: 244.7 kB / 1.097 GB, free: 76 kB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.091e-05/0.9927, allocations: 40.23 kB / 1.097 GB, free: 36 kB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.000139/0.9929, allocations: 140.8 kB / 1.097 GB, free: 15.91 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 6.79e-05/0.9929, allocations: 58.16 kB / 1.097 GB, free: 15.87 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001343/0.9931, allocations: 78.84 kB / 1.097 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001594/0.9933, allocations: 343 kB / 1.097 GB, free: 15.49 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002502/0.9935, allocations: 76.2 kB / 1.097 GB, free: 15.47 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000393/0.9939, allocations: 259.9 kB / 1.098 GB, free: 15.22 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006421/0.9946, allocations: 389.6 kB / 1.098 GB, free: 14.88 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.1e-06/0.9946, allocations: 1.906 kB / 1.098 GB, free: 14.88 MB / 0.8731 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008612/0.9954, allocations: 400.4 kB / 1.098 GB, free: 14.69 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 5.369e-05/0.9955, allocations: 35.31 kB / 1.098 GB, free: 14.66 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.269e-05/0.9955, allocations: 10.33 kB / 1.098 GB, free: 14.66 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.566e-05/0.9956, allocations: 13.22 kB / 1.098 GB, free: 14.65 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002434/0.9958, allocations: 63.38 kB / 1.098 GB, free: 14.64 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.8e-05/0.9958, allocations: 22.03 kB / 1.098 GB, free: 14.63 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002878/0.9961, allocations: 44.84 kB / 1.098 GB, free: 14.61 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.914e-05/0.9962, allocations: 20.88 kB / 1.098 GB, free: 14.61 MB / 0.8731 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.0001884/0.9964, allocations: 166.8 kB / 1.099 GB, free: 14.46 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.534e-05/0.9964, allocations: 24.72 kB / 1.099 GB, free: 14.45 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.16e-05/0.9965, allocations: 27.5 kB / 1.099 GB, free: 14.43 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.021e-06/0.9965, allocations: 3.094 kB / 1.099 GB, free: 14.43 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.29e-05/0.9965, allocations: 5.156 kB / 1.099 GB, free: 14.43 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.215e-06/0.9966, allocations: 2.75 kB / 1.099 GB, free: 14.43 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003461/0.9969, allocations: 260.5 kB / 1.099 GB, free: 14.2 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.9969, allocations: 1.062 kB / 1.099 GB, free: 14.2 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001249/0.997, allocations: 18.94 kB / 1.099 GB, free: 14.2 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.438e-06/0.9971, allocations: 5.719 kB / 1.099 GB, free: 14.2 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.698e-05/0.9971, allocations: 11.88 kB / 1.099 GB, free: 14.19 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.336e-06/0.9971, allocations: 2.188 kB / 1.099 GB, free: 14.19 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.23e-06/0.9971, allocations: 3.938 kB / 1.099 GB, free: 14.19 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009823/0.9981, allocations: 414.8 kB / 1.099 GB, free: 14 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 7.856e-05/0.9982, allocations: 100.8 kB / 1.099 GB, free: 13.89 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.599e-05/0.9983, allocations: 10.62 kB / 1.099 GB, free: 13.89 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001708/0.9984, allocations: 17.66 kB / 1.1 GB, free: 13.89 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.148e-05/0.9985, allocations: 28.45 kB / 1.1 GB, free: 13.88 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.402e-05/0.9986, allocations: 11.69 kB / 1.1 GB, free: 13.88 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001946/0.9988, allocations: 167.2 kB / 1.1 GB, free: 13.77 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.71e-07/0.9988, allocations: 0 / 1.1 GB, free: 13.77 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.000461/0.9992, allocations: 83.53 kB / 1.1 GB, free: 13.75 MB / 0.8731 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.0004207/0.9997, allocations: 172.5 kB / 1.1 GB, free: 13.63 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0007056/1, allocations: 304 kB / 1.1 GB, free: 13.49 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/1, allocations: 1.625 kB / 1.1 GB, free: 13.49 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0002887/1.001, allocations: 103.7 kB / 1.1 GB, free: 13.46 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003925/1.001, allocations: 53.61 kB / 1.1 GB, free: 13.45 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001436/1.003, allocations: 0.6287 MB / 1.101 GB, free: 13.01 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003899/1.003, allocations: 0.7453 MB / 1.102 GB, free: 12.31 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.4e-05/1.003, allocations: 30.27 kB / 1.102 GB, free: 12.3 MB / 0.8731 GB Notification: Performance of SimCode: time 2.9e-07/1.003, allocations: 0 / 1.102 GB, free: 12.3 MB / 0.8731 GB Notification: Performance of Templates: time 0.008826/1.012, allocations: 3.87 MB / 1.106 GB, free: 11.91 MB / 0.8731 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/jenkins1/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