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.0007913/0.0007914, allocations: 91.53 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008606/0.0008606, allocations: 179 kB / 16.92 MB, free: 6.652 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.441/1.441, allocations: 223.3 MB / 241 MB, free: 5.281 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.517/2.517, allocations: 390.9 MB / 0.667 GB, free: 2.336 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003982/0.0003979, allocations: 12 kB / 0.8166 GB, free: 13.2 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7476/0.748, allocations: 142.4 MB / 0.9557 GB, free: 7.605 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition): time 0.002474/0.7505, allocations: 2.032 MB / 0.9577 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001392/0.7519, allocations: 0.9872 MB / 0.9587 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001017/0.752, allocations: 12.09 kB / 0.9587 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002141/0.7523, allocations: 46.56 kB / 0.9587 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001577/0.7524, allocations: 60.73 kB / 0.9588 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003937/0.7528, allocations: 140.7 kB / 0.9589 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002366/0.7531, allocations: 272.8 kB / 0.9592 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001234/0.7532, allocations: 40.81 kB / 0.9592 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001455/0.7534, allocations: 101 kB / 0.9593 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001241/0.7535, allocations: 108.9 kB / 0.9594 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.919e-05/0.7535, allocations: 8.969 kB / 0.9594 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002799/0.7538, allocations: 107.6 kB / 0.9595 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.989e-05/0.7539, allocations: 36.88 kB / 0.9596 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001168/0.754, allocations: 136.3 kB / 0.9597 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002599/0.7543, allocations: 224.2 kB / 0.9599 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.7543, allocations: 1.844 kB / 0.9599 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.633e-06/0.7543, allocations: 0 / 0.9599 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.856e-06/0.7543, allocations: 0 / 0.9599 GB, free: 4.387 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.0008157/0.7551, allocations: 0.5496 MB / 0.9604 GB, free: 3.863 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.316e-05/0.7552, allocations: 9.625 kB / 0.9605 GB, free: 3.863 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.379e-05/0.7552, allocations: 26.41 kB / 0.9605 GB, free: 3.852 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003556/0.7556, allocations: 293.5 kB / 0.9608 GB, free: 3.566 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.519e-05/0.7556, allocations: 20.84 kB / 0.9608 GB, free: 3.555 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.028e-05/0.7557, allocations: 22.12 kB / 0.9608 GB, free: 3.547 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003822/0.7561, allocations: 215 kB / 0.961 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.468e-05/0.7561, allocations: 1.375 kB / 0.961 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.056e-05/0.7561, allocations: 1.375 kB / 0.961 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.05e-05/0.7561, allocations: 8.062 kB / 0.961 GB, free: 3.379 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000364/0.7565, allocations: 131.3 kB / 0.9611 GB, free: 3.32 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008366/0.7573, allocations: 0.8669 MB / 0.962 GB, free: 2.469 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004835/0.7578, allocations: 219.8 kB / 0.9622 GB, free: 2.324 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002109/0.7581, allocations: 88.97 kB / 0.9623 GB, free: 2.27 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.382e-05/0.7581, allocations: 5.938 kB / 0.9623 GB, free: 2.266 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004291/0.7585, allocations: 208.6 kB / 0.9625 GB, free: 2.113 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=23): time 1.603e-06/0.7585, allocations: 0 / 0.9625 GB, free: 2.113 MB / 0.7169 GB Notification: Performance of matching and sorting (n=23): time 0.0009029/0.7594, allocations: 385.2 kB / 0.9629 GB, free: 1.938 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.277e-05/0.7595, allocations: 114.1 kB / 0.963 GB, free: 1.809 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002028/0.7597, allocations: 246.3 kB / 0.9632 GB, free: 1.633 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.903e-05/0.7598, allocations: 38.73 kB / 0.9632 GB, free: 1.594 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.536e-05/0.7598, allocations: 146.8 kB / 0.9634 GB, free: 1.457 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.321e-05/0.7599, allocations: 63.72 kB / 0.9634 GB, free: 1.402 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.851e-05/0.7599, allocations: 49.03 kB / 0.9635 GB, free: 1.363 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.787e-05/0.76, allocations: 337.3 kB / 0.9638 GB, free: 1.031 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000232/0.7602, allocations: 83.53 kB / 0.9639 GB, free: 0.9961 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000285/0.7605, allocations: 270.8 kB / 0.9641 GB, free: 0.7188 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005149/0.7611, allocations: 399.5 kB / 0.9645 GB, free: 368 kB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.7611, allocations: 1.594 kB / 0.9645 GB, free: 368 kB / 0.7169 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.000735/0.7618, allocations: 422.9 kB / 0.9649 GB, free: 132 kB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.659e-05/0.7619, allocations: 35.98 kB / 0.965 GB, free: 100 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.189e-05/0.7619, allocations: 5.844 kB / 0.965 GB, free: 100 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.373e-05/0.7619, allocations: 8.031 kB / 0.965 GB, free: 100 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002222/0.7621, allocations: 78.8 kB / 0.965 GB, free: 72 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.412e-05/0.7622, allocations: 12.03 kB / 0.9651 GB, free: 68 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000245/0.7624, allocations: 45.11 kB / 0.9651 GB, free: 44 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.841e-05/0.7624, allocations: 19.66 kB / 0.9651 GB, free: 40 kB / 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.0001847/0.7626, allocations: 163.6 kB / 0.9653 GB, free: 15.89 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.947e-05/0.7627, allocations: 29 kB / 0.9653 GB, free: 15.88 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.719e-05/0.7627, allocations: 27.89 kB / 0.9653 GB, free: 15.86 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.7628, allocations: 3.844 kB / 0.9653 GB, free: 15.86 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.057e-06/0.7628, allocations: 5.156 kB / 0.9653 GB, free: 15.85 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.7628, allocations: 0 / 0.9653 GB, free: 15.85 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002986/0.7631, allocations: 266.1 kB / 0.9656 GB, free: 15.58 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.7631, allocations: 4.969 kB / 0.9656 GB, free: 15.58 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001324/0.7632, allocations: 25.58 kB / 0.9656 GB, free: 15.57 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.127e-06/0.7632, allocations: 1.25 kB / 0.9656 GB, free: 15.57 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.553e-05/0.7633, allocations: 17.11 kB / 0.9656 GB, free: 15.56 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.7633, allocations: 3.031 kB / 0.9656 GB, free: 15.56 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.7633, allocations: 3.938 kB / 0.9656 GB, free: 15.55 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008749/0.7642, allocations: 426.3 kB / 0.9661 GB, free: 15.33 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 7.858e-05/0.7643, allocations: 112.3 kB / 0.9662 GB, free: 15.21 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.357e-05/0.7643, allocations: 3.594 kB / 0.9662 GB, free: 15.21 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001645/0.7645, allocations: 24.86 kB / 0.9662 GB, free: 15.2 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.773e-05/0.7646, allocations: 30.25 kB / 0.9662 GB, free: 15.18 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.324e-05/0.7646, allocations: 14.95 kB / 0.9662 GB, free: 15.17 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001698/0.7648, allocations: 167 kB / 0.9664 GB, free: 15.05 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7648, allocations: 0 / 0.9664 GB, free: 15.05 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004115/0.7652, allocations: 80.7 kB / 0.9665 GB, free: 15.03 MB / 0.7325 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.0003797/0.7656, allocations: 174.5 kB / 0.9666 GB, free: 14.91 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.000731/0.7663, allocations: 311 kB / 0.9669 GB, free: 14.74 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.7664, allocations: 0 / 0.9669 GB, free: 14.74 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0003731/0.7667, allocations: 111.9 kB / 0.967 GB, free: 14.7 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005001/0.7673, allocations: 59.89 kB / 0.9671 GB, free: 14.67 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001368/0.7686, allocations: 0.7606 MB / 0.9678 GB, free: 14.06 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003224/0.769, allocations: 0.7416 MB / 0.9686 GB, free: 13.33 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.908e-05/0.769, allocations: 23.84 kB / 0.9686 GB, free: 13.32 MB / 0.7325 GB Notification: Performance of SimCode: time 2.2e-07/0.769, allocations: 1.094 kB / 0.9686 GB, free: 13.32 MB / 0.7325 GB Notification: Performance of Templates: time 0.00694/0.776, allocations: 3.801 MB / 0.9723 GB, free: 11.4 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