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.001139/0.001139, allocations: 112.6 kB / 15.99 MB, free: 5.91 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.001129/0.00113, allocations: 195.4 kB / 16.91 MB, free: 5.754 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.391/1.391, allocations: 222.9 MB / 240.6 MB, free: 4.402 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.426/2.426, allocations: 390.2 MB / 0.665 GB, free: 0.5312 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001612/0.001613, allocations: 63.91 kB / 0.8127 GB, free: 14.76 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6915/0.6931, allocations: 140.4 MB / 0.9498 GB, free: 9.234 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition): time 0.003801/0.697, allocations: 2.389 MB / 0.9521 GB, free: 7.367 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00141/0.6984, allocations: 0.9944 MB / 0.9531 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001155/0.6986, allocations: 9.344 kB / 0.9531 GB, free: 6.566 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002362/0.6988, allocations: 42.34 kB / 0.9531 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001521/0.699, allocations: 63.73 kB / 0.9532 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004226/0.6994, allocations: 147.5 kB / 0.9533 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002516/0.6997, allocations: 292.4 kB / 0.9536 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001126/0.6998, allocations: 40.34 kB / 0.9537 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001468/0.7, allocations: 110.6 kB / 0.9538 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001181/0.7001, allocations: 111.7 kB / 0.9539 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.665e-05/0.7001, allocations: 17.84 kB / 0.9539 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002493/0.7004, allocations: 117 kB / 0.954 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.989e-05/0.7004, allocations: 48.3 kB / 0.954 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.888e-05/0.7005, allocations: 118.4 kB / 0.9542 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002556/0.7008, allocations: 231.2 kB / 0.9544 GB, free: 5.723 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.7008, allocations: 0 / 0.9544 GB, free: 5.723 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.473e-06/0.7008, allocations: 0 / 0.9544 GB, free: 5.723 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.907e-06/0.7008, allocations: 1.469 kB / 0.9544 GB, free: 5.723 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.0008757/0.7017, allocations: 0.5887 MB / 0.9549 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.83e-05/0.7018, allocations: 8.5 kB / 0.955 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.935e-05/0.7018, allocations: 31.53 kB / 0.955 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003532/0.7022, allocations: 294.8 kB / 0.9553 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.954e-05/0.7022, allocations: 16.36 kB / 0.9553 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.65e-05/0.7023, allocations: 26.17 kB / 0.9553 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003797/0.7027, allocations: 196.9 kB / 0.9555 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.274e-05/0.7027, allocations: 5.219 kB / 0.9555 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.38e-05/0.7027, allocations: 10.45 kB / 0.9555 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.456e-06/0.7027, allocations: 3.188 kB / 0.9555 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003424/0.7031, allocations: 108.9 kB / 0.9556 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008352/0.7039, allocations: 0.8687 MB / 0.9565 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004432/0.7044, allocations: 203.5 kB / 0.9567 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001891/0.7046, allocations: 78.98 kB / 0.9567 GB, free: 3.586 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.55e-05/0.7046, allocations: 5.094 kB / 0.9567 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004234/0.705, allocations: 200.8 kB / 0.9569 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=23): time 1.643e-06/0.705, allocations: 3.938 kB / 0.9569 GB, free: 3.43 MB / 0.7169 GB Notification: Performance of matching and sorting (n=23): time 0.0008323/0.7059, allocations: 355.1 kB / 0.9573 GB, free: 3.262 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.569e-05/0.7059, allocations: 117.4 kB / 0.9574 GB, free: 3.129 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001868/0.7061, allocations: 250.7 kB / 0.9576 GB, free: 2.949 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.593e-05/0.7062, allocations: 45.75 kB / 0.9577 GB, free: 2.902 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.006e-05/0.7062, allocations: 143.4 kB / 0.9578 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.031e-05/0.7063, allocations: 64.86 kB / 0.9579 GB, free: 2.715 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.411e-05/0.7064, allocations: 74.47 kB / 0.9579 GB, free: 2.66 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.969e-05/0.7064, allocations: 337.6 kB / 0.9583 GB, free: 2.328 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002043/0.7066, allocations: 76.88 kB / 0.9583 GB, free: 2.297 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002532/0.7069, allocations: 263.5 kB / 0.9586 GB, free: 2.02 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004594/0.7074, allocations: 386.3 kB / 0.959 GB, free: 1.66 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.7074, allocations: 1.312 kB / 0.959 GB, free: 1.66 MB / 0.7169 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0006485/0.708, allocations: 401.1 kB / 0.9593 GB, free: 1.438 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.441e-05/0.7081, allocations: 33.55 kB / 0.9594 GB, free: 1.406 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.209e-05/0.7081, allocations: 6.094 kB / 0.9594 GB, free: 1.406 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.43e-05/0.7081, allocations: 8.5 kB / 0.9594 GB, free: 1.406 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002124/0.7083, allocations: 67.03 kB / 0.9594 GB, free: 1.387 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.881e-05/0.7084, allocations: 20.58 kB / 0.9595 GB, free: 1.375 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002523/0.7086, allocations: 44.33 kB / 0.9595 GB, free: 1.348 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.113e-05/0.7087, allocations: 21.03 kB / 0.9595 GB, free: 1.344 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.0001326/0.7088, allocations: 160.5 kB / 0.9597 GB, free: 1.199 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.737e-05/0.7089, allocations: 28.08 kB / 0.9597 GB, free: 1.184 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.583e-05/0.7089, allocations: 23.22 kB / 0.9597 GB, free: 1.168 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.7089, allocations: 6.75 kB / 0.9597 GB, free: 1.164 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.436e-06/0.7089, allocations: 9.297 kB / 0.9597 GB, free: 1.156 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.181e-06/0.709, allocations: 1.375 kB / 0.9597 GB, free: 1.156 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002514/0.7092, allocations: 270.8 kB / 0.96 GB, free: 0.8828 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.7092, allocations: 4 kB / 0.96 GB, free: 0.8789 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001238/0.7093, allocations: 18.58 kB / 0.96 GB, free: 0.875 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.108e-06/0.7094, allocations: 1.031 kB / 0.96 GB, free: 0.875 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.714e-05/0.7094, allocations: 12.02 kB / 0.96 GB, free: 0.8672 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.978e-06/0.7094, allocations: 2.156 kB / 0.96 GB, free: 0.8672 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.7094, allocations: 5.344 kB / 0.96 GB, free: 0.8633 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008434/0.7103, allocations: 409.1 kB / 0.9604 GB, free: 0.6328 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 6.492e-05/0.7103, allocations: 103.9 kB / 0.9605 GB, free: 0.5195 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.415e-05/0.7104, allocations: 8.406 kB / 0.9605 GB, free: 0.5156 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000162/0.7106, allocations: 23.98 kB / 0.9606 GB, free: 0.5 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.681e-05/0.7107, allocations: 26.44 kB / 0.9606 GB, free: 496 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.068e-05/0.7107, allocations: 7.531 kB / 0.9606 GB, free: 496 kB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001384/0.7108, allocations: 170.6 kB / 0.9608 GB, free: 368 kB / 0.7169 GB Notification: Performance of sort global known variables: time 2.1e-07/0.7108, allocations: 0 / 0.9608 GB, free: 368 kB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0004513/0.7113, allocations: 85.41 kB / 0.9608 GB, free: 348 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.0003658/0.7117, allocations: 175.2 kB / 0.961 GB, free: 216 kB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0006227/0.7123, allocations: 306.5 kB / 0.9613 GB, free: 40 kB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.7123, allocations: 0 / 0.9613 GB, free: 40 kB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.00029/0.7126, allocations: 99.7 kB / 0.9614 GB, free: 16 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004285/0.713, allocations: 74.45 kB / 0.9615 GB, free: 15.96 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001411/0.7145, allocations: 0.6943 MB / 0.9621 GB, free: 15.41 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003491/0.7148, allocations: 0.7411 MB / 0.9629 GB, free: 14.68 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.291e-05/0.7149, allocations: 23.75 kB / 0.9629 GB, free: 14.68 MB / 0.7325 GB Notification: Performance of SimCode: time 2.51e-07/0.7149, allocations: 1.031 kB / 0.9629 GB, free: 14.68 MB / 0.7325 GB Notification: Performance of Templates: time 0.009744/0.7247, allocations: 3.827 MB / 0.9666 GB, free: 12.72 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/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