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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.00764/0.00764, allocations: 96.91 kB / 15.87 MB, free: 6.289 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.001877/0.001877, allocations: 196.8 kB / 16.79 MB, free: 6.215 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.396/1.396, allocations: 222.9 MB / 240.5 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.397/2.397, allocations: 390.2 MB / 0.6649 GB, free: 0.6172 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001491/0.001491, allocations: 71.89 kB / 0.8125 GB, free: 14.86 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7529/0.7544, allocations: 140.3 MB / 0.9496 GB, free: 9.168 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition): time 0.003461/0.7579, allocations: 2.402 MB / 0.9519 GB, free: 7.285 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001429/0.7594, allocations: 0.9997 MB / 0.9529 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000115/0.7595, allocations: 8.312 kB / 0.9529 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002328/0.7597, allocations: 45.61 kB / 0.953 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001743/0.7599, allocations: 71.66 kB / 0.953 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004015/0.7604, allocations: 138.4 kB / 0.9532 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002329/0.7606, allocations: 268.1 kB / 0.9534 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000119/0.7607, allocations: 46 kB / 0.9535 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001402/0.7609, allocations: 100.4 kB / 0.9536 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001148/0.761, allocations: 105.6 kB / 0.9537 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.524e-05/0.761, allocations: 10.81 kB / 0.9537 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002599/0.7613, allocations: 111.3 kB / 0.9538 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.182e-05/0.7613, allocations: 37.34 kB / 0.9538 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001097/0.7615, allocations: 109.9 kB / 0.9539 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002513/0.7617, allocations: 231.5 kB / 0.9541 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.7617, allocations: 1.438 kB / 0.9541 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.112e-06/0.7617, allocations: 0 / 0.9541 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.71e-06/0.7617, allocations: 0 / 0.9541 GB, free: 5.676 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.0008948/0.7626, allocations: 0.5928 MB / 0.9547 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.7627, allocations: 10.16 kB / 0.9547 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.656e-05/0.7628, allocations: 30.12 kB / 0.9548 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003606/0.7631, allocations: 288.1 kB / 0.955 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.159e-05/0.7632, allocations: 19.47 kB / 0.955 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.909e-05/0.7632, allocations: 23.09 kB / 0.9551 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003794/0.7636, allocations: 204.2 kB / 0.9553 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.63e-05/0.7636, allocations: 5.594 kB / 0.9553 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.245e-05/0.7637, allocations: 1.344 kB / 0.9553 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.064e-06/0.7637, allocations: 3.594 kB / 0.9553 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003506/0.764, allocations: 108.8 kB / 0.9554 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008359/0.7649, allocations: 0.8727 MB / 0.9562 GB, free: 3.73 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000449/0.7653, allocations: 204.1 kB / 0.9564 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001885/0.7655, allocations: 85.5 kB / 0.9565 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.309e-05/0.7656, allocations: 2.344 kB / 0.9565 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004334/0.766, allocations: 193.2 kB / 0.9567 GB, free: 3.387 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=23): time 1.693e-06/0.766, allocations: 1 kB / 0.9567 GB, free: 3.387 MB / 0.7169 GB Notification: Performance of matching and sorting (n=23): time 0.0007959/0.7668, allocations: 355.9 kB / 0.957 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.36e-05/0.7669, allocations: 117.6 kB / 0.9571 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001885/0.7671, allocations: 247.4 kB / 0.9574 GB, free: 2.91 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.503e-05/0.7671, allocations: 42.27 kB / 0.9574 GB, free: 2.867 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.841e-05/0.7672, allocations: 146.6 kB / 0.9576 GB, free: 2.73 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.071e-05/0.7672, allocations: 60.55 kB / 0.9576 GB, free: 2.68 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.361e-05/0.7673, allocations: 74.53 kB / 0.9577 GB, free: 2.625 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.1e-05/0.7674, allocations: 346.6 kB / 0.958 GB, free: 2.285 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002142/0.7676, allocations: 81.17 kB / 0.9581 GB, free: 2.25 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000251/0.7678, allocations: 259.4 kB / 0.9583 GB, free: 1.977 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000457/0.7683, allocations: 381.8 kB / 0.9587 GB, free: 1.621 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.699e-06/0.7683, allocations: 9.359 kB / 0.9587 GB, free: 1.613 MB / 0.7169 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0006557/0.769, allocations: 396.8 kB / 0.9591 GB, free: 1.395 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.254e-05/0.769, allocations: 34.05 kB / 0.9591 GB, free: 1.363 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.056e-05/0.769, allocations: 6.094 kB / 0.9591 GB, free: 1.363 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.479e-05/0.7691, allocations: 11.86 kB / 0.9591 GB, free: 1.359 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002106/0.7693, allocations: 66.53 kB / 0.9592 GB, free: 1.34 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.707e-05/0.7693, allocations: 17.19 kB / 0.9592 GB, free: 1.332 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002364/0.7696, allocations: 44.42 kB / 0.9593 GB, free: 1.305 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.01e-05/0.7696, allocations: 20.27 kB / 0.9593 GB, free: 1.301 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.0001199/0.7697, allocations: 165.4 kB / 0.9594 GB, free: 1.152 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.603e-05/0.7698, allocations: 23.5 kB / 0.9595 GB, free: 1.141 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.706e-05/0.7698, allocations: 24.27 kB / 0.9595 GB, free: 1.125 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.52e-06/0.7698, allocations: 11.22 kB / 0.9595 GB, free: 1.117 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.416e-06/0.7699, allocations: 5.031 kB / 0.9595 GB, free: 1.113 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/0.7699, allocations: 1.062 kB / 0.9595 GB, free: 1.113 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002174/0.7701, allocations: 262 kB / 0.9598 GB, free: 0.8477 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.7701, allocations: 4.938 kB / 0.9598 GB, free: 0.8438 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001178/0.7702, allocations: 22.03 kB / 0.9598 GB, free: 0.8359 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.7702, allocations: 1.125 kB / 0.9598 GB, free: 0.8359 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.358e-05/0.7703, allocations: 8.312 kB / 0.9598 GB, free: 0.832 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.7703, allocations: 1.281 kB / 0.9598 GB, free: 0.832 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.7703, allocations: 9.422 kB / 0.9598 GB, free: 0.8242 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008072/0.7711, allocations: 415.2 kB / 0.9602 GB, free: 0.5898 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.385e-05/0.7711, allocations: 106.9 kB / 0.9603 GB, free: 484 kB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.712e-05/0.7712, allocations: 4.625 kB / 0.9603 GB, free: 484 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001559/0.7714, allocations: 20.36 kB / 0.9603 GB, free: 472 kB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.89e-05/0.7714, allocations: 25.31 kB / 0.9603 GB, free: 456 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.945e-05/0.7715, allocations: 11.64 kB / 0.9604 GB, free: 452 kB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001219/0.7716, allocations: 167.7 kB / 0.9605 GB, free: 328 kB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/0.7716, allocations: 0 / 0.9605 GB, free: 328 kB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0004231/0.772, allocations: 84.86 kB / 0.9606 GB, free: 308 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.0003504/0.7724, allocations: 176.1 kB / 0.9608 GB, free: 176 kB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000583/0.773, allocations: 299.2 kB / 0.9611 GB, free: 4 kB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.773, allocations: 1.031 kB / 0.9611 GB, free: 4 kB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002933/0.7733, allocations: 99.78 kB / 0.9612 GB, free: 15.96 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003935/0.7737, allocations: 56.09 kB / 0.9612 GB, free: 15.94 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001276/0.775, allocations: 0.6885 MB / 0.9619 GB, free: 15.4 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002878/0.7753, allocations: 0.741 MB / 0.9626 GB, free: 14.67 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.935e-05/0.7753, allocations: 24.5 kB / 0.9626 GB, free: 14.66 MB / 0.7325 GB Notification: Performance of SimCode: time 2.91e-07/0.7753, allocations: 0 / 0.9626 GB, free: 14.66 MB / 0.7325 GB Notification: Performance of Templates: time 0.006782/0.7821, allocations: 3.835 MB / 0.9664 GB, free: 12.7 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